Page 2 of 2

Re: NEED HELP

Posted: Wed Feb 11, 2009 7:32 pm
by manRay
frankly, no I don't. You told me to make sure there was no spaces. I replied and I didn't get a reply.

Re: NEED HELP

Posted: Wed Feb 11, 2009 7:36 pm
by Benjamin

Code: Select all

 
<?php
$foo = $bar;
$str = "string";
// comment
 
You can press the "quote" button to see how to format code.

Re: NEED HELP

Posted: Thu Feb 12, 2009 5:28 pm
by manRay
OK, now I am trying to get a field from one of my databases tables and insert into another one.This is what I have..

Code: Select all

$id=mysql_query("SELECT id FROM users WHERE username='$user'");
but when I checked the new table, instead of inserting the id, it started with 0. A little help would be appreciated.

Re: NEED HELP

Posted: Thu Feb 12, 2009 5:30 pm
by Benjamin
Have a look at the examples in the manual..

http://us.php.net/manual/en/function.mysql-query.php