$result=mysql_query("select * from shop_goods where goods_name='{$_POST['goods_name']}'"); if (mysql_num_rows($result)>0){ echo "history.go(-1); alert('商品名稱已存在')";
這只是新增時單純判斷goods_name裡有沒有重複的名稱
那如果要增加條件 例如: 在台灣(goods_country) and 台北縣(goods_area) 下有沒有重複的goods_name名稱 我因該要怎麼寫才好呢?
This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html
You are receiving this email because you subscribed to this feed at blogtrottr.com.
留言列表