Search Results

Showing results 1 to 19 of 19
Search took 0.01 seconds.
Search: Posts Made By: nav33n ; Forum: MySQL and child forums
Forum: MySQL Apr 17th, 2009
Replies: 1
Views: 1,820
Posted By nav33n
:icon_redface: After numerous attempts, I found out the solution. Here it is.

INSERT INTO a (name, age, postcode, city )
SELECT name, age, postcode, city
FROM b where counter = 1
AND NOT ...
Forum: MySQL Apr 1st, 2009
Replies: 5
Views: 445
Posted By nav33n
Bingo! You are right. Check this link!
http://www.webmasterworld.com/forum88/9091.htm
Forum: MySQL Feb 27th, 2009
Replies: 14
Views: 3,713
Posted By nav33n
<?php
// open database connection code and then my code as follows

//$id = mysql_insert_id(); << This line wouldn't work ie., $id will be null because there isn't any insert statement before...
Forum: MySQL Feb 26th, 2009
Replies: 7
Views: 1,082
Posted By nav33n
You are welcome :)
Forum: MySQL Feb 24th, 2009
Replies: 3
Views: 644
Posted By nav33n
update journey j, passengers p, shuttle s set j.occupancy=j.occupancy - 1 where p.journey_id = j.id and s.id = j.shuttle_id and s.id = 1 and p.passenger_name='bill gates'

wouldn't this work ? Many...
Forum: MySQL Jul 18th, 2008
Replies: 10
Views: 885
Posted By nav33n
Yep. It will create a user called "naveen" with password "password1" and grant SELECT,INSERT,UPDATE,DELETE permissions for that user.
Forum: MySQL Jul 2nd, 2008
Replies: 5
Views: 1,043
Posted By nav33n
Hmm.. Well, Thats because the limits are not being set properly.

if ($_GET[pg]==0) $pg = 1;
$lines = (int)$lines;
if ($lines==0) $lines = 5;
$left_limit = ($_GET[pg]-1)*$lines;

This...
Forum: MySQL Jun 2nd, 2008
Replies: 3
Solved: mysql question
Views: 719
Posted By nav33n
update table set number=number+300 where condition;

You mean like this ?

Edit: Or are you talking about concatenation ?

update table SET number = concat( number, "00" ) WHERE condition;...
Forum: MySQL May 14th, 2008
Replies: 19
Solved: Please help
Views: 1,599
Posted By nav33n
Forum: MySQL Apr 3rd, 2008
Replies: 38
Views: 3,492
Posted By nav33n
Then you can truncate the table instead of dropping it and creating a new one ! mysql_query("Truncate table tablename"); will do the trick !
Forum: MySQL Apr 2nd, 2008
Replies: 38
Views: 3,492
Posted By nav33n
Do you have these files on a server so that we can check the output ? Because, I don't understand what exactly is the problem..
Forum: MySQL Mar 31st, 2008
Replies: 32
Views: 2,544
Posted By nav33n
Yes. It is possible to store the path of the file. The datatype is varchar as you have mentioned. Store the path, then display the image by retrieving the path from the table and use it in the image...
Forum: MySQL Mar 27th, 2008
Replies: 31
Views: 9,128
Posted By nav33n
And you don't have that syntax error anymore. Right ? Now, if that solves your problem, well and good. If it doesn't, you need to be specific about your problem.
Forum: MySQL Mar 18th, 2008
Replies: 5
Views: 674
Posted By nav33n
Ah! correct.. I couldn't spot that one!
Forum: MySQL Feb 17th, 2008
Replies: 7
Views: 1,110
Posted By nav33n
In php, if we want to echo something, its done like this. echo "Welcome...";
Forum: MySQL Feb 6th, 2008
Replies: 4
Views: 3,953
Posted By nav33n
As far as I know, you can't have insert and update in the same query. The only case where you can have insert and update in the same query is when you use on duplicate clause ...
Forum: MySQL Jan 16th, 2008
Replies: 5
Views: 7,668
Posted By nav33n
:(

LOL.. i know.. you have already given me reps for a php question(and you can give reps only once per day!)
Forum: MySQL Jan 16th, 2008
Replies: 5
Views: 7,668
Posted By nav33n
SELECT eid, title, SUBSTRING(content, 1, 200), thumb_image FROM diary ORDER BY eid DESC LIMIT 3

:) Now, gimme my virtual high five!
Forum: MySQL Dec 31st, 2007
Replies: 3
Views: 995
Posted By nav33n
select orderid from bOrders where userid IN (select userid from email = 'John@abc.com');

Thats wrong. You are missing where clause.. :)
select orderid from bOrders where userid IN (select userid...
Showing results 1 to 19 of 19

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC