I currently have a HUGE website (group od sub-d's) under IIS, and i am TRYING to build a replica using the PHP-MySQL cofig, but i downloaded Mysql5 and PHP5, something i am finding out is not to good of an idea.
I have tried several examples of scripts for the mysqlI functions to no avail, i can CONNECT, but my queries return nothing. and yes, i AM connecting to a database that does have data (18,945 rows of it).
here's what i've got, and it does nothing:
Code: Select all
<?php
$link = mysqli_connect("localhost", "root", "DEMIGOD", "alexgrim");
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
if ($result = mysqli_query($link, "SELECT uname FROM account_info ORDER BY Name")) {
$row_cnt = mysqli_num_rows($result);
printf("Result set has %d rows.\n", $row_cnt);
mysqli_free_result($result);
}
mysqli_close($link);
?>