Search found 2 matches

by Thanaton
Mon Sep 07, 2009 11:00 am
Forum: PHP - Code
Topic: mysql_query
Replies: 4
Views: 109

Re: mysql_query

And, no offence, there are some other things 'wrong' in your script: 1. NEVER use 'die' or 'exit', except when you really want to stop executing the whole script (for example after a header('Location: ...')). When not using 'die' or 'exit' you can use 'if ... else' statements to execute some errorco...
by Thanaton
Mon Sep 07, 2009 10:55 am
Forum: PHP - Code
Topic: Arch design for many similar pages
Replies: 1
Views: 76

Re: Arch design for many similar pages

It sound like you are searching for the following: With the global $_GET variable, you can read values from the URL. So, for example, if the url is 'http://www.example.nl/index.php?item_id=55', then $_GET['item_id'] has the value 55. Then you can get all the info you want from a (normalized!) databa...