Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
optimize mysql through a php script
#7
(09-28-2011, 11:24 PM)andrewjs18 Wrote: hmn, now the script is dying on the "Unknown Database!" section even when I use live, functioning database information for a forum I admin.

Try making a configs.php

PHP Code:
<?php
$dhost 
"localhost";
$dusername "root";
$dpassword ""//Your Database Password
$ddatabase ""//Your Database name.

$con mysql_connect($dhost$dusername$dpassword) or die("Cannot Connect");
mysql_select_db($ddatabase$con);
?>

I don't know if this is exactly what you're looking for.
Reply


Messages In This Thread
RE: optimize mysql through a php script - by ChromeWolf - 10-05-2011, 03:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP Framework List: An Ultimate Guide to 102 PHP Frameworks for Web Developers tk-hassan 0 786 07-27-2020, 11:26 PM
Last Post: tk-hassan
  Req. Upload PHP script. 3 X P L 0 I T 1 1,203 07-14-2012, 05:19 PM
Last Post: 'Snorlax
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 3,307 10-10-2011, 01:00 PM
Last Post: Greyersting
  Creating a simple PHP/MySQL login script ndee 16 9,481 05-14-2011, 02:18 AM
Last Post: モrainee
  Simple MySQL Tutorial Sly 4 1,095 05-14-2011, 01:53 AM
Last Post: Sly

Forum Jump:


Users browsing this thread: 1 Guest(s)