ik weet nie hoe ik een edit optie in deze script kan krijgen
<?
include("beveiliging.php");
include("config.php");
mysql_connect($host,$dbuser,$dbpass);
mysql_select_db($db);
if($_GET['tabel'])
{
$sql="SELECT * FROM `".$_GET['tabel']."`";
$res=mysql_query($sql);
echo "<table bgcolor=#dddddd border=0>";
echo "<tr><td><b>Mysql:</b><BR> \$sql='$sql'; </tr></td>";
echo "</table><BR>";
$velden=mysql_num_fields($res);
echo "<table border=1>";
echo "<tr>";
while($veld = mysql_fetch_field($res))
{ echo "<td><B>".$veld->name."</td></B>";
} echo "<td>Opties</td></tr>";
while($data=mysql_fetch_array($res))
{ echo "<tr>";
for($i=0; $i<$velden; $i++)
{ $title=htmlentities($data[$i]);
$title=str_replace("\"",""",$title);
echo "<td title=\"".$title."\">".substr(htmlentities($data[$i]),0,100)."</td>"; }
echo "<td><button title='Delete ".$data[0]." '>Del</button></td>";
echo "</tr>"; }
echo "</table>";
echo "<br>";
if(mysql_num_rows($res)!="1")
{ echo "Er zijn ".mysql_num_rows($res)." resultaten in ".$_GET['tabel'].""; }
else { echo "Er is ".mysql_num_rows($res)." resultaat in ".$_GET['tabel'].""; }
echo "<BR>";
} else { $tab = mysql_list_tables($db);
while ($row = mysql_fetch_row($tab)) {
echo "<a href='?page=sql&tabel=$row[0]'>$row[0]</a><BR>"; }}
?>
kan iemand mij miss ermee helpen?
259 views