Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
检查字段值是否存在于数据库中javascript
javascript
可能吗?
也许是这样的..
search = mysql_query("SELECT * FROM table3 WHERE name = 'name' AND title = 'title'"); if(@mysql_num_rows(search) > 0){
用 javascript 与任何类型的服务器通信是不可能的。IMPOSSIBLE 甚至不要尝试搜索某些内容。您需要其他语言,例如 php ( 推荐 )、java、asp... 查看连接 php 的教程:
PHP mssql服务器连接教程