tanhaha_how
01-03-2007, 04:29 PM
hi everyone,i have a problem regarding how to get the value from database....
<?php
$query = "Select Patient_ID from tblpatient where Patient_ID='".$_POST["Patient_ID"]."' order by Patient_ID desc limit 1;";
$result = mysql_query($query);
$row = mysql_fetch_assoc($result);
// echo $_POST['Patient_ID'];
$newPatientID = $_POST["Patient_ID"] + 1;
?>
i know my code is sth wrong dee....can anyone help me pls????
thank u very much:thumbsup:
<?php
$query = "Select Patient_ID from tblpatient where Patient_ID='".$_POST["Patient_ID"]."' order by Patient_ID desc limit 1;";
$result = mysql_query($query);
$row = mysql_fetch_assoc($result);
// echo $_POST['Patient_ID'];
$newPatientID = $_POST["Patient_ID"] + 1;
?>
i know my code is sth wrong dee....can anyone help me pls????
thank u very much:thumbsup: