If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

Database Connectivity Error

Started by Die Hard, 12-28-2012, 02:28:03

Previous topic - Next topic

Die HardTopic starter

Query to select database:
$select = mysql_select_db($db_table, $con);
I have connected database by require() function.
<?php
require(connection.php)
$select=mysql_select_db($test);
if ($select)
{
echo "database selected";
}
else {
echo "database not selected";
}
?>

This showed the error and output was: database not selected.
Where is error?



If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...