ERROR - Could not connect to MySQL [MAKEME]"; exit; } $mysqlVersion = intval(mysql_get_server_info()); if($mysqlVersion >= 5) sqlQuery($link, "SET NAMES 'tis620'"); return $link; } function sqlClose($link) { mysql_close($link); } function sqlSelectDb($link, $db) { mysql_select_db($db, $link); } function sqlQuery($link, $query) { if( mysql_query($query, $link) == false ) { printf("Failed to query ‘%s’: %s", $query, mysql_error($link)); sqlClose($link); exit; } } function sqlSelectQuery($link, $query) { $result = mysql_query($query, $link); if( $result == false ) { printf("Failed to query ‘%s’: %s", $query, mysql_error($link)); sqlClose($link); exit; } return $result; } function sqlAffectedRows($link) { return mysql_affected_rows($link); } function sqlNumRows($result) { return mysql_num_rows($result); } function sqlFetchRow($result) { return mysql_fetch_row($result); } function sqlFreeResult($result) { mysql_free_result($result); } function sqlFetchArray($result) { return mysql_fetch_array($result); } function sqlEscapeString($sring) { return mysql_escape_string($string); } function sqlInsertId($link) { return mysql_insert_id($link); } /// Random Select Row function random_row($table, $column) { $max_sql = "SELECT max(" . $column . ") AS max_id FROM " . $table; $max_row = mysql_fetch_array(mysql_query($max_sql)); $random_number = rand(1, $max_row['max_id']); $random_sql = "SELECT * FROM " . $table . " WHERE " . $column . " >= " . $random_number . " ORDER BY " . $column . " ASC LIMIT 1"; $random_row = mysql_fetch_row(mysql_query($random_sql)); if (!is_array($random_row)) { $random_sql = "SELECT * FROM " . $table . " WHERE " . $column . " < " . $random_number . " ORDER BY " . $column . " DESC LIMIT 1"; $random_row = mysql_fetch_row(mysql_query($random_sql)); } return $random_row; } function subpage($page,$maxpage){ $subpage .= ""; } $subpage .= "
"; if( $page > 1 ) $subpage .= "|< "; else $subpage .= " |< "; //print ""; if( $page > 1 ) $subpage .= " << "; else $subpage .= "<<"; for ($b=1;$b<=$maxpage;$b++){ $subpage .= ""; if($page==$b) $subpage .= " $b "; else $subpage .= " $b "; $subpage .= ""; if( $page < $maxpage ) $subpage .= " >> "; else $subpage .= " >> "; $subpage .= ""; if( $page < $maxpage ) $subpage .= " >|"; else $subpage .= " >| "; $subpage .= "
\n\t\n"; $subpage .= "\t\n\t\t"; $subpage .= "\n\t\n\n"; return $subpage ; } ?>
Warning: Invalid argument supplied for foreach() in /home/fastadv/public_html/firesidecash-com.com/include/main.php on line 21

Fatal error: Call to undefined function sqlConnect() in /home/fastadv/public_html/firesidecash-com.com/index.php on line 8