im trying to get some info from a database to check whether a user has the right name and password…however, for some reason, it doesnt want to work for me…can anyone spot an error in my script? cause ive looked it over about 50 times and cant see anything?
[code=php]<?php
require_once “connect.php”;
$sql = mysql_query(
“SELECT ID, user FROM users WHERE user=’uploads'”
);
while($row = mysql_fetch_array($sql)){
print $row[“ID”].$row[“user”];
}
mysql_free_result($sql);
?>
i know the error is NOT in connect.php (with all the info to connect to the database)…and i know theres a user in there called “uploads”….but every time i run the script, i get this:
[b]Warning:[b]/home/strictly/public_html/sd/imagehost/dbsetup.php[b]9
[b]Warning:[b]/home/strictly/public_html/sd/imagehost/dbsetup.php[b]13
can anyone help me with this? im stumped…i cant figure out why the heck it isnt working…?