PHP image enlarge/POPUP

Hi, im a beginner in php and mysql. i hv a display image page whr the image path is stored in mysql. im able to to display all the image. but i nd the image to enlarge when mouseover. i hv search many article regarding it but nothing seems work on my code. so i nd some advice what type of function i hv to do in order to get the image popup?

Thank you

my php code are

[php]
// Build SQL Query
$query = "select * from carimage where picid = ‘na1’ "; // EDIT HERE and specify your table and field names for the SQL query

$numresults=mysql_query($query);
$numrows=mysql_num_rows($numresults);

// get results
$result = mysql_query($query) or die(“Couldn’t execute query”);

if($numrows >0){
echo “

”;
// loop to create columns
$position = 1;
while ($row= mysql_fetch_array($result)) {
if($position == 1){echo “”;}
echo " <img src='images/" .$row[‘name’]. " ’ width=‘110’ height=‘90’>";
if($position == 3){echo "</tr> "; $position = 1;}else{ $position++;}

}//while

$end = “”;
if($position != 1){
for($z=(4-$position); $z>0 ; $z–){
$end .= “”;
}
$end .= “

”;
}
echo $end."</table> ";

}
[/php]

This wouldn’t be PHP. You’d need JQuery or AJAX. Maybe flash or html5 but the first 2 are your best bet.

hi raythxc, i hv no idea how to do with jquery or ajax? do you hv sample coding with it?

Sponsor our Newsletter | Privacy Policy | Terms of Service