[solved] The strangest error ive ever seen

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

[solved] The strangest error ive ever seen

Post 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"));

?>
Last edited by PrObLeM on Fri Jun 04, 2004 2:37 am, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

very odd... stupid question: what's print_r($_GET) say?
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

Nevermind i got it
Post Reply