Hi,

you have reached the wrong address. A few support options are listed on
http://php.net/support.php

You should research the effects of register_globals and the removal of
that option.

johannes

On Tue, 2012-11-27 at 23:22 +0430, afghancv wrote:
> //My server updated:
> //Apache version      2.2.23
> //PHP version         5.4.8
> //MySQL version       5.1.65-cll
> 
> This my old php version, after login. htm code analyzing, but it`s no
> working. I asked this problem from server admin, he wrote me, change
> or upgrade your php code:
> 
> 
> <!--
> // username and password sent from form
> //$myusername=$_POST['myusername'];
> //$mypassword=$_POST['mypassword'];
> // To protect MySQL injection (more detail about MySQL injection)
> //$myusername = stripslashes($myusername);
> //$mypassword = stripslashes($mypassword);
> //$myusername = mysql_real_escape_string($myusername);
> //$mypassword = mysql_real_escape_string($mypassword);
> //$sql="SELECT * FROM members WHERE username='$myusername' and
> password='$mypassword'";
> //$result=mysql_query($sql);
> // Mysql_num_row is counting table row
> //$count=mysql_num_rows($result);
> // If result matched $myusername and $mypassword, table row must be 1 row
> //if($count==1){
> 
> // Register $myusername, $mypassword and redirect to file "login_success.php"
> //session_register("myusername");
> //session_register("mypassword");
> //header("location:login_success.php");
> //}
> //else {
> //header("location:index.php");
> //}
> ?>
> -->
> 
> I think PHP 5.4.8 no supporting session_start, so can you help me
> please! can I change or upgrade this code.
> Best Regards



-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to