-
Notifications
You must be signed in to change notification settings - Fork 0
/
pending2.php
33 lines (28 loc) · 1.14 KB
/
pending2.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
session_start();
$pend = $_SESSION['pend_id'];
$db=mysql_connect('localhost','root','');
mysql_select_db('kavd',$db);
$sql="select *from cms_pending where pend_id = '$pend'";
$result = mysql_query($sql,$db);
$row= mysql_fetch_array($result);
#foreach($rows as $row) {
#echo $row["title"];
#}
#print_r($row[0]);
?>
<html>
<body background="bg-body.jpg">
<form method="post" action="articles1.php">
<p style="font-size:30px; font-family:comic Sans MS; color:blue;">TITLE:-<?php echo $row['title'];?></p>
<input type="hidden" name="title" value="<?php echo $row['title'] ;?>"/>
<p style="font-size:30px; font-family:comic Sans MS; color:blue;">TEXT:-</p>
<p> <textarea name="textarea" rows="25" cols="100" style="font-family:comic Sans MS;color:#404040;font-size:20px; white-space:pre-wrap" name="textarea"> <?php echo $row['article_text'];?> </textarea></p>
<p><input type="submit" name="submit" value="publish article"></p>
</form>
<form method="get" action="delete1.php">
<input type="hidden" name="pending" value="<?php echo $pend ;?>"/>
<input type="submit" name="Delete Artical" value="Delete">
</form>
</body>
</html>