ja kan lidt php, jeg har prøvet at lave nogle forskellige databaser men enten bestod de af flere hundrede felter.. eller de var helt uoverskuelige..
http://smart-card.dk/dev/2/bordplan.php der kan du se tegningen.
http://smart-card.dk/dev/2/tilmeld.phpfilen book.php
<?php
include "inc_top.php";
if (isset($_POST['addbook'])) {
$sql = mysql_query("select * from lg_clan where id=$id");
$row = mysql_fetch_assoc($sql);
$oldpw = $row['pass'];
$team = $row['clan'];
$email = $row['email'];
}
$sql1 = 'UPDATE lg_brugere SET
plads="'.$brugerplads.'",
book="'.$plads.'"
WHERE id="'.$brugerid.'"';
$sql2 = 'UPDATE lg_plads SET
"who'.$plads.'"="'.$brugernavn.'",
"'.$plads.'"="'.$color.'",
"id'.$plads.'"="'.$brugerid.'"
where idx=1';
mysql_query($sql1) or die("1 " . mysql_error());;
mysql_query($sql2) or die("2 " . mysql_error());;
echo '<img src=images/bulletarrow.gif width=11 height=5>Du er nu tilmeldt '.$plads.'<br><br>';
include "inc_bund.php";
die();
?>