Posts
 
Reputation
Joined
Last Seen
Ranked #209
Strength to Increase Rep
+10
Strength to Decrease Rep
-2
86% Quality Score
Upvotes Received
178
Posts with Upvotes
158
Upvoting Members
89
Downvotes Received
37
Posts with Downvotes
25
Downvoting Members
18
37 Commented Posts
20 Endorsements
Ranked #71
Ranked #121
~417.62K People Reached
Interests
Playing guitar...
PC Specs
Processor: i5CPU @3.3GHz,RAM - 4GB,OS- Windows 7 ulitmate
Favorite Tags

545 Posted Topics

Member Avatar for tony75

there are two erros in this:- * spelling of **FOREIGEN KEY**.Change it to "**FOREIGN KEY**" * remove comma before REFERENCES. So the final query must be like this CREATE TABLE artphoto( photonr NUMBER(10), artnr NUMBER(10) NOT NULL, filtyp VARCHAR2(3) NOT NULL, path VARCHAR2(200) NOT NULL, CONSTRAINT artphoto_photonr_pk PRIMARY KEY(photonr), CONSTRAINT …

Member Avatar for john_111
0
34K
Member Avatar for subhra44

A better way to do this is to use loop take a variable (let it be 'a') and initialize it equal to 1. Then inside loop use this statement: [CODE] $sql1="SELECT * FROM question_master LIMIT 1 OFFSET '$a' "; 'instead of above line you can also like query as '$sql1="SELECT …

Member Avatar for akshay_12
0
5K
Member Avatar for amaz4u

there are two ways to do that:- 1) when you submit a form,send its options index and then on submitting form,read from url and set that as selected value country.options.selectedIndex = index_of_selected_country; and so on. Although this is not the recommended solution. 2) The best way to achieve this is …

Member Avatar for diafol
0
3K
Member Avatar for anand01

[CODE] <%@ page language="JAVA" contentType="text/html" %>//directive to specify that language used is java and specifying the content type <%@ page import="java.sql.*" %>//to import sql package <html> <head> <title>Database</title> </head> <body> <% String driverClass ="com.mysql.jdbc.Driver"; String connectionString="jdbc:mysql://localhost:3306/login" ; String username="root"; String password="password"; String query="INSERT into table_name values(?)" ; try{ Class.forName(driverClass) ;//to …

Member Avatar for Sushmitha_1
0
9K
Member Avatar for asifalizaman

Here is the difference quoted from http://www.java.com/en/download/faq/java_javascript.xml > How is JavaScript different from Java? > The JavaScript programming language, developed by Netscape, Inc., is not part of the Java platform. > JavaScript, does not create applets or stand-alone applications. In its most common form today, JavaScript resides inside HTML documents, …

Member Avatar for _1_18
0
777
Member Avatar for calebcook

As from [this](http://stackoverflow.com/questions/10143093/origin-is-not-allowed-by-access-control-allow-origin) you can solve this by adding `<?php header('Access-Control-Allow-Origin: *'); ?>` in your header.Please check and let us know if this solved your problem.

Member Avatar for Fyan Estu
0
19K
Member Avatar for donoskaro

Take a look here.It is pure css dropdown menu http://csswizardry.com/2011/02/creating-a-pure-css-dropdown-menu/

Member Avatar for creiglee
0
409
Member Avatar for vegaseat
Member Avatar for Drugsxxx

you can use a trick something like this:- <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="128px" height="128px" viewBox="0 0 16 16"> <g> <animateTransform attributeName="transform" type="rotate" values="0 8 8; 45 8 8; 90 8 8; 135 8 8; 180 8 8; 225 8 8; 270 …

Member Avatar for jaumetet
0
6K
Member Avatar for abelLazm
Member Avatar for awesomelemonade
Member Avatar for potatopie

Check this http://www.daniweb.com/web-development/php/threads/448925/error-sending-email-with-phpmailer#post1940914

Member Avatar for Pradeep_9
0
3K
Member Avatar for razor2890

You can call javascript method on onchange() event of select and you can work on your logic to redirect.Something like this:- javascript method function redirect_url(url ) { alert(url); } select tag <select size="1" name="typ" onchange="redirect_url(this.value)"> <option value="C">Coffe</option> <option value="T">Tea</option> &nbsp; </select>

Member Avatar for trhtrh
0
6K
Member Avatar for uselessninja

So to insert value to mysql there are following steps 1. make connectio to mysql using $con=mysql_connect("[server ip/address]","[user]","[password]") eg:- [CODE]$con=mysql_connect("localhost","root",""); [/CODE] 2. select the database $db=mysql_select_db("database_name",$con); eg:- [CODE]$db=mysql_select_db("employee",$con); [/CODE] 3. insert the data into database using mysql query $res=mysql_query("Insert into abc values('field1'...); eg: [CODE]$query=mysql_query("Insert into abc values('iim','manager')");[/CODE] Hopefully it's clear... …

Member Avatar for diafol
0
312
Member Avatar for projectbpain44

Check these two solutions.They might be helpful http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/threads/73876/help-laptop-screen-keeps-turning-black-but-not-off http://www.computing.net/answers/hardware/laptop-screen-shuts-off-but-computer-is-still-running/86209.html

Member Avatar for Mya:)
0
319
Member Avatar for svsathyavishnu

you can use uploadify script. Its simple and easy to use. http://www.uploadify.com , download script from here.

Member Avatar for IIM
0
80
Member Avatar for jalpesh_007

Yes it is possible to do this.For example take a look at this example that i made to show next button,similarly you can create previous button.The concept is that you are using array to save to video location with name and on next click ,change the source of video and …

Member Avatar for swaranan.barman
0
11K
Member Avatar for apoorvashah28

Thats because of **'hi what's up'**. It contains single quotes, **'**.You must escape **'** or use double quotes. like using double quotes instead of single quote or vice versa if there is any one of them only in your data INSERT INTO tbl_inquiry( name, phone, email, subject, message ) VALUES …

Member Avatar for chocolatte.lavista_1
0
172
Member Avatar for DaveyMoyes

try this <?php echo ("<SCRIPT LANGUAGE='JavaScript'> window.alert('Succesfully Updated') window.location.href='http://someplace.com'; </SCRIPT>"); ?>

Member Avatar for anitha407
0
6K
Member Avatar for Dani

dani can you increase duration of competition by 2 weeks or so.I m a bit involved in my app for now.It will take a week or two after that i will start working for this competition.Or else riahc3 ,diafol and pritaeas will take those rewards. Let me take third. :'(

Member Avatar for Mike_danvers
4
3K
Member Avatar for ysfzby

You can start by reading syntax from php manual Php manual for all syntax and methods http://php.net/manual/en/index.php For php tutorials,you can refer http://php.net/manual/en/tutorial.php Also [phpacademy](https://phpacademy.org/) if you prefer watching videos.

Member Avatar for Alberto Bucur
0
511
Member Avatar for Indians

What'sthe problem in that, before constructing message body for mail fetch data from database append it in message and send mail.

Member Avatar for diafol
0
329
Member Avatar for tony75

In your Action page just print Value using $_POST('hack_language') <?php echo $_POST('hack_language'); ?>

Member Avatar for tony75
0
340
Member Avatar for Indians

Do check using if- else statement. First check for both room and meal, otherwise check for room else meal. Give alert message in each, problem solved

Member Avatar for diafol
0
8K
Member Avatar for Py New BB

please search for cron jobs in python.Cron jobs are task to be performed at specified time.That will solve your problem.Refer [this](http://stackoverflow.com/questions/11774925/how-to-run-a-python-file-using-cron-jobs)

Member Avatar for snippsat
0
164
Member Avatar for IIM

I tried using Daniweb OAuth for android application but didn't able to understand as it requires redirect url but in my case it is a standalone desktop application interacting with dani webapi's. Do i have to create a webapp and then my application instead of contacting daniweb,contact my website and …

0
89
Member Avatar for raidenx44

you can do this by storing the data in database and everytime instead of loading data from array load from database.This will solve your problem,as when you add any data,it will be added in database and on retrieving data,you will also get newly added row.

Member Avatar for raidenx44
0
144
Member Avatar for arifkutty

Yes @diafol is correct,you can only iterate the result once using mysqli_fetch_array(),however if for some reason you still want to call the query again,then before calling it another time set the pointer back to the beginning using [mysqli_data_seek](http://php.net/manual/en/mysqli-result.data-seek.php)() method . So just reset the result pointer to the beginning <?php …

Member Avatar for arifkutty
0
210
Member Avatar for kyleo92

Error is in line 139 and 141 Second paramter must be separated by **&** and not ?. Just replace that and your problem will be solved line 139 must be echo "<a href='?selID={$_GET['selID']}&page=$prev'>Prevous Page</a> | "; and line 141 must be echo "<a href='?selID={$_GET['selID']}&page=$next'>Next Page</a>";

Member Avatar for kyleo92
0
289
Member Avatar for <M/>

i have not used any of them but as per what i can read from there wiki page > **CodeIgniter is loosely based on the popular Model-View-Controller development pattern. While view and controller classes are a necessary part of development under CodeIgniter, models are optional.[3]** It is advicable to separate …

Member Avatar for ashutosh08
0
211
Member Avatar for Sanjay_6

can you give the link of the page where you are facing this error??Because i can't find page with css questions. By the way solution is pretty simple.just add padding before ordered list something like this in your css:- ol{ padding:10px; } If you have written this inside a div …

Member Avatar for IIM
0
148
Member Avatar for kumar89hitesh

Is it too hard to do google??? Try [this](http://en.lmgtfy.com/?q=php+retrieve+data+mysqli) Anyway, you can always refer php manual for any basic methods and actions http://php.net/manual/en/mysqli.query.php

Member Avatar for IIM
0
101
Member Avatar for eijnar

There is a simple logic to solve this problem,whenever i is zero or max,j is zero or max print "*" else print space " ". This is a small code snippet. for (int i = 0; i < 6 ; i++){ for(int j=0;j<6;j++){ if(i==0||j==0||i==5||j==5){ System.out.print("*"); }else{ System.out.print(" "); } } …

Member Avatar for IIM
0
222
Member Avatar for softswing

What is your request type??? Is it XML?? if yes use JAXB and create simple DTO,Set value using setters of DTO object,using JAXB there will be auto marshalling and unmarshalling of Data to XML and vice versa.Hopefully it is useful .Click [here](http://www.mkyong.com/java/jaxb-hello-world-example/) to see examples

Member Avatar for IIM
0
103
Member Avatar for Ancient Dragon

I was playing with android app,Auth part is left,after that most propably it be be completed in a week.Will look into that after 20th of this month,currently busy in few stuff.

Member Avatar for Learner010
0
327
Member Avatar for <M/>

i will happily take 5s if you gift me [<m/>](http://www.daniweb.com/members/950732/M) :). Even [dani](http://www.daniweb.com/members/1/Dani) sis you can also gift me. :P When can i expect the gift ??? :o

Member Avatar for vegaseat
0
424
Member Avatar for davecoventry

remove padding from main-menu class css property. .menu-mains { background-image: url(../images/menu-shadow.jpg); background-repeat: no-repeat; background-position:bottom;//removing padding will solve your problem position: relative; margin: 0 auto; width: 865px; height: 31px; text-align: center; } You are adding more space leading to this issue,removing padding will solve your issue.

Member Avatar for IIM
0
175
Member Avatar for saadi06

i am not sure why are you getting null because i tried in my system and it is giving zero. As from http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_timestampdiff > Returns datetime_expr2 – datetime_expr1, where datetime_expr1 and datetime_expr2 are date or datetime expressions. One expression may be a date and the other a datetime; a date …

Member Avatar for IIM
0
661
Member Avatar for IIM

there is some issue with your registration process of application for OAuth.Today i just registered an application and on doing back it added another application OAuth key ,please correct this.Also there is no option to delete OAuth created(I cannot see if it is please help show me the path).

Member Avatar for IIM
0
201
Member Avatar for dannybarh

http://www.tek-tips.com/viewthread.cfm?qid=1692863 might help Edit :- I tried [this](http://forums.phpfreaks.com/topic/214661-open-and-get-contents-of-a-word-document-with-php/) and it is able to read doc file data.

Member Avatar for pzuurveen
0
3K
Member Avatar for Flurps

It depends on which platform you are looking for. If you are looking for IOs,then you must have understanding of **objective C**. If you looking forward as an android developer,then you must be proficient in **Android**(Java basics first). So first choose which platform you are interested in and then go …

Member Avatar for alexloxton
0
170
Member Avatar for Szabi Zsoldos
Member Avatar for Szabi Zsoldos
0
229
Member Avatar for laura301019

> best database for me to use would be? This is an interesting question.If would like to reiterate that i always do-"**It all depends upon your need**". If you wish to use it with microsoft products like .NET ,C# than SQL Server will be more http://www.microsoft.com/en-in/sqlserver/product-info/competitor-compare.aspx refer this. But if …

Member Avatar for IIM
0
256
Member Avatar for happygeek

Congrats JorgeM. I just came back to daniweb after 2-3 weeks was busy in my stuff,and i am glad to know that you have become mod. :)

Member Avatar for Samuel Baker
1
817
Member Avatar for jason.angeles.75

add datatype for Radius and radius in above method. Certainly there are many errors in your program:- * In line 37 and 47 add arguement data type. public static double calcCirc(double Radius)//line 37 public static double calcArea(double radius)//line 47 * Pass radius(arguement) in line 18 and 19 to match method …

Member Avatar for Kenney_1
0
343
Member Avatar for eldiablo1121

> in your main method, keep a counter. from now and then you call that method and print the return value. when you do, add 1 to that counter @stultuske:- why more counter is needed if we already have a for loop.We can use that value to display in your …

Member Avatar for stultuske
0
176
Member Avatar for strongpot

> The AUTO_INCREMENT attribute can be used to generate a unique identity for new rows: So create a table using query, CREATE TABLE mytable ( picid INT NOT NULL AUTO_INCREMENT, name CHAR(30) NOT NULL, PRIMARY KEY (id) ) ENGINE=MyISAM; and then while inserting just add values to other columns,this value …

Member Avatar for strongpot
0
264
Member Avatar for darylglenng

you just have to count loop from 1 to i in line 11 to print 1 to line number AND IN SECOND LOOP you have to decrement from the last value of i-1 for (int k=1; k<=i; k++) {//line 12 > 1 > 1 2 > 1 2 3 > …

Member Avatar for pallav89
0
643
Member Avatar for lewashby

Try to run a small example to check if there is any output from this.Also check if there is any data in table. <?php $db = new SQLite3('database.db'); var_dump($db->querySingle('select * from customers')); print_r($db->querySingle('select * from customers', true)); ?>

Member Avatar for lewashby
-1
1K
Member Avatar for singh.software

why exactly are you using textfile.Use database to save data. You can use sql server and create database in that. Now as you want aunthentication system first,so create a table * User[**user_id**(Primary Key),email_id(unique),password(encrypt it and save),user_name] Now to keep track of vote,create a table named vote, * Vote[*user_id*,vote,date] Now your …

Member Avatar for singh.software
0
338

The End.