I made an error following the tutorial. Could you please help me find out what is wrong and how to correct it?
蠢萌的嵩鼠
蠢萌的嵩鼠 2017-11-20 22:55:49
0
4
836


蠢萌的嵩鼠
蠢萌的嵩鼠

reply all(2)
洞天水月

Note the spaces in line 25

select * from study

电动小老虎

Code prompts you that the parameters provided by froeach are invalid. You can var_dump() to see if the data after your query is correct, and then use foreach....

  • reply Sir, can you be more specific? I don’t understand. . .
    蠢萌的嵩鼠 author 2017-11-21 10:37:04
  • reply After you complete query($sql), you will return an array, and then you can use foreach to traverse the data. First, you must first determine the returned array, right? var_dump prints out the data and takes a look.
    电动小老虎 author 2017-11-21 14:51:42
  • reply Oh oh oh, okay, I'll try
    蠢萌的嵩鼠 author 2017-11-21 21:36:33
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template