DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: AJAX not working after computer restore

  1. #1
    Join Date
    Aug 2007

    AJAX not working after computer restore

    Hi Folks,

    My computer died so I restored a recent backup. The problem now is is while this script:


    require_once('../includes/php/Application.php'); // Global functions
    include('includes/header.php'); // Form header

    $username = 'xxxxx';
    $password = 'xxxxx';

    $db = mysql_connect( '', $username, $password )
    or die( mysql_error() );

    $proto = mysql_selectdb( 'proto3', $db )
    or die( mysql_error() );

    $result = mysql_query("SELECT * FROM Country");

    while ( $row = mysql_fetch_array( $result,MYSQL_ASSOC ) )
    print "Country: " . $row{'Country'} . "\n";

    works fine from the command line, it doesn't work on the web portal I'm designing. I have an Apache server running and it seems to be running fine but I'm not getting a connection to my database.

    This is my first ever web project so forgive me if I'm a little green. My guess is maybe there is a configuration I haven't set upon the restore but perhaps someone has some helpful advice!


  2. #2
    Join Date
    Aug 2007
    Just as an addition I also have extension=php_mysql.dll uncommented in the php.ini file.

Similar Threads

  1. Javascript not working (ajax with asp)
    By Guitarkalle in forum AJAX
    Replies: 1
    Last Post: 06-13-2008, 10:35 PM
  2. Replies: 0
    Last Post: 08-07-2007, 05:15 PM
  3. Replies: 1
    Last Post: 04-25-2007, 11:39 AM
  4. Ajax: Working in IE but not Mozilla?
    By MarkMac in forum AJAX
    Replies: 0
    Last Post: 03-15-2007, 04:41 AM
  5. New forum + some AJAX links
    By Lori in forum AJAX
    Replies: 0
    Last Post: 02-09-2006, 02:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center