-4

i am trying to display my content types and their info in a table format. First thing i want to do is make sure i am connected to the database. It seems i cant connect to the database. Please assist.

Thanks in advance

the query is not working

0

You've passed your query result into a variable named $results, then in the next line, checked a non-existent variable $result (no 's'). So your if() condition will never be entered.

| improve this answer | |
  • Hi Jaypan. I noticed, and fixed the error. Thank you for the assistance. – kagiso jenamo Dec 1 '19 at 0:03
  • Please make this as the accepted answer then – Jaypan Dec 1 '19 at 0:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.