This is the JavaScript code, stored in the file "clienthint.js": var xmlhttp function showHint(str) { if (str.length==0) { document.getElementById("txtHint").innerHTML=""; return; } xmlhttp=GetXmlHttpObject(); if (xmlhttp==null) { alert ("Your browser does not support XMLHTTP!"); return; } var url="gethint.php"; url=url+"?q="+str; url=url+"&sid="+Math.random(); xmlhttp.onreadystatechange=stateChanged; xmlhttp.open("GET",url,true); xmlhttp.send(null); } function stateChanged() { if (xmlhttp.readyState==4) { document.getElementById("txtHint").innerHTML=xmlhttp.responseText; } } function GetXmlHttpObject() { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
Returns MySQL server info 4 Returns information about the last query 4 Returns the AUTO_INCREMENT ID generated from the previous INSERT operation 3 Lists available databases on a MySQL server 3 mysql_list_fields() Deprecated. Lists MySQL table fields. Use mysql_query() instead 3 Lists MySQL processes 4 mysql_list_tables() Deprecated. Lists tables in a MySQL database. Use mysql_query() instead 3 Returns the number of fields in a recordset 3 Returns the number of rows in a recordset 3 Opens a persistent MySQL connection 3 Pings a server connection or reconnects if there is no connection 4 Executes a query on a MySQL database 3 Escapes a string for use in SQL statements 4 Returns the value of a field in a recordset 3 Sets the active MySQL database 3 Returns the current system status of the MySQL server 4 mysql_tablename() Deprecated. Returns the table name of field. Use mysql_query() instead 3
Randomly shuffles all characters in a string 4 Splits a string into an array 5 Count the number of words in a string 4 Compares two strings (case-insensitive) 3 Finds the first occurrence of a string inside another string (alias of strstr()) 3 Compares two strings (case-sensitive) 3 Locale based string comparison 4 Returns the number of characters found in a string before any part of some specified characters are found 3 Strips HTML and PHP tags from a string 3 Unquotes a string quoted with addcslashes() 4 Unquotes a string quoted with addslashes() 3 Returns the position of the first occurrence of a string inside another string (case-insensitive) 5 Finds the first occurrence of a string inside another string (case-insensitive) 3 Returns the length of a string 3 Compares two strings using a "natural order" algorithm (case-insensitive) 4 Compares two strings using a "natural order" algorithm (case-sensitive) 4
Reads the next entry in a ZIP file 4 PHP Zip File Constants NONE You can test your PHP skills with W3Schools' Quiz. The Test The test contains 20 questions and there is no time limit. The test is not official, it's just a nice way to see how much you know, or don't know, about PHP. Your Score Will be Counted You will get 1 point for each correct answer. At the end of the Quiz, your total score will be displayed. Maximum score is 20 points. Good luck! W3Schools' Online Certification Program. The perfect solution for busy professionals who need to balance work, family, and career building. More than 4000 certificates already issued! Don't Let A Busy Schedule Ruin Your Career Study and train for your certificates at no cost Study and train for your certificates when it is convenient Study and train for your certificates from your own computer Complete your studies in a few weeks Take your exams over the Internet