Session migration problem...
| From: | Jake McHenry | Date: | Tue, 21 Oct 2003 01:46:44 +0000 |
| Subject: | Session migration problem... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-166869@lists.php.net to get a copy of this message | ||
During my conversion to use sessions, and turning register globals
off, I've run into this problem.. So far the first and only...
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
result resource in /var/www/html/web/timesheetsessions/index.php on
line 26
Here are lines 25, and 26:
$result = mysql_query("SELECT * FROM
users WHERE uname =
'".$_POST['username']."'");
$row = mysql_fetch_array($result);
Do I have a typo somewhere or something? Or did I fudge something?
Thanks,
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com