Re: Problem running sql stored in the database
| From: | Jason Wong | Date: | Fri, 09 Apr 2004 14:30:06 +0000 |
| Subject: | Re: Problem running sql stored in the database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182981@lists.php.net to get a copy of this message | ||
On Friday 09 April 2004 22:24, Ryan A wrote:
> > If that is the case you could modify your insert query:
> > INSERT INTO table (id, name) VALUES ('$id', '$name')
>
> No, thats not the problem, its inserting the text "$id" and "$name" instead
> of the
> values the variables hold.
Don't use single quotes.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Do Miami a favor. When you leave, take someone with you.
*/