MrBillybob Posted August 5, 2007 Share Posted August 5, 2007 <?php if ($row['refType'] == "Market Transaction") { $sql = 'SELECT * FROM `eve_wallet_t` WHERE `transID` = ' . $row['argName1'] . ''; $result4 = mysql_query($sql); if (!$result4) { // put he transaction link here $out1 = mysql_result($result4, 0, "transID"); $out2 = mysql_result($result4, 0, "quantity"); $out3 = mysql_result($result4, 0, "type"); echo "<a href=\"".$thinout."\">" . $thinout2 . "x" . $thinout3 . "</a>"; }else{ echo $row['argName1']; } }else{ echo $row['argName1']; } ?> Error: Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 82 in /home/content/t/u/b/tubguys/html/eve/index.php on line 726 Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 82 in /home/content/t/u/b/tubguys/html/eve/index.php on line 727 Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 82 in /home/content/t/u/b/tubguys/html/eve/index.php on line 728 Explanation: This $row['argName1'] does not exist on this row i want to know how i can skip it. $row['argName1'] can equal a number or a word. If its a word then i want to skip it.. but if $row['refType'] == "Market Transaction" then it will equal a number...so Quote Link to comment https://forums.phpfreaks.com/topic/63397-solved-mysql-error/ Share on other sites More sharing options...
Barand Posted August 5, 2007 Share Posted August 5, 2007 Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 82 in /home/content/t/u/b/tubguys/html/eve/index.php on line 726 row 0 is the first row of the returned results. If your query doesn't find any matching rows then it can't go to row 0. Hence the error. Use mysql_num_rows() first to check you have results. if (!$result4) { This will execute the following code if there is a query error Quote Link to comment https://forums.phpfreaks.com/topic/63397-solved-mysql-error/#findComment-315981 Share on other sites More sharing options...
MrBillybob Posted August 5, 2007 Author Share Posted August 5, 2007 thank you Quote Link to comment https://forums.phpfreaks.com/topic/63397-solved-mysql-error/#findComment-315982 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.