Warning: Access denied for user: 'apache@localhost' (Using password: NO) in /home/chai/homepage/officeaddproduct1.php on line 31
Warning: MySQL Connection Failed: Access denied for user: 'apache@localhost' (Using password: NO) in /home/chai/homepage/officeaddproduct1.php on line 31
Warning: MySQL: A link to the server could not be established in /home/chai/homepage/officeaddproduct1.php on line 31
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/chai/homepage/officeaddproduct1.php on line 32
Warning: Access denied for user: 'apache@localhost' (Using password: NO) in /home/chai/homepage/officeaddproduct1.php on line 38
Warning: MySQL Connection Failed: Access denied for user: 'apache@localhost' (Using password: NO) in /home/chai/homepage/officeaddproduct1.php on line 38
Warning: MySQL: A link to the server could not be established in /home/chai/homepage/officeaddproduct1.php on line 38
Warning: mysql_close(): no MySQL-Link resource supplied in /home/chai/homepage/officeaddproduct1.php on line 40
Warning: Access denied for user: 'apache@localhost' (Using password: NO) in /home/chai/homepage/officeaddproduct1.php on line 46
Warning: MySQL Connection Failed: Access denied for user: 'apache@localhost' (Using password: NO) in /home/chai/homepage/officeaddproduct1.php on line 46
Warning: MySQL: A link to the server could not be established in /home/chai/homepage/officeaddproduct1.php on line 46
Warning: mysql_close(): no MySQL-Link resource supplied in /home/chai/homepage/officeaddproduct1.php on line 48
Warning: Access denied for user: 'apache@localhost' (Using password: NO) in /home/chai/homepage/officeaddproduct1.php on line 54
Warning: MySQL Connection Failed: Access denied for user: 'apache@localhost' (Using password: NO) in /home/chai/homepage/officeaddproduct1.php on line 54
Warning: MySQL: A link to the server could not be established in /home/chai/homepage/officeaddproduct1.php on line 54
Warning: mysql_close(): no MySQL-Link resource supplied in /home/chai/homepage/officeaddproduct1.php on line 56
Warning: Access denied for user: 'apache@localhost' (Using password: NO) in /home/chai/homepage/officeaddproduct1.php on line 62
Warning: MySQL Connection Failed: Access denied for user: 'apache@localhost' (Using password: NO) in /home/chai/homepage/officeaddproduct1.php on line 62
Warning: MySQL: A link to the server could not be established in /home/chai/homepage/officeaddproduct1.php on line 62
Warning: mysql_close(): no MySQL-Link resource supplied in /home/chai/homepage/officeaddproduct1.php on line 64
Warning: Access denied for user: 'apache@localhost' (Using password: NO) in /home/chai/homepage/officeaddproduct1.php on line 70
Warning: MySQL Connection Failed: Access denied for user: 'apache@localhost' (Using password: NO) in /home/chai/homepage/officeaddproduct1.php on line 70
Warning: MySQL: A link to the server could not be established in /home/chai/homepage/officeaddproduct1.php on line 70
Warning: mysql_close(): no MySQL-Link resource supplied in /home/chai/homepage/officeaddproduct1.php on line 72
Warning: Access denied for user: 'apache@localhost' (Using password: NO) in /home/chai/homepage/officeaddproduct1.php on line 78
Warning: MySQL Connection Failed: Access denied for user: 'apache@localhost' (Using password: NO) in /home/chai/homepage/officeaddproduct1.php on line 78
Warning: MySQL: A link to the server could not be established in /home/chai/homepage/officeaddproduct1.php on line 78
Warning: mysql_close(): no MySQL-Link resource supplied in /home/chai/homepage/officeaddproduct1.php on line 80
$db_conn = mysql_connect($hostname,$user,$password) or die ("ไม่สามารถติดต่อฐานข้อมูลได้ 1");
mysql_select_db($dbname,$db_conn) or die ("ไม่สามารถติดต่อฐานข้อมูลได้2");
If (!$cus_name){
echo "<br><br><center><font color=#FF0000><b>ไม่ได้กรอกชื่อลุกค้า</b></font></center><br>";
//echo "<meta http-equiv=refresh content=3;URL=addproduct.php>";
}else{
//เพิ่มข้อมูลรายชื่อลูกค้าลงDatabase
$chk_id = "select id from officeaddpro order by id DESC ";
$chk_id_re = mysql_db_query($dbname,$chk_id);
$id_re = mysql_fetch_row( $chk_id_re );
$id = $id_re[0]; // ä´é¤èÒ id ÊØ´·éÒ¨ҡ Database à¡çºäÇéã¹µÑÇá»Ã $id