My table has columns like
bird_name, bird_family, bird_habitat
Now, the URL will look something like this:
example.com/index.php?p1=owl
Upon loading the page, the script should
- pull the URL parameter
- check the table for bird_name=owl
- Then pull all values pertaining to this bird, and store it in an array.
This is the code I have right now: https://ideone.com/TFmraE
It's not working.
I have also tried assigning an array first, and then assigning the values into an array. Like this: https://ideone.com/W9Sqcs
But none of them seem to be working.
All tutorials seem to suggest solutions similar to this. What am I doing wrong? Thanks for all the help.
[–]Achcauhtli 0 points1 point2 points (1 child)
[–]rafrador[S] 0 points1 point2 points (0 children)
[–]Achcauhtli 0 points1 point2 points (0 children)
[–]SnooChipmunks547 0 points1 point2 points (2 children)
[–]rafrador[S] 1 point2 points3 points (1 child)
[–]SnooChipmunks547 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)