Jump to content

[SOLVED] Headache with php and mysql...


Jeatin

Recommended Posts

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

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');
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.