[PHP] stupid URL variable question

2002-02-01 Thread James Hallam
Can anyone explain why this URL and SQL statement won't work? A HREF=test_mediacoverage.php?locale=en_nasec=newssubsec=medianame=infowee k1Media Coverage Test Page/A -- And on test_mediacoverage.php .. $table_name = $locale; // ..connection content.. $sql = SELECT comp, content FROM

Re: [PHP] stupid URL variable question

2002-02-01 Thread Girish Nath
Subject: [PHP] stupid URL variable question Can anyone explain why this URL and SQL statement won't work? A HREF=test_mediacoverage.php?locale=en_nasec=newssubsec=medianame=infowee k1Media Coverage Test Page/A -- And on test_mediacoverage.php .. $table_name = $locale; // ..connection content

RE: [PHP] stupid URL variable question

2002-02-01 Thread James Hallam
]] Sent: Friday, February 01, 2002 5:53 PM To: James Hallam; Php-General Subject: Re: [PHP] stupid URL variable question Hi Try without quotes : $table_name = $locale; Your SQL is probably reading SELECT comp, content FROM $locale instead of en_na Regards Girish - Original Message

Re: [PHP] stupid URL variable question

2002-02-01 Thread Girish Nath
] To: Php-General [EMAIL PROTECTED] Sent: Saturday, February 02, 2002 1:02 AM Subject: RE: [PHP] stupid URL variable question I think that was a necessary step, I had missed that one, but it unfortunately hasn't solved the problem. Once again the page works fine if I hard-code the values, but even if I