简体   繁体   English

通过javascript检查字段值是否存在于数据库中

[英]check if the field value exists in the database by javascript

check if the field value exists in the database by javascript 通过javascript检查字段值是否存在于数据库中

Is it possible? 可能吗?

maybe something like this .. 也许像这样..

search = mysql_query("SELECT * FROM table3 WHERE name = 'name' AND title = 'title'");
if(@mysql_num_rows(search) > 0){

It is IMPOSSIBLE to comunicate with any type of server in javascript. 与javascript中的任何类型的服务器进行通讯都是不可能的。 IMPOSSIBLE don't even try to search something. 不可能甚至不要尝试搜索。 You need other languages like php ( reccomended ), java, asp... Check tutorials for connecting with php: 您需要其他语言,例如php(推荐),java,asp。...检查与php连接的教程:

PHP mssql server connection tutorial PHP mssql服务器连接教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM