Lo que quiero es que recoja los datos de la categoria wallpapers y de Categories
asi? ("SELECT * FROM `Wallpapers`Categorires`WHERE `approved` = '0' ORDER BY `ID` DESC LIMIT 0,9"); pero no funciona o esque asi no se debe hacer
Código PHP:
$result = mysql_query("SELECT * FROM `Wallpapers` WHERE `approved` = '0' ORDER BY `ID` DESC LIMIT 0,9");
$x = 0;
while ($row = mysql_fetch_assoc($result)) {
$x += 1;
$Recent_Wallpapers .= "\n".'<div class="Box Left"'.$string.'>'."\n\t";
$Recent_Wallpapers .= '<div style="font-size: 1em; margin-bottom: 5px;"><a href="'.$image_path.strtolower(str_replace(" ", "-", $row['name'])).'/'.strtolower(str_replace(" ", "-", $row['Title'])).'/">'.$row['Title']."</a></div>";
$Recent_Wallpapers .= '<div class="img-shadow"><a href="'.$image_path.'imagen/'.strtolower(str_replace(" ", "-", $row['Title'])).'/"><img src="'.$image_path.'images/wallpapers/'.$row['Thumbnail'].'" alt="'.$row['Title'].'" /></a></div>';
$Recent_Wallpapers .= '</div>';
if (!is_int($x/3)){
$Recent_Wallpapers .= '<div class="Spacer"> </div>';
}
}