kocak37 Posted August 29, 2012 Share Posted August 29, 2012 hata: [b]Parse error[/b]: parse error in [b]C:\xampp\htdocs\blok2012\views\sidebar.php[/b] on line [b]25[/b] <div id="sidebar"> <h1>KATEGORİLER</h1> <?php sayfa : mysql_select_db($database); $rskategori= mysql_query("SELECT * FROM kategori"); $row_kategori = mysql_fetch_object($rskategori); $total_row_rskategori= mysql_num_rows($rskategori); //echo"kayıt sayısı:".$total_row_rskategori; if($total_row_rskategori>0){ else{echo"kategori bulunamadı";} echo"<ul>"; do{ echo'<li>'.$row_kategori->kategori. 'li'; }while($row_rskategori = mysql_fetch_object($rskategori)); echo"<ul/>"; ?> </div> Quote Link to comment Share on other sites More sharing options...
carysma1 Posted August 29, 2012 Share Posted August 29, 2012 Php kodlarını bunlarla değiştirirmisin [CODE] mysql_select_db($database); $rskategori= mysql_query("SELECT * FROM kategori"); $row_kategori = mysql_fetch_object($rskategori); $total_row_rskategori= mysql_num_rows($rskategori); //echo"kayıt sayısı:".$total_row_rskategori; if($total_row_rskategori>0){ } else{echo"kategori bulunamadı";} echo"<ul>"; do{ echo'<li>'.$row_kategori->kategori. '</li>'; }while($row_rskategori = mysql_fetch_object($rskategori)); echo"<ul/>"; ?> </div> [/CODE] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.