// PHPMyLinks version 0.1.4, Copyright (C) 2000, Rémi Henriot // http://rhenriot.free.fr/phpmylinks/ - rhenriot@mail.com // // This is free software ; you can redistribute it and/or modify it // under the terms of the PHPMyLinks License Version 1.0 // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY ; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // For more details, see the license.txt file that you should have // received with this program. require 'parameters.inc.php'; require 'connexion.inc.php'; require 'links.inc.php'; require 'filing.inc.php'; // header of the page include $header; // addition or alteration of an URL ? -> depends on $url_id if(isset($url_id)) { $title = "Modification d'une URL"; $req = "select url_str, url_titre, url_descr ". "from url ". "where url_id = $url_id"; $res = mysql_query($req); $row = mysql_fetch_row($res); if(! isset($url_str) || strlen($url_str)==0) $url_str = $row[0]; if(! isset($url_title) || strlen($url_title)==0) $url_title = $row[1]; if(! isset($url_descr) || strlen($url_descr)==0) $url_descr = $row[2]; } else { $title = "Ajout d'une URL"; } ?>