Fatal error: Call to undefined function session_register() in /home/bdp/public_html/yonetim/login.php on line 46
hatası alıyorum.
<?php
include("config.php");
session_start();
if(isset($_POST['submitMe']))
{
$myusername=addslashes($_POST['username']);
$mypassword=addslashes($_POST['password']);
$sql="SELECT * FROM yonetim_admin WHERE user='$myusername' and pas='$mypassword'";
$result=@mysql_query($sql);
$row=@mysql_fetch_array($result);
$active=$row['active'];
$count=mysql_num_rows($result);
// If result matched $myusername and $mypassword, table row must be 1 row
if($count==1)
{
session_register("myusername");
$_SESSION['login_user']=$myusername;
header("location: index.php");
}
else
{
?>46. Satır : session_register("myusername");