note 79669 added to function.header
| From: | http://phpsourcecode dot blogspot dot com at osu1 dot php dot net | Date: | Fri, 07 Dec 2007 12:30:53 +0000 |
| Subject: | note 79669 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132923@lists.php.net to get a copy of this message | ||
check like that if user can not set session userid then go to the index page.
if($_SESSION['userid']!='')
{
require_once('include/config_inc.php');
$current_userid = $_SESSION['userid'];
$query = "select * from $table_signup where id = '$current_userid'";
$result = $db->query($query);
$user_data = $db->fetch_array($result);
}
else
{
header('Location: index.php');
}
----
Server IP: 203.199.69.133
Probable Submitter: 122.168.55.252
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- https://master.php.net/note/edit/79669
Del: integrated -- https://master.php.net/note/delete/79669/integrated
Del: useless -- https://master.php.net/note/delete/79669/useless
Del: bad code -- https://master.php.net/note/delete/79669/bad+code
Del: spam -- https://master.php.net/note/delete/79669/spam
Del: non-english -- https://master.php.net/note/delete/79669/non-english
Del: in docs -- https://master.php.net/note/delete/79669/in+docs
Del: other reasons-- https://master.php.net/note/delete/79669
Reject -- https://master.php.net/note/reject/79669
Search -- https://master.php.net/manage/user-notes.php