• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Database Connection Issue -

#2
[eluser]jmadsen[/eluser]
A bit confused by your post.

first, CI does NOT require you to test out the connection when you install, so not sure what you did.

also, what message(s) are you getting? a generic "could not connect to database", or something else?

try this code in your controller, and see if you have basic info you need, and db permissions:

Code:
<?php
$con = mysql_connect($host,$username,$password);
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

// some code
?>


Messages In This Thread
[SOLVED] Database Connection Issue - - by El Forum - 07-18-2011, 05:59 PM
[SOLVED] Database Connection Issue - - by El Forum - 07-18-2011, 08:54 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.