Help! SQL/PHP problem :-\
Posted: Wed Aug 07, 2002 12:29 pm
Hi, thanks for reading.
Heres the problem. I am helping create a website, and i thought it would be so much easier to have a database and then basically do it from there - it's more or less a stores website lots of items. I created a mySQL database, and now i'm simply trying to get somethig from it and i'm having problems. here's the error and the snipit of code:
Am i doing something wrong? why would i get that error? please help!
Thanks alot!!!!
--Iggs
Heres the problem. I am helping create a website, and i thought it would be so much easier to have a database and then basically do it from there - it's more or less a stores website lots of items. I created a mySQL database, and now i'm simply trying to get somethig from it and i'm having problems. here's the error and the snipit of code:
and the code i use is :'Table'Couldn't execute query.
Code: Select all
//create sql statement
$sql = "SELECT 'Stuff' FROM 'Table'";
//execute sql query and get results
$sql_result = mysql_query($sql) or die("Couldn't execute query.");Thanks alot!!!!
--Iggs