Professional Documents
Culture Documents
Super Global Keyword in PHP: $GLOBALS ('Y')
Super Global Keyword in PHP: $GLOBALS ('Y')
local :
static
inside a function.
$_SERVER
gives info about header path and script location.
$_SERVER['PHP_SELF']
will return to itself,
$_SERVER['SERVER_NAM']
filter_var()
gives specific filter to the variable.
ex: filter_var('email',filter-validate,(optional)flag)
//checks if the email in the email textbox is a valid email
2. selecting database:
mysql_select_db(database_name);
3. Mysql queries:
mysql_query(query);
4. closing a connection
mysql_close($conn)
5. mysqli_real_rescape_string(connection,escapestring);
securely transfers our variables to mysql database.