看看还有谁会犯这两个错误????
第一个JS问题
<br /><br /><script><br /> $$=function(id){<br /> return document.getElementById(id);<br />}<br />var error='';<br />if($$("bid").value.replace(/^\s+/,"").replace(/\s+$/,"")<$$("reserve_price").value){<br /> error+="Your bid must be equal to or higher than the reserve price\n";<br /> }<br /> alert($$("bid").value.replace(/^\s+/,"").replace(/\s+$/,""));<br /> alert($$("reserve_price").<strong style="color:transparent">¥本文来源gaodai#ma#com搞@@代~&码网^</strong><small>搞gaodaima代码</small>value);<br /> alert(error);<br /></script>
你们认为这写法对吗?认为对的请运行程序看看,娃哈哈。。
第二个数据库问题。
数据表名称product
id int(4)
name varchar(20);
price text
有2条记录
id name price
1 电视机 750.00
2 空调 5000
按价格高低排序出来
写sql语句
select * from product order by price desc
认为对的请运行看看,