Do you register_globals off i was able to open my index page using $_SESSION and access the update Account link as you see in the above posts i mentioned but now my main last page which is my_search.php which is the Search link does not work coz this is the code for it
Code: Select all
<?php
include "header.php";
include "valodator.php";
include "header1.php";
?>
<a href="new_search.php"> New Search</a>
<table border=3 width=100%>
<tr>
<td>Search ID</td>
<td>Created</td>
<td>Periodicity</td>
<td>Results Obtained</td>
</tr>
<?php
$id=$user["id"];
$my_user='****';
$my_pass='****';
$db=mysql_connect(localhost,$my_user,$my_pass);
mysql_select_db("blast",$db);
$rez=mysql_query("SELECT * FROM search WHERE s_user=$id");
while(list($s_id,$s_user,$s_time,$s_query_first,$s_query_last,$s_cdate)=mysql_fetch_row($rez)){
?>
<tr>
<td><?=$s_id?></td>
<td><?=$s_cdate?></td>
<td><?
switch($s_time){
case 0:echo "no subscription"; break;
case 1:echo "daily"; break;
case 2:echo "weekly"; break;
case 3:echo "monthly"; break;
}
?>
</td>
<td><?
if($s_query_last==''){echo "NO";
}else{echo "YES";}
?>
</td>
<td><a href='prepare_edit_search.php?id=<?=$s_id?>'>EDIT</a></td>
<td><a href='del_search.php?id=<?=$s_id?>'>DELETE</a></td>
</tr>
<?
}
?>
</table>
<a href='del_search.php?id=all'>Clear History</a>
</body>
</html>Code: Select all
<?php
if(!$user){
header("location: form_login.php");
}
?>Please Help!!!! All my code is falling apart due to register_globals off
Everah | Removed actual database connection details.