Code: Select all
<IMG SRC="e;imgtest3.php?type=#"e;>
<IMG SRC="e;imgtest3.php?type=#"e;>Code: Select all
<IMG SRC="e;imgtest3.php?type=1"e;>
<IMG SRC="e;imgtest3.php?type=2"e;>Here's more code if it helps:
Code: Select all
<?php
ini_set("display_errors", "On");
echo("this is text before the picture <br>");
?>
<IMG SRC="imgtest3.php?type=1">
<IMG SRC="imgtest3.php?type=2">
<br>
<?php
echo("this is text after the picture");
?>Code: Select all
<?php
//start of main
header("Content-type: image/gif");
ini_set("display_errors", "On");
$link = @mysql_connect('localhost', 'user', 'password') or die("Could not connect to MySQL");
$db = @mysql_select_db('temp2',$link) or die("Could not select database");
$type=$_GET['type'];
$image=drawimage($link,$type);
//imageinterlace($image,0);
imagegif($image);
//end of main
function drawimage($link,$i)
{
$image = imagecreatefromgif("map.gif");
$query = "SELECT * FROM table2ll WHERE status=1 AND type=".$i; //select green sites
$result = @mysql_query($query,$link) or die("Could not submit query1");
makedots($image, $result, 1);
$query = "SELECT * FROM table2ll WHERE status=2 AND type=".$i;//select red sites
$result = @mysql_query($query,$link) or die("Could not submit query");
makedots($image, $result,2);
$query = "SELECT * FROM table2ll WHERE status=3 AND type=".$i;//select clear sites
$result = @mysql_query($query,$link) or die("Could not submit query");
makedots($image, $result,3);
return($image);
}
?>