Salut,
Je ne m'en sort pas avec le w3c, il me calle sans cesse des erreurs, si vous pouvez m'aider :
Je ne m'en sort pas avec le w3c, il me calle sans cesse des erreurs, si vous pouvez m'aider :
Code:
function get_tip_top() {
global $settings, $prefix, $root_path, $skin_path;
$cres = mysql_query("SELECT * FROM {$prefix}category ORDER by cat_id") or report();
if(mysql_num_rows($cres) == 0) $data = "Aucune catégorie";
else {
$data = "<table cellpadding='0' cellspacing='0' align='left'>";
$counter = 0;
$td = 0;
//while($crow = mysql_fetch_assoc($cres)) {
for($i=0;$i<15;$i++) {//while($crow = mysql_fetch_assoc($cres)) {
$crow = mysql_fetch_assoc($cres);
$cat_url = "$root_path/".plaintext($crow['cat_art'])."-$crow[cat_id]-1.html";
$gdata = "";
if($td == 3) {
$data .= "</tr><tr><td><div class=\"index-art\">";
$td = 0;
}
else
$data .= "<td><div class=\"index-art\">";
$res = mysql_query("SELECT * FROM {$prefix}art gm, {$prefix}category ca WHERE ca.cat_id=gm.gam_cat_id AND gm.gam_cat_id=$crow[cat_id] GROUP BY gm.gam_id ORDER BY gm.gam_id DESC LIMIT 3") or report();
if(mysql_num_rows($res) == 0) $clixint = "Clixint Technologies 2008"; //$gdata .= "";
else {
$num = 1;
while($row = mysql_fetch_assoc($res)) {
$gam_url = "$root_path/art/".plaintext($row['ar_title'])."-$row[ar_id].html";
if(strstr($row['ar_thumb_url'], "http"))
$ar_thumb = $row['ar_thumb_url'];
else
$ar_thumb = "$root_path/gam_previews/$row[ar_thumb_url]";
if(strlen($row["ar_desc"])>68) {
$row["ar_desc"] = str_cut($row["ar_desc"],68);
$row["ar_desc"] = $row["ar_desc"].'... ';
}
if($num == 1)
$gdata .= "<div class=\"index-cat\"><h2><a href=\"$cat_url\" title=\"$row[cat_name]\">$row[cat_name]</a></h2></div>
<div class=\"myart\">
<div class=\"arttitle\"><h3><a href=\"$ar_url\" title=\"$row[ar_title]\">$row[ar_title]</a></h3></div>
<div class=\"cadre-art\">
<a href=\"$ar_url\" title=\"$row[ar_title]\">
<img title=\"$row[ar_title]\" src=\"$ar_thumb\" alt=\"\" />
</a>
<div class=\"artdesc\">$row[ar_desc]</div>
</div>
</div>";
else $gdata .= "<div class=\"myart2\">
<div class=\"artTitle2\"><a href=\"$ar_url\" title=\"$row[ar_title]\">$row[ar_title]</a></div>
</div>";
$num++;
}
$data .= $gdata."</td>";
}
$td++;
}
$data .= "</div></td></tr></table>";
}
return $data;
}