Database Connectivity Error

Author Topic: Database Connectivity Error  (Read 2812 times)

Offline Die HardTopic starter

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 5
  • Posts: 65
  • Karma: 0
  • Gender: Male
  • No body perfect in this world, I m no body.!
    • Pics Door
Database Connectivity Error
« on: 12-28-2012, 00:28:03 »
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?


 

Related Topics

  Subject / Started by Replies Last post
9 Replies
3630 Views
Last post 11-10-2011, 19:05:36
by AuroINSEO
1 Replies
1645 Views
Last post 12-10-2011, 05:26:59
by electra
0 Replies
2615 Views
Last post 07-30-2012, 14:22:50
by darko25
4 Replies
1996 Views
Last post 04-05-2013, 09:26:55
by convergent
3 Replies
2209 Views
Last post 01-29-2015, 01:20:37
by kumar29