search

Home  >  Q&A  >  body text

How to add a select statement to the for loop body?


Why can’t I type like this? Please give me some advice! !

$row5 is the result of the query above. array.



##for($j = 0 ; $j < count($row5) ; $j ){

$y = $dopage->GetPage("SELECT * FROM `#@__liuxiang` WHERE ypname="$row5['$j']['ypname']");

                                       

?>

##

奥立奥奥立奥2450 days ago1176

reply all(1)I'll reply

  • 胡鹏宇

    胡鹏宇2018-07-10 10:30:03

    Although I don’t know what you want to get? But $y must be an array anyway. For example: $y[]

    reply
    0
  • Cancelreply