house keeping
This commit is contained in:
parent
a24118393c
commit
def7eb6db9
1 changed files with 3 additions and 3 deletions
|
@ -251,13 +251,13 @@
|
||||||
if(mysql_escape_string(stripslashes($_POST['date'])) == "")
|
if(mysql_escape_string(stripslashes($_POST['date'])) == "")
|
||||||
$_POST['date'] = date("Y-m-d H:i:s");
|
$_POST['date'] = date("Y-m-d H:i:s");
|
||||||
|
|
||||||
$query = "select * from `notary` where from`='".$_SESSION['profile']['id']."' AND
|
$query = "select * from `notary` where `from`='".$_SESSION['profile']['id']."' AND
|
||||||
`to`='".$_SESSION['_config']['notarise']['id']."' AND
|
`to`='".$_SESSION['_config']['notarise']['id']."' AND
|
||||||
`awardeded`='$awarded' AND
|
`awarded`='$awarded' AND
|
||||||
`location`='".mysql_escape_string(stripslashes($_POST['location']))."' AND
|
`location`='".mysql_escape_string(stripslashes($_POST['location']))."' AND
|
||||||
`date`='".mysql_escape_string(stripslashes($_POST['date']))."'";
|
`date`='".mysql_escape_string(stripslashes($_POST['date']))."'";
|
||||||
$res = mysql_query($query);
|
$res = mysql_query($query);
|
||||||
if(mysql_num_rows($res) >= 0)
|
if(mysql_num_rows($res) > 0)
|
||||||
{
|
{
|
||||||
$id = $oldid;
|
$id = $oldid;
|
||||||
unset($oldid);
|
unset($oldid);
|
||||||
|
|
Loading…
Reference in a new issue