Proper DB Insertion from Web Page.


</pre>
<div>$sql = "insert into ads set adsence_code = '".mysql_real_escape_string($banner)."' where domain = 1";</div>
<pre>

http://www.wallpaperama.com/forums/how-to-insert-html-code-into-mysql-database-t7421.html

Advertisements

Server Varaibles


<?php
$crlf=chr(13).chr(10);
$br='<br />'.$crlf;
$p='<br /><br />'.$crlf;
foreach ($_SERVER as $key => $datum)
{
echo $key.' : '.$datum.$br;
}
echo $p;
exit;
?>

Source: http://forums.digitalpoint.com/showthread.php?t=835

Further links

http://blog.zugschlus.de/archives/441-What-is-REQUEST_URI-supposed-to-be.html

http://davidwalsh.name/iis-php-server-request_uri