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