Results 1 to 25 of 25
Thread: Read from database problem.
Nov 22, 2008, 15:26 #1
- Join Date
- Nov 2005
- Southern Nevada, USA
- 0 Post(s)
- 0 Thread(s)
Read from database problem.
I am new to mysql programming. I have set up a database with a table called "2009". I have 2 rows with about 16 fields. I have data stored in these two rows.
I have some code that tells me this table exists. Below that code I have this code:
$sql = "SELECT * FROM 2009"; $result = mysql_query($sql, $conn) or die(mysql_error());
I have a number of books on MySQL, and I have tried many different ways to retrieve data from the data base, but I am constantly getting errors. The above code is simple code that produces this error.
What am I doing wrong?
I will appreciate any help I can get. I have spent all morning trying to get something to work.