Maybe with something like
if ( navigator.userAgent.match (/secure_user_agent/i) return true;
else return false;
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\’‘ at line 1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\’‘ at line 1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\’‘ at line 1
Actually this is something you check on server side, hence you will not find the code on the source of the page…
Usually, if using php, $_SERVER[ ‘HTTP_USER_AGENT’] will hold the user agent string:
[quote=php.net]‘HTTP_USER_AGENT’
Contents of the User-Agent: header from the current request, if there is one. This is a string denoting the user agent being which is accessing the page. A typical example is: Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586). Among other things, you can use this value with get_browser() to tailor your page’s output to the capabilities of the user agent. [/quote]
@Mugiwara27 Invalid expression. ‘)’ token is expected to close if-condition. Also why do it :( way?
When you can do it smart way:
return navigator.userAgent.match(/secure_user_agent/i);
@rym123 Don’t forget to close the thread if you have solved this level.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\’‘ at line 1
Do you know the meaning of “User agent”?
The site will only authenticate browsers with the correct user agent.