Welcome to the "Web Projects" forums. Before you post, make sure you've selected the correct category based on the size of your project (in US dollars), or whether it is a partnership or "looking for work" request instead. Observe the guidelines for this section:
To all thread starters, check your "pm" box for responses, as that's how bidders will be communicating with you mainly using. You can turn on new pm notification by going to "User CP"-> "Edit Options"-> "Receive Email Notification of New Private Messages".
To respondents, avoid replying to a thread with a short generic response like "pm sent" as much as possible. It is pointless and clutters up the screen.
To respondents, don't reply to a work request with a summary of your resume. If you're not willing to spend the time to at least read the request and respond specifically to the request, then don't reply. The Web Projects forum isn't a place to get your resume/ portfolio posted on as many threads as possible, it's for the direct, human interaction between coder and client. Members who blanket the forums with their resume replies will be treated as spammers and banned.
To all thread starters, please update your thread's prefix to "resolved", when you've found a coder for your project or partnership (or wish to terminate the request). This is so coders don't waste time bidding on an invalid project. To do this, click on the "Edit" button under the first post of the thread, then the "Go Advanced" button. You have 14 days to update your thread's title.
all these question marks will be pictures of people (>500), i guess arranged in photoshop and sliced (that's what i did in this example). then, when i click any picture of a person, it has to pop up with a page showing a picture, the persons name, and some other info. (if you click any of the top left question marks you will see what i need).
so now my question is how to do this using databases (or anything more appropriate for the task)... because doing it all by hand by creating a new html popup and inputting the data by hand and then linking them all together would be tedious. does anyone have any good ideas on what code to use to make this work?
btw, if i posted this in the wrong forum, then tell me.
Of course this is all just the basics of what you will need. If you don't know php or mysql then good luck. Looks like you will be on a steep learning curve for a while.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
There are two questions that need to be answered before we can help you accomplish this task. They are not necessarily simple, but they are very important ones.
Which Server Side Language (PHP, ASP, .Net, JSP, Ruby, Ruby on Rails) do you plan on using?
What platform are you hosting this on? Linux or Windows (Apache or IIS)?
These questions, above all else in the beginning, is something you really need to consider. Each language has its pros and cons, and each can connect with and works well with MySQL. Each web server again has its pros and cons, and we can discuss those as well.
Again, welcome, and let us know what you have decided.
__________________
Quote:
To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
Please, if you found my post helpful, pay it forward. Go and help someone else today.
my hosting has linux and apache. as to the language, i'm not sure what i want to use - i guess you would recommend PHP for what i need to do, no? or maybe something better...
lots of thanks
i would really appreciate if anyone could help me anymore.
haha, a mountain out of a mole hill... nice, yeah i don't know a lot about php and mysql
btw, can i create the tables using MS Access and then upload it as mysql table?
i guess what i would need is have each of these pics to have a filename (such as pic1, pic2 etc) and then upon clicking, i would need it to open a template, contact a database, retrieve the name/other personal data/ info and put it into the template. am i thinking in the right direction? does anyone have any example code for the thing i need to do?
now when you click the very top left question mark it opens a box and has a name, class of, and quote things.
i put this php code into my document:
mysql_connect("localhost", "*********", "*******") or die(mysql_error());
mysql_select_db("******") or die(mysql_error());
$result = mysql_query("SELECT * FROM Table1")
or die(mysql_error());
and this is how the table i made looks in phpmyadmin:
is this the right way to make a table? now my question is, how do i write php code to make it select for example the data from stdid 2, and not stdid1 (like it does always in the example code i put up)
so lets say i went it the idea that each time a user clicked an image, it would go to studentinfo.php?id=###. But now my question is, when i replace the ###, how do i write the code in php so that it it opens up studentinfo.php, and pulls the data from the correct stdid spot, and puts relevant name, class of, and quote texts?
i hope you understand what i mean
thanks for any help!
Last edited by rafal1000; 09-22-2007 at 05:27 PM..
From what you showed us, your table structure looks OK, but as I cannot see the entire thing, I cannot comment on the entire table. As to your stdquote information, I would be really careful on putting student 'quotes' like your first record online. Very, very dangerous ground.
Now, to answer your second question -- how do I pull a specific record, you would use a WHERE statement in your query.
PHP Code:
$result = mysql_query("SELECT * FROM Table1 WHERE id = '$REQUEST_[id]'", $db) or die(mysql_error());
Just remember to put in code that:
a) checks to see if you are looking for a specific ID. If not, then run the full table.
b) checks to make sure that you are looking for a numeric ID, so that SQL injection doesn't happen.
HTH!
__________________
Quote:
To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
Please, if you found my post helpful, pay it forward. Go and help someone else today.