Jump to content

nefty123

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

nefty123's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Well I took Mchl's advice, in a way. I uninstalled my versions and then installed from the CD that came with the book. Now I have: mySQL 5.0.51a Apache 2.2.8 PHP 5.2.5 The mysqli_assoc now works perfectly. I can not say definitively that the newer versions had a bug. It may have been during this install I entered the correctly needed parms for it to work. I did have a heck of a time installing mySQL. I had to use www.angusj.com/resourcehacker to correct a line in the MySQLInstanceConfig.exe file. I used the sdafasd posting, MySQL Server 5.0.51a Installation guide for Windows Vista, found on forums.mysql.com. I used this guide because the InstanceConfig did not work from the .msi for mySQL. Well, thanks to all for your help.
  2. Thanks for quick reply. The Client API library version is 5.1.30. The Client API header version is 5.0.51a.
  3. I am encountering the same problem while working through Sams Teach Yourself PHP, MySQL and Apache 4th edition book. mySQL 5.1.30 Apache 2.2.11 PHP 5.2.8 My code is: <?php $mysqli = mysqli_connect("localhost", "root", "bernedit123", "sty"); if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } else { $sql = "SELECT * FROM testTable"; $res = mysqli_query($mysqli, $sql); if ($res) { while ($newArray = mysqli_fetch_array($res, MYSQLI_ASSOC)) { $id = $newArray['id']; $testField = $newArray['testField']; echo "The ID is ".$id." and the text is ".$testField."<br/>"; } } else { printf("Could not retrieve records: %s\n", mysqli_error($mysqli)); } mysqli_free_result($res); mysqli_close($mysqli); } ?> I get the MS Windows error pop up and Internet Explorer cannot display the page: Microsoft windows message Apache HTTP Server stopped working and was closed A problem caused the application to stop working correctly. Windows will notify you if a solution is available. I have been using Google to locate an answer. Thanks for any feedback.
×
×
  • 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.