/var/www/(Del)discoverylearning.com.hk/webadmin/smlink_modify.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php require("configure.php");
 
$SMId         $_POST["SMId"];
$SMLink        htmlspecialchars($_POST["SMLink"],ENT_QUOTES);

//print_r($_POST);

// Modify 
$sql "update SocialMedia set SMLink='$SMLink' ";
$sql .= " where SMId="$SMId ." ";
mysql_query($sql);

if( 
mysql_errno() > ){
    echo 
'SocialMedia Modify Error:<br />'mysql_error() .'<br />SQL: '$sql;
    exit;
}    
mysql_close($dbh);

header("Location: smlink_modifyform.php?id="$SMId ."&msg=Modify Successful");
?>