Warning: Unable to jump to row 0 on MySQL result index 2 in

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Locked
franknu
Forum Contributor
Posts: 146
Joined: Sun May 28, 2006 9:29 am

Warning: Unable to jump to row 0 on MySQL result index 2 in

Post by franknu »

i wonder what this message means

the code is this

Code: Select all

<html>


<head>
  <title>Hello!</title>
</head>

<body>



<?

$host = "localhost";
$username = "localhost";
$password = "abc123";
$database = "contacts";

$db = mysql_connect($host, $username, $password);
mysql_select_db($database);

$result = mysql_query("SELECT * FROM `First Name:` WHERE `Position:`",$db) or die(mysql_error());

$myvar= "Hello World";
printf("$myvar");
$num_results = mysql_num_rows($result);

printf("Position: %s<br>\n", mysql_result($result,0,`Position:`));

?>

</body>
</html>
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

This is the third time you've posted this.

DO NOT POST MULTIPLE POSTS!!!


LOCKED

viewtopic.php?p=267355&highlight=#267355
viewtopic.php?t=49144
Locked