Hello,
I created this site on my local machine using PHP 5.0.4 and mysql 4.1 and it works perfectly fine.
I then ftp it to my webhost but the code to retrieve values give me this error.
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/laterallinks/ApplicantInformation.php on line 25
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/www/laterallinks/ApplicantInformation.php on line 621
I let my webhost know they so they upgrade from php 4 to php 5.0.5 but still use mysql client version 3.x
Here is the portion of the code that uses the functions.
segment 1:
$sql = mysql_query($query);
while($row = mysql_fetch_array($sql)){
?>
<div align="center">
<p align="right"><font face="Courier New"><font color="#0000FF"><b>Time of Application: </b></font> <? echo $row?></font></p>
<table border="1" width= "750" style="border-collapse: collapse" id="table1" bgcolor="#F2FDFF">
segment 2:
$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM applicants ". $genQuery),0);
what could be possible wrong.