Reputation:
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){
Upvotes: 0
Views: 1324
Reputation: 216
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
Upvotes: 1