Jump to content

Recommended Posts

<?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

Link to comment
https://forums.phpfreaks.com/topic/63397-solved-mysql-error/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/63397-solved-mysql-error/#findComment-315981
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.