Jump to content
php.lv forumi

php + html


djmartins

Recommended Posts

Man ir table news kur ieksa ir rows title

Piemers:

Saule|

Menes|

utt

 

un tagad to gribu izvadit ara tabulaa kas veidota ar html

 

<?include("config.php");

$result = mysql_query("SELECT * FROM news;", $connect);

while ($res = mysql_fetch_array($result)) {

?>

 

<div class="block-title" id="title"><?echo ("$res[2]"); }?> </div>

</div>

 

Joks ir tads ka vins visus title izvada viena tabulaa tacu es gribu lai katram ir sava ,kaa to panakt?

Link to comment
Share on other sites

×
×
  • Create New...