this is what i have so far:
<?php
$db = "testing";
$user = "root";
$pw = "";
$mysql_access = mysql_connect("localhost", $user, $pw);
mysql_select_db($db, $mysql_access);
$query = "SELECT * FROM users WHERE access_id='0.19642099383885'";
$result = mysql_query($query);
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
$my_img = imagecreate( 400, 100 );
$background = imagecolorallocate( $my_img, 0, 0, 255 );
$text_colour = imagecolorallocate( $my_img, 255, 255, 0 );
$line_colour = imagecolorallocate( $my_img, 128, 255, 0 );
imagestring( $my_img, 4, 5, 5, "{$row['name']} ({$row['age']})", $text_colour );
imagestring( $my_img, 4, 5, 20, "{$row['email']}", $text_colour );
imagestring( $my_img, 4, 5, 35, "{$row['status']}", $text_colour );
imagestring( $my_img, 4, 5, 80, "{$row['pm']}", $text_colour );
header( "Content-type: image/png" );
imagepng( $my_img );
imagecolordeallocate( $line_color );
imagecolordeallocate( $text_color );
imagecolordeallocate( $background );
imagedestroy( $my_img );
}
?>
and
<img src="image.php" />
what i want is the users personal image on it, but when i enter
imagestring( $my_img, 4, 5, 80, "<img src='{$row['image']}' height='60px' width='60px' />", $text_colour );
it displays this;
<img src='the image url' height='60px' width='60px' />
and not the actual image