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... Quote Link to comment 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. Quote Link to comment 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.. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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.