Jeatin Posted April 6, 2008 Share Posted April 6, 2008 Ok so I used to get the "unknown mysql_query" I did everything and finally got it fixed... BUT now I get nothing... No errors nothing. I used the sample script that tells you if you have connected to the database correctly and... Nothing just a blank page. I'm so confused and frustrated I thought I had fixed it but now I don't know whats going wrong. *Sighs* Someone please help! Thank you. Link to comment https://forums.phpfreaks.com/topic/99811-solved-headache-with-php-and-mysql/ Share on other sites More sharing options...
papaface Posted April 6, 2008 Share Posted April 6, 2008 Show us code. Link to comment https://forums.phpfreaks.com/topic/99811-solved-headache-with-php-and-mysql/#findComment-510460 Share on other sites More sharing options...
Jeatin Posted April 6, 2008 Author Share Posted April 6, 2008 You can see it doesn't list mysql for some reason even though I no longer have the mysql line commented out AND I have the libsql in the ext folder that is in the php.ini http://jeatin.ath.cx/sqltests/test.php Here is the code for the connection checker I'm using: <?php // Connecting, selecting database $link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password') or die('Could not connect: ' . mysql_error()); echo 'Connected successfully'; mysql_select_db('my_database') or die('Could not select database'); ?> Link to comment https://forums.phpfreaks.com/topic/99811-solved-headache-with-php-and-mysql/#findComment-510464 Share on other sites More sharing options...
bozebo Posted April 6, 2008 Share Posted April 6, 2008 seems to me like the mysql service isnt started, php cant help it if thats the case But i am not sure, there is nothing wrong with your code thats for sure edit: or there could be any number of less likely possibilities Link to comment https://forums.phpfreaks.com/topic/99811-solved-headache-with-php-and-mysql/#findComment-510482 Share on other sites More sharing options...
Jeatin Posted April 6, 2008 Author Share Posted April 6, 2008 Thats the thing. When I hit the database with sqlyog it works! And the service is in services.msc. Is there anything specific I need to do to have php pick up the service? Or is it a totally different service? Link to comment https://forums.phpfreaks.com/topic/99811-solved-headache-with-php-and-mysql/#findComment-510498 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.