html language formator
easy way for displaying html code
easy way for displaying html code
html language formator
function insert_code( $language, $str) { $geshi = new GeSHi($str, $language); echo $geshi->;parse_code(); }
php print database table
example
example
php print database table
$sqlLink = mysql_connect(...); mysql_select_db('...', $sqlLink); $result = mysql_query("SELECT Summary , Language , comment , code FROM table_notes"); while ($row = mysql_fetch_array($result, MYSQL_NUM)) { printf("row %s %s \n", $row[0], $row[2]); } mysql_free_result($result); mysql_close($sqlLink);
Security
Secure you html code from sql injection and Cross-site scripting !
Secure you html code from sql injection and Cross-site scripting !
Security
$var = mysql_real_escape_string($_GET['var']); $var = htmlspecialchars($_POST['var']);