PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Fernando Alls  >  PHP Editor  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: interface
Class: PHP Editor
Store in MySQL HTML content edited on the browser
Author: By
Last change:
Date: 9 years ago
Size: 570 bytes
 

Contents

Class file image Download
<html>
<head>
    <title>Editor PHP by Fernando</title>
</head>
<body>

<?php
require_once('core.class.php');
$editor = new Editor();
$editor->listAll();
?>

 <table border="1">
 <?php
 
while($list = mysql_fetch_object($editor->Command))
  {
 
?>
<tr>
    <td colspan="3">File name:</td>
  </tr>
  <tr>
    <td>
    <?php
     
echo substr($list->content, 0, 20) . "...";
      echo
"<td><a href=editor.php?edit={$list->id} >Edit</a></td>";
      echo
"<td><a href=editor.php?delete={$list->id} >Delete</a></td>";
   
?>
</td>
  </tr>
  <?php
  
}
  
?>

 </table>

</body>
</html>

For more information send a message to info at phpclasses dot org.