Page 1 of 1

[solved] The strangest error ive ever seen

Posted: Fri Jun 04, 2004 1:19 am
by PrObLeM
ok I have this little bit of code its where it gets the $_GET['data'] value but it wont get the $_GET['to'] ive tried everything and yes the url is
page.php?data=messagebox&to=3 I mean it works fine if I replace $_GET['to'] with the number 3 but no way will it work like that...???How could it be reading the get value in 1 place but 2 lives below it doesn’t?????

Code: Select all

<?php
if($_GET['data'] === 'messagebox')
{
	//[Messages DB]
	//	id		INT(11)
	//	fuser		INT(11)
	//	mDate		INT(11)
	//	message		TEXT
	
		$array = explode(',' , $db->listTable('id', _MESSAGETABLE . " WHERE fuser='".$_SESSION['id']."' OR fuser='".$_GET['to']."' ORDER BY id DESC"));

?>

Posted: Fri Jun 04, 2004 2:01 am
by feyd
very odd... stupid question: what's print_r($_GET) say?

Posted: Fri Jun 04, 2004 2:37 am
by PrObLeM
Nevermind i got it