Tfe

Ongi etorri tfe-ren webgunera...

Old stuff/old_sites/newepik/include/article.php

(Deskargatu)
<div class="article">
<h2>Articles</h2>
<?

if ($axx)
{
    $query = "SELECT MAX(id) FROM article";
    $result= mysql_query($query) or die(mysql_error());
    while($row  = mysql_fetch_array($result))
    {
	$article_id = $row[0];
    }
#    echo "ARTICLE ID: $article_id";
    $query = "UPDATE membres SET article_id='$article_id' WHERE pseudo='$nick'";
    mysql_query($query) or die(mysql_error());
        
}    

$page = "article";
include("view.php");

?>
</div>