Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Development (http://www.go4expert.com/forums/web-development-forum/)
-   -   need help connecting database with webpage (http://www.go4expert.com/forums/help-connecting-database-webpage-t17124/)

daveritwick 25Apr2009 20:57

need help connecting database with webpage
 
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 25Apr2009 20:59

Re: need help connecting database with webpage
 
Moved to Web Development forum

mclarke1987 8May2009 02:16

Re: need help connecting database with webpage
 
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.

<?php
mysql_connect('localhost', 'user', 'pass');
mysql_select_db('dbname');
mysql_query('SELECT * FROM table');
?>


All times are GMT +5.5. The time now is 14:20.