nielsj.net: links-edit

links-edit

je ip adress staat niet als lokaal bekend, en daarom kan je niet editen. wil je dat wel, waarschuw niels even."; exit(); } if ($Action == "delcat"){ $query="DELETE FROM links WHERE catId=$cat;"; if ($debug) echo "SQL: $query
\n"; $result = mysql_query($query) or die(mysql_error()); $query="DELETE FROM linksCat WHERE id=$cat;"; if ($debug) echo "SQL: $query
\n"; $result = mysql_query($query) or die(mysql_error()); Header ("Location: $mainpage"); exit(0) ; } if ($Action == "delete"){ $query="DELETE FROM $tableName WHERE id=$id;"; $result = mysql_query($query) or die(mysql_error()); Header ("Location: $mainpage"); exit(0); } if ($Action == "update"){ $query="UPDATE $tableName SET url='$url', omschrijving='$omschrijving' WHERE id=$id;"; $result = mysql_query($query) or die(mysql_error()); Header ("Location: $mainpage"); exit(0); } if ($Action == "add"){ $query="insert into $tableName (catId, url, omschrijving, hits) VALUES (\"$cat\",\"$url\",\"$omschrijving\",\"0\");"; $result = mysql_query($query) or die(mysql_error()); Header ("Location: $mainpage"); exit (0); } $query="SELECT * from $tableName WHERE catId = $cat;"; if ($debug) echo "SQL: $query
\n"; $result = mysql_query($query) or die(mysql_error()); #include "./layout/header.php"; #echo ""; echo ""; while ($row = mysql_fetch_array($result)) { echo "\n"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "\n"; } echo "
delete
"; ?>
url text
Let wel op: voor externe links moet je http:// laten staan.



Valid XHTML 1.1! Valid CSS!
Niels Jansen -- lastupdate: March 11 2014 01:18