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
- Re: [PHP] String Comparison Jason Bell
- Re: [PHP] String Comparison Jason Bell
- Re: [PHP] String Comparison Phil Driscoll
- [PHP] Re: String Comparison Adrian Ciutureanu
- [PHP] string comparison Bas Jobsen
- RE: [PHP] string comparison John Holmes