如何在数据库的html上连续调用数据

时间:2017-02-28 17:17:49

标签: php html css mysql

我从数据库调用数据,但没有连续。 我怎么能这样做。

码;

<?php
$test=mysql_query("SELECT * FROM siteler");
$sayi=mysql_num_rows($test);
$deneme=mysql_fetch_row($test);


while ($deneme=mysql_fetch_assoc($test)) {
 extract($deneme);
 echo "<div class='container'>
 <div class='row'>
  <div class='col-md-3 col-sm-6 col-xs-12 back-colour'>
  <p>$site_name </p>
  <p>$site_info </p>
  <p>$site_ref </p> 
  <p>$bet_turu </p>
</div>
</div>
</div>";}
?>

那就是发生了什么

http://imgur.com/a/Hg2W6

这就是我想要的东西

http://imgur.com/CpE8RB8

1 个答案:

答案 0 :(得分:0)

试试这个,

export const useThisSpecificAction = (value1,value2) => ({
  type: USE_THIS_SPECIFIC_ACTION,
  payload:ActionCoordinator.useThisSpecificAction(value1, value2)
// i am calling the web service in the payload
});

希望这能解决问题

相关问题