[solved] The strangest error ive ever seen
Posted: Fri Jun 04, 2004 1:19 am
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?????
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"));
?>