i am insert in PHP code in database.
For Example:
user name : root
database name: script
table insert row
CREATE TABLE showpage
(
id
int(10) NOT NULL auto_increment,
post
text NOT NULL,
PRIMARY KEY (id
)
) TYPE=MyISAM AUTO_INCREMENT=0 ;
make table ok
i insert PHPscript in table of “post”
i insert this PHP script
<?php
require('up1.php');
require('config.php');
$id = $_GET["fid"];
?>
<?php
require('table.php');
?>
<?php
$sql = "Select * from showpage where fid=$id";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result)){
?>
<?PHP echo $row["post"] ?>
<?php
}
?>
|
|
<?php
require('user/tabledown.php');
?>
save in table above code.
i create a php page who name is checkcode.php
i simple insert code only show record in id “1” of table “post”.
when i am open this page. Page work PHP command. thinks.