ich würde gerne eine Newsbox auf eine News Kategorie begrenzen!
Sollte ja ansich möglich sein.
Da in der Datenbank news_kat gespeichert wird, aber ich hab ein Problem das in die Box einzufügen.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | <?php # Copyright by Manuel # Support www.ilch.de defined ( 'main' ) or die ( 'no direct access' ); $abf = "SELECT a.news_title as title, a.news_id as id, DATE_FORMAT(a.news_time, '%d.%m.%Y' ) as datum, a.user_id as uid, b.name as name FROM prefix_news as a LEFT JOIN prefix_user as b ON a.user_id = b.id WHERE a.news_recht >= { $_SESSION [ 'authright' ]} ORDER BY a.news_time DESC LIMIT 6"; $erg = db_query( $abf ); echo '<table width="100%" border="0" cellspacing="0" cellpadding="0">' ; while ( $row = db_fetch_object( $erg )) { echo ' <tr> <td rowspan= "4" align= "center" valign= "middle" ><img style= "padding-right:5px;" src= "include/designs/gc-temp/images/lastbox/switchbox/newsicon.png" width= "30" height= "31" /></td> <td colspan= "3" align= "left" ><a class = "text_rot" href= "index.php?news-'.$row->id.'" > '.((strlen($row->title)<45) ? $row->title : substr($row->title,0,42).' ... ').' </a></td> </tr> <tr> <td height= "1" colspan= "2" bgcolor= "#000000" ></td> </tr> <tr> <td height= "1" colspan= "2" bgcolor= "#666666" ></td> </tr> <tr> <td align= "left" class = "creater" >Autor: <a class = "viewed_schatten" > '.$row->name.' </a></td> <td align= "right" class = "creater" >geschrieben am: <span class = "forum-news_datum " > '.$row->datum.' </span></td> </tr> <tr> <td height= "5" colspan= "2" ></td> </tr> '; } echo '</table>' ; ?> |
Ich hoffe mir kann einer helfen

LG
verwendete ilch Version: 1.1 P
betroffene Homepage: pintura-arts.de