|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
No Database Connection possible (mySQL)
Hi all,
I am having problems with a connection to a mysql database. I am using function con() { mysql_connect("localhost","user","pass") or die(mysql_error()); mysql_select_db("tava") or die(mysql_error()); } Now, when I call the _function_ (!) con() or die("no con"); I get the "no con" output. When I call the mysql_connect and mysql_select directly before executing a query, I get some DB output. But that won't work when I am using the function Any ideas would be greatly appreciated. Cheers! Chris |
![]() |
| Viewing: Web Development Archives > Mailing Lists > PHP > No Database Connection possible (mySQL) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|