PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm kind of newbie but I'm trying to make a golfsite where I can show pictures of each hole from a certain golfclub based on clubID. I can get the club by using clubinfo.php?clubid=24 in the browser adress, but how do I create links that refreshes the page with the same clubid but then also with a holeid??? To give you an idea what I mean here is some code I'm working with!
so how do I get "hole=2" after the above line and how do I make that happen in my "link1, link2 and link3" links?
I don't see those links in your code.
and can I put if and ifelse statements within if statements, and if so, how.
Yes you can, it is called "nesting" and is frequently used in programming. Reading the manual on control structures might help but surprisingly there isn't an example of nesting so I'm going to do one for you:
I suggest you look into SQL injection prevention on your query string (variable passed via the url). I suggest you set $clubid to mysqli_real_escape_string($_GET['clubid']);