need help connecting database with webpage

daveritwick's Avatar
Go4Expert Member
hi there i need help regarding connecting database with web page
i have installed wamp server includes php, sql, apache
but when i run the final coding same as tutorials it give Sql error
need help plz
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Moved to Web Development forum
mclarke1987's Avatar, Join Date: May 2009
Go4Expert Member
Any chance you can be more specific with the error? Here's a basic connection/query script. You might want to check the hostname that's a common issue.

mysql_connect('localhost', 'user', 'pass');
mysql_query('SELECT * FROM table');