Dear diary,
if ($submis == "1") {
if ($email == "") { print "
I couldn't add the last link because its author didn't put any email address... It's very important you know!";}
else {
if ($URL == "" or $URL == "http://") {
print "
Some people are really strange! They forget to put the URL of their site! Really...";}
else {
if ($TitleURL == "") {
print "
Today someone forgot to put a title on his link, so I didn't add it. Too bad...";}
else {
If ($TypeLien != "1")
$TypeLien = 0;
MYSQL_connect("localhost","narudiary","keitarooo") or die(" Aïe! Impossible de se connecter à la base. Si le problème persiste, il faut contacter Axel (code d'erreur 405).");
@mysql_select_db("narudiary");
$myquery = "INSERT INTO ffalinks VALUES ('$URL', '$TitleURL', '$BannerURL', '$email', '$comment', '$date', '$TypeLien')";
$queryresult = MYSQL_QUERY($myquery);
print "
I just added a link right now! I hope I'll get a lot more soon!";
}
}
}
}
else {print"
Here's a list of links to other places that people added to this diary, I hope visitors will add their favourite links or their sites here! ";} ?>
Naru Narusegawa
MYSQL_connect("localhost","narudiary","keitarooo");
@mysql_select_db("narudiary");
$myquery = "SELECT * FROM ffalinks ORDER BY date DESC";
$queryresult = MYSQL_QUERY($myquery);
$numrows = MYSQL_NUM_ROWS($queryresult);
$i4=0;
print "";
while ($i4 < $numrows){
$url = mysql_result($queryresult,$i4,"url");
$title = mysql_result($queryresult,$i4,"title");
$bannerURL = mysql_result($queryresult,$i4,"bannerURL");
$comment = mysql_result($queryresult, $i4,"comment");
$typelien = mysql_result($queryresult, $i4,"typelien");
print "- $title - $comment
";
$i4++;
}
?>
Add your link?
|