Re: sql problem

From: Date: Fri, 17 Nov 2000 03:55:55 +0000
Subject: Re: sql problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25852@lists.php.net to get a copy of this message
Rodney Davis writes: > i can't figure out what is wrong with this query. Does > anyone know why I get the error that follows the > query? > > $ME is a global variable > > [snip] > $ME = $SCRIPT_NAME; > > $qid = db_query(" > SELECT page_id > FROM pageContent > WHERE url = $ME What happens when you change the above to read: WHERE url = '$ME' Good luck, Torben -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.general (#25852) next »