You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
830 B

<?php
///// new ------------------ajay
$handle = mysql_connect($dbhost1,$dbuser1,$dbpass1)
or die('could not connect database');
if (!mysql_select_db("bookmark4u", $handle)) {
echo 'Could not select database';
exit;
}
////finding user id
$sql = "select uid from passwd where user = '$username'";
$result1 = mysql_query($sql,$handle);
if(mysql_num_rows($result1)>0){
$uid = mysql_result($result1,0);
$sql1 = "delete from bookmark where uid = " . $uid;
mysql_query($sql1,$handle);
$sql2 = "delete from config where uid = " . $uid;
mysql_query($sql2,$handle);
$sql3 = "delete from trash where uid = " . $uid;
mysql_query($sql3,$handle);
$sql4 = "delete from passwd where uid = " . $uid;
mysql_query($sql4,$handle);
}
mysql_close($handle);
?>