MySQL Forums
Forum List  »  PHP

unable to find the bug
Posted by: srinivas gajing
Date: September 08, 2005 01:19AM

i'm using PHP as my language in devlopeing the application and MYSQL as database

i'm using

<?

$sql="SELECT * from `addjobs` WHERE id=".$_GET['id'];
$rec=mysql_query($sql,$link);
$recrow=mysql_fetch_row($rec);


if($_SERVER['REQUEST_METHOD']=='POST')
{

$id=$_POST['did'];
$sql= "DELETE FROM addjobs WHERE id = $id";

//echo $sql;
//$res = mysql_query($sq1,$link);
$res = execute_non($sq1);

header("location:jobs.php?msg=3");
}

?>
where as the data base is not changing i.e. not updating with execution of following code. where as the query what i have given in this code is executed successfully sql query, i can't able to find out the bug plz help me to solve this problem.

Options: ReplyQuote


Subject
Written By
Posted
unable to find the bug
September 08, 2005 01:19AM
September 08, 2005 02:54AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.