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!
just a simple example. i don't want to pass anything to the URL through a ?, so i was hoping to store all entries in a database. my main question is....how do i make a page that pulls variable names from a database?
well, now i got some of it working. i realized i didnt save it as a *.php file. so can i save it as a *.php file, and pass one argument (the record number) with a ?, then use the page to access all of the elements of that record:
yes, passing parameters this way is called GET-method.
in newer versions of php (see also: http://forums.devnetwork.net/viewtopic.php?t=511) all parameters passed via GET are stored in the array $_GET. So in your example $_GET['name'] contains the string ColinFagras.
To use it in a query e.g. for mysql you can do somthing like
....i know it makes a $story variable that I can use, just by being passed as an argument. now i want to look up the $story id in a MySQL database. the database will be simple containg story id, first name, last name, city, and gender. i want to make variables out of each of these elements to be used in the text of my HTML page.
i know how to actually use them in the text, i just can't figure out how to use the passed argument and turn the values of the fields in that entry into variables. thanks.