/    Sign up×
Community /Pin to ProfileBookmark

Unknow error(But everything work fine)

I Always get an error(Error: imagesPages is not defined) when I click on the arrow(in bold) to show the next image.

But everything works fine.

Any Idea what is this error?

[CODE]
<html>
<head>
<title>Voir les photos</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
</head>
<body>
<?php
$Num = “0”;
$id = $_GET[“id”];
$iCtr = “1”;
//$HTTP_GET_VARS[‘action’]

if ($id == “”)
{
$id = “1”;
}

$db = mysql_connect(“localhost”, “Sam”);

mysql_select_db(“melville”,$db);

$result = mysql_query(“SELECT * FROM admin”,$db);
$Num = mysql_num_rows($result);

if ($id > $Num)
{
$id = $Num;
}

if ($id <= 0)
{
$id = 1;
}

for($iCtr=1; $iCtr <$id; $iCtr++)
{
$myrow = mysql_fetch_array($result);
}

if($myrow = mysql_fetch_array($result))
{
echo”<p align=center>”;

printf(“<a href=%s?id=%s><img id=IMG src=%s width=42 height=48 border=0 onClick=previousSlide(%s)>”,
$_SERVER[‘PHP_SELF’],$id-1,”imagesPages/arrow33l.gif”,$myrow[“Images”]);

[B]printf(“<a href=%s?id=%s><img src=imagesPages/arrow33r.gif width=42 height=48 border=0 onClick=%s></a>”,
$_SERVER[‘PHP_SELF’],$id+1,$myrow[“Images”]);[/B]

echo”</p>”;
echo”<table width=200 border=1 align=center>”;

printf(“<tr><td><P ALIGN=center><a><IMG SRC=%s BORDER=0 NAME=slide></a></P></td></tr>”,
$myrow[“Images”]);

echo”</table>”;
}
?>
</body>
</html>
[/CODE]

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@SamKookauthorMar 30.2004 — forget it, I solved it.
×

Success!

Help @SamKook spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...