je ip adress staat niet als lokaal bekend, en daarom kan je niet editen. wil je dat wel, waarschuw niels even."; exit(); } //conect to database: include "$linksHome/includes/database.php"; //vars $tableName = "linksCat"; $name = $_GET[name]; $Action = $_GET[Action]; if ($Action == "add"){ $query="insert into $tableName (name,public) VALUES (\"$name\",\"0\");"; if ($debug) echo "QUERY 1: $query \n"; $result = mysql_query($query) or die(mysql_error()); $query="select id from $tableName where name=\"$name\";"; if ($debug) echo "QUERY 2: $query \n"; $result = mysql_query($query) or die(mysql_error()); $idArray = mysql_fetch_array($result); $id = $idArray[id]; $query="INSERT INTO links (catId,url,omschrijving,hits) VALUES (\"$id\",\"update-me\",\"edit this links\",\"0\");"; if ($debug) echo "QUERY 3: $query \n"; $result = mysql_query($query) or die(mysql_error()); Header ("Location: $linksUrl"); #echo "bla"; } ?> Links pagina
Categorie naam