Narz keeping it real Joined Jun 1, 2002 Messages 31,514 Location Haverhill, UK Dec 26, 2002 #1 Who exactally does the "PHP" button do? Thanks! - Narz
Thunderfall Administrator Administrator Joined Oct 25, 2000 Messages 12,622 Dec 26, 2002 #3 It's mainly for posting codes. When you enclose codes with the PHP tag, the PHP syntax are automatically highlighted. For example: PHP: unset ($defpmsetting); $defpmsettings = $DB_site->query ("SELECT setting.varname, setting.value FROM setting"); while ($row = $DB_site->fetch_array ($defpmsettings)) { $defpmsetting[$row['varname']] = $row['value']; }
It's mainly for posting codes. When you enclose codes with the PHP tag, the PHP syntax are automatically highlighted. For example: PHP: unset ($defpmsetting); $defpmsettings = $DB_site->query ("SELECT setting.varname, setting.value FROM setting"); while ($row = $DB_site->fetch_array ($defpmsettings)) { $defpmsetting[$row['varname']] = $row['value']; }
Narz keeping it real Joined Jun 1, 2002 Messages 31,514 Location Haverhill, UK Dec 26, 2002 #4 Cool, thats what I figured, I just wanted to be sure. By the way, will the code run someone in your post?
Cool, thats what I figured, I just wanted to be sure. By the way, will the code run someone in your post?
B Black Fluffy Lion Qxria Joined Oct 13, 2001 Messages 977 Dec 26, 2002 #5 no, that wuld be a huge security risk. Someone could just run something like PHP: <?php mysql_query("DROP TABLE post") ?> and the would be no more posts
no, that wuld be a huge security risk. Someone could just run something like PHP: <?php mysql_query("DROP TABLE post") ?> and the would be no more posts