Jump to content

[SOLVED] BHAD


unkwntech

Recommended Posts

BHAD - Beating Head Against Desk

So for round 2 tonight, I have the following code:

$result = mysql_query($sql, $link) or die('oops');
if(mysql_num_rows($result) < 1)
{
	echo mysql_num_rows($result);
echo "False;NULL;NULL";
}
else 
{
	echo mysql_num_rows($result);
echo 'True;' . mysql_result($result, '0', 'version') . ';' . mysql_result($result, '0', 'fileLocation');
}

which is outputting:

1True;0.1 (0001);path/to/file.ext

the problem is that if mysql_num_rows($result) is 1 then it should be outputting False;NULL;NULL

WTF?

Link to comment
https://forums.phpfreaks.com/topic/127695-solved-bhad/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.