here is the error
Warning: mysql_result(): Unable to jump to row 1 on MySQL
here is the code im using.
$connect = mysql_connect($host, $user, $pass) or die("could not connect to server");
$db_select = mysql_select_db($database) or die("could not select the database");
$sql = "SELECT username FROM $table2 WHERE user_id ='".$postid0."' and '".$postid1."' and '".$postid2."' and '".$postid3."' and '".$postid4."'";
$result = mysql_db_query($database,$sql);
if (!$result || mysql_num_rows($result) < 1) {
print mysql_error() . ' ERROR - SELECT note query failed for PosterID! ';
}
$col=0;
$rows=mysql_num_rows($result);
for ($i=0; $i<4; $i++) {
$arr[$i]=mysql_result($result,$i,$col);
$name0 = $arr[0];
$name1 = $arr[1];
$name2 = $arr[2];
$name3 = $arr[3];
$name4 = $arr[4];
}
i have a display tag in the web page the looks like <? =$name0?> and so forth. The variables $postid0 -2-3-4 etc have proven to be valid and therefor not the source of my problem.
Any ideas?
I'm sort of new to this so it's probably somthing stupid on my part.
Thanks in advance.
Mike