oh wait.. I just realize my goof.... it is treating it like I want to
divide image by pjpeg. LMAO
*sigh* I guess I should just go home while I'm ahead. haha
-Jason
----- Original Message -----
From: "Jason Bell" <[EMAIL PROTECTED]>
To: "PHP Users" <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 3:59 PM
Subject: [PHP] String Comparison
Hello.
I'm trying to compare two strings, and performa function if the are the
same. Easy right? I thought so until I tried it...
$query = "select type from images where id=$id";
$result = mysql_query($query);
$type = mysql_result($result,0,"type");
print $type;
if (image/pjpeg == $type) { print "Type is JPG"; };
returned:
image/pjpeg
Warning: Division by zero in /home/daelic/www/photo/mkthumb.php on line 8
Any idea on why this won't work?
Thanks!
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]