Jump to content

Lazro

New Members
  • Posts

    1
  • Joined

  • Last visited

Lazro's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi Rocky48 I created a database in your structure and tried the code. Apparently the $get_Event_res is returned as an object not an array; to solve this, you need to use the fetch_object() function. change this code: while ($Event_today = mysqli_fetch_array($get_Event_res)) { $Rel_Date = $Event_today['Event_Date']; $Rel_Event = $Event_today['Religion']; $Event_text = ($Event_today['Event_Description']); to this: while($Event_today = $get_Event_res->fetch_object()){ $Rel_Date = $Event_today->Event_Date; $Rel_Event = $Event_today->Religion; $Event_text = ($Event_today->Event_Description); Remember, its an object; not an array.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.