trying to display database

Dell / Xpst500
July 24, 2010 at 14:17:58
Specs: Microsoft Windows 2000 Professional, 498 MHz / 639 MB
I just need to know if this should connect to a database or is there anything I should change

$link = mysql_connect("localhost", "root", "")
or die("Could not connect: " . mysql_error());
print ("Connected successfully");
$query=" SELECT * FROM 'addtransinfo';

See More: trying to display database

July 30, 2010 at 00:52:40
uhm, other than the syntax error on line 4?

Or, the mis-spelled function name on line 6?

I think you need to mysql_select_db or use the database.table syntax in your SELECT.

Report •
Related Solutions

Ask Question