when you pass a query result to mysql_fetch_array, it should contain some data otherwise it will returns a warning like "mysql_fetch_array() expects parameter 1 to be resource (or mysqli_result), boolean given"
So how many characters is enough to store an ip address in a mysql table? As the length of IP address varies from IPv4 to IPv6, To define the size of a column that ip address is going occupy, we must know maximum length of the ip address in both versions so that we can assign the maximum length to mysql column.
Using Regular expression( Regex ), We can check whether the given string has minimum no. of characters or whether it is inside specified range etc.
A form element if set to disabled, then the element value will not posted. This is a standard behaviour, To overcome this we can use readonly attribute.
Though both disabled and read only primary job is preventing content being edited, still there are few differences exists between them.
To get a domain name in php, we use http_host or server_name variables. But what is the difference between http_host and server_name and which one will return more accurate results?
Generally, "replace" method in java script replaces only the first occurrence in the given string. We can change this behaviour by using regular expression.