|
|
|
สอบถามการใช้ javascript + php ใน form สมัครสมาชิก |
|
|
|
|
|
|
|
...
|
|
|
|
|
Date :
2011-09-11 17:36:55 |
By :
zxc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
อักตัวอย่างครับ
Code (PHP)
<?
$objConnect = mysql_connect("localhost","root","root") or die("Error Connect to Database");
$objDB = mysql_select_db("mydatabase");
$strSQL = "SELECT * FROM customer WHERE CustomerID = '".$_POST["txtCustomerID"]."' ";
$objQuery = mysql_query($strSQL);
$objResult = mysql_fetch_array($objQuery);
if($objResult)
{
echo "CustomerID already exist.";
}
else
{
}
mysql_close($objConnect);
?>
|
|
|
|
|
Date :
2011-09-12 11:30:12 |
By :
webmaster |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 00
|