Php tablo yardım

Armina
05-12-2011, 16:49   |  #1  
OP Taze Üye
Teşekkür Sayısı: 0
1 mesaj
Kayıt Tarihi:Kayıt: Ara 2011

Merhaba ,
bir sorunum varda yardımcı olabilirmisiniz.


Bunun gibi tablo yapmak istiyorum mysqlden veri ceken , herşeyim hazır ancak bu sekilde css ile ayarlayıp tabloyu yapamadım.

Mysql veri cekme kodum:

function listele() { $sorgu = mysql_query("SELECT * FROM table_olum order by id desc limit 25");
while ($row = mysql_fetch_object($sorgu)) { $id = $row->id; $olen = $row->olen; $olduren = $row->olduren; $tarih = $row->zaman; $yer = $row->yer;
$returnveri .= "

çektiklerım

$olen $olduren $yer $zaman

css linki: http://31.210.79.34/style/main.css
Tablo ismi:
<table class='oyunculist'>
Buda tüm kaynak kodum


<?php error_reporting(0);
$mysql_adres = 'localhost'; //
$mysql_kullanici = 'xxxxxx; //
$mysql_sifre = 'xxxxxx'; //
$mysql_db = 'xxxxxx'; //
header("Content-Type: text/html; charset=windows-1254");
$mysql_baglanti = mysql_connect($mysql_adres, $mysql_kullanici, $mysql_sifre);
if (!$mysql_baglanti){ echo "SQL Bağlantısı sağlanamadı, lütfen site yöneticisiyle iletişime geçin.";  } else { mysql_select_db($mysql_db,$mysql_baglanti);} echo "
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
<title>Son 25 Olum</title>
<style type=\"text/css\">

<!--
.style10 {font-size: 18px; font-weight: bold; font-style: italic; color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif;}

.style12 {font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; font-size: 11px; color: #d8d8d8; }
-->

body {
background-image: url();
background-repeat: repeat;
background-attachment: scroll;
background-position: top-left;
}

<table class='oyunculist'>
</style>
<body>
",listele(),"
</td>
</tr>
</table>
</body>
</html>
";

function listele() { $sorgu = mysql_query("SELECT * FROM table_olum order by id desc limit 25");
while ($row = mysql_fetch_object($sorgu)) { $id = $row->id; $olen = $row->olen; $olduren = $row->olduren; $tarih = $row->zaman; $yer = $row->yer;
$returnveri .= "

<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"5\">
<font color =white>[$tarih]</font color =white> <font color =#e4d32d> $olen , $olduren <font color =white>tarafından</font color =white> $yer<font color =white> civarlarında öldürülmüştür</font color =white>
</tr>
";} return $returnveri; } ?>