Jump to content

Raol

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Raol's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thank you very much! I woulda thought error reporting woulda been on by default but i guess not. So now it showed me the error informing me that it could not find the mysql_connect() function, so i just reinstalled PHP and used the windows installer to install the extensions and it works! Thanks to everyone who responded, cheers!
  2. haha yea I have no problems with regular php commands. MySQL shows up in phpinfo(). I'm just going through this book that deals with php and sql, and I got through the sections teaching all the commands of php such as classes and loops and arrays, and was able to display all the examples in the book and my own problems fine. And the section dealing with MySQL worked perfectly too. But now I'm at the section combining php and mysql, but I can't seem to get passed this connection issue. I'm using the extension, or I'd assume it would give me an error about not being able to find the function mysql_connect, but it doesn't do anythin, it just sends me to a blank white page.
  3. Eiolon: still just gives me a blank page, even if i input random user names like "fjsdtnlksna". =( BlueSkyIS: How do i turn on error_reporting?
  4. I want to connect to MySQL using php. The code i've seen used in a lot of examples is along the lines of: <?php $username = "username"; $password = "password"; $hostname = "localhost"; $connection = mysql_connect($db_host, $db_username, $db_password); if (!$connection){ die ("Could not connect to the database: <br />". mysql_error( )); } ?> Now, despite whether I assign a correct username/password pair, or an incorrect pair, all it does is send me to a blank page. I've tried making a query after putting in a correct username/password but nothing displayed on the page still. I don't get any errors, just a blank page. Does anyone know what I could be doing wrong? I imagine i'd get an error if it couldn't find the mysql_connect function or something like that. Thanks in advance, -Raol
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.