clone HEINZ
New member
here the code
<?php
session_start();
include "connect.php";
$share = protect($_POST['share']);
//var_dump($share);
$sql="SELECT * FROM table WHERE id ='$_SESSION['id']'";
$result=mysql_query($sql) or die(mysql_error());
$count=mysql_num_rows($result);
while($row = mysql_fetch_assoc($result)){
mysql_query((UPDATE `my_db`.`m_user_acc` SET `status` = '$share' WHERE `table`.`uid` =$_SESSION['id']);
}
?>
i checked it , it is working upto var_dump
and i also wnt it to redirect it to another page(lets say index.php)
thanx
protect is the function i created in connect.php
<?php
session_start();
include "connect.php";
$share = protect($_POST['share']);
//var_dump($share);
$sql="SELECT * FROM table WHERE id ='$_SESSION['id']'";
$result=mysql_query($sql) or die(mysql_error());
$count=mysql_num_rows($result);
while($row = mysql_fetch_assoc($result)){
mysql_query((UPDATE `my_db`.`m_user_acc` SET `status` = '$share' WHERE `table`.`uid` =$_SESSION['id']);
}
?>
i checked it , it is working upto var_dump
and i also wnt it to redirect it to another page(lets say index.php)
thanx
protect is the function i created in connect.php