House Posted November 25, 2012 Share Posted November 25, 2012 Hey guys, I'm new to PHP and know only basic stuff, I've read some books, but there is only theory involved. I have a great idea to involve in my website, but don't really know how to do it. I saw something alike on another webpage: http://xtreme-jumps.eu/demos.php When you click on a map, it shows this map's history. (Previous record holders, current record holder, link for dowloading and so on..) Well, I want to make something like this, but don't know how to get started. If anyone gives me some tips, I would be thankful Regards, House. Quote Link to comment https://forums.phpfreaks.com/topic/271144-how-to-get-started-i-have-an-idea-but-dont-know-how-to-release-it/ Share on other sites More sharing options...
MDCode Posted December 4, 2012 Share Posted December 4, 2012 Use a database. Quote Link to comment https://forums.phpfreaks.com/topic/271144-how-to-get-started-i-have-an-idea-but-dont-know-how-to-release-it/#findComment-1397487 Share on other sites More sharing options...
Amplivyn Posted December 9, 2012 Share Posted December 9, 2012 (edited) Use a database. And,... Start out by drawing some basic website structure on paper so that you can refer to it anytime throughout the project. You may start with some general website sections such as a public area and a staff area. You might then choose to be more specific and add subsections such as an "Edit content" area and "Add users" area to the staff area. It's always good to have a general picture of whatever project you are working on. Depending on your skill, you should then start off with as much as you can comfortably handle without worrying about the size of the project. Being new to PHP, for my first PHP website, I found it easier for me to start off with basic functionality and structure before worrying about bigger things such as usability/security. For instance, you may start out by creating some simple layout like a header,body and a footer. You may then wish to store the header and footer in external files and include them in your pages using PHP, effectively creating a template. Next, you may want to add a database to create dynamic pages. I generally left styling to the very end because you never know when you might just decide to add some layout block that will have to squeeze in somehow. For instance, one method of linking pages is by storing them in a database. Say for instance you had a table called pages with fields "id", "page_name" and "content". You may then access those pages using PHP from your browser. Since you are able to send information with URLs, you can have a single file display many pages, basically, display different content that is retrieved from the database. In the website you mentioned, notice how all of those maps start with "../map_info.php?". Everything after the question mark is simply stored in $_GET for the open page. If you had "map=8b1_brickngrass", then somewhere in map_info.php there would be some script to retrieve the map with ID "8b1_brickngrass" and display it there with other information stored in the database (Mapper, Beaten, Date and so on). Books will only get you so far, experiment and try things out. Good luck! Cheers, Amp Edited December 9, 2012 by Amplivyn Quote Link to comment https://forums.phpfreaks.com/topic/271144-how-to-get-started-i-have-an-idea-but-dont-know-how-to-release-it/#findComment-1398438 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.