here's a link to my test page, this is the one that is so slow. Hope this is what you were looking for.
http://www.auburn.edu/~white04/test/manager/Orders.php
and here's the function:
function ExecuteQuery($MysqlQuery) {
$MysqlInfo = MysqlInfo();
$link = mysql_connect($MysqlInfo[0], $MysqlInfo[1], $MysqlInfo[2])
or die("Could not connect");
mysql_select_db($MysqlInfo[3])
or die("Could not select database");
// Performing SQL query
$result = mysql_query($MysqlQuery)
or die("Query failed");
// return array
return $result;
// Closing connection
mysql_close($link);
}
function ExecuteNonQuery($MysqlQuery) {
$MysqlInfo = MysqlInfo();
$link = mysql_connect($MysqlInfo[0], $MysqlInfo[1], $MysqlInfo[2])
or die("Could not connect");
mysql_select_db($MysqlInfo[3])
or die("Could not select database");
// Performing SQL query
mysql_query($MysqlQuery)
or die("Query failed");
$result = mysql_insert_id();
// Closing connection
mysql_close($link);
return $result;
}
I just found a problem in some other code.. so if that link doesn't work, i'm sorry.