pak4eva Posted March 8, 2007 Share Posted March 8, 2007 Hi guys Im new to this forum. Currently I am studying at uni and am in my final year. As part of my project I need to design a website using php and sql. My project is based on the periodic table (chemistry). I've done both website and sql side of my project but am really struggling with php since i have never done php before. I currently have one simple script that connects to the database and displays the information for one element only (basically its been hard coded), for example if i click on the element H then it will return the information for H from the database. However, my main headach is I need to use the same script for all elements instead of writing individually i.e. elements such as H, He, O etc... should have the same code but depending on what i click on it should return that information only.... I've been told that to do this i may need to use functions but since i have very little php knowledge i dont have a clue where to begin and time is running out for my as i have 3-4 weeks left for the deadline. Can someone please advise me what to do? Your help will be much appreciated.... Thanks in advance... Link to comment https://forums.phpfreaks.com/topic/41775-php-help-final-year-project/ Share on other sites More sharing options...
trq Posted March 8, 2007 Share Posted March 8, 2007 Can someone please advise me what to do? Learn PHP. Link to comment https://forums.phpfreaks.com/topic/41775-php-help-final-year-project/#findComment-202556 Share on other sites More sharing options...
neo777ph Posted March 8, 2007 Share Posted March 8, 2007 i started studying php on this site.. www.w3schools.com they teach the basics.. from variables to conditions.. Link to comment https://forums.phpfreaks.com/topic/41775-php-help-final-year-project/#findComment-202564 Share on other sites More sharing options...
r-it Posted March 8, 2007 Share Posted March 8, 2007 why dont you have a table with an id and a description, then when you call them you just call them by the id Link to comment https://forums.phpfreaks.com/topic/41775-php-help-final-year-project/#findComment-202565 Share on other sites More sharing options...
tauchai83 Posted March 8, 2007 Share Posted March 8, 2007 my advise is to download a php manual. It is the best and faster way of learning php. Link to comment https://forums.phpfreaks.com/topic/41775-php-help-final-year-project/#findComment-202580 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.