简体   繁体   中英

check if the field value exists in the database by javascript

check if the field value exists in the database by 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. IMPOSSIBLE don't even try to search something. You need other languages like php ( reccomended ), java, asp... Check tutorials for connecting with php:

PHP mssql server connection tutorial

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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