| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: May 2003
Posts: 74
![]() | php & mysql hi all, ive finally decided to go ahead and learn php with mysql. so here what i want to do: as i learn most things better by setting my self a project i want to design a mini site a bit like www.autotrader.co.uk i want to have the cars so thay can be searched and so forth but not with all the other stuff does anyone have advice, tips scripts or anything that might help me? i just want to do it with a few cars to start as i said this is just so i can learn how to do it. i also want to be able to search through liek they do on www.autotrader.co.uk if possible. your help is appreciated!! |
| |
| | #2 (permalink) |
| Senior Member Join Date: May 2003
Posts: 2,187
![]() ![]() ![]() | give each car an id then have the mysql stuff in a far called car.php then use this $sql = "SELECT * FROM `tablename` WHERE id = '$id'"; then car.php?id=3 will select the car with id 3 good if you wanna display info for a certain car |
| |
| | #5 (permalink) |
| NamePros Regular Join Date: Aug 2005
Posts: 727
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | is it interesting to learn php and mysql
__________________ :laugh:...::::Pakisp.net::::...-The Entertainment Pack Pakisp.net :wave: Free Web Directory |
| |
| | #7 (permalink) |
| Soon to be RICHdoggie! Join Date: Jan 2005 Location: UK
Posts: 2,408
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | php and mysql is interesting and useful. What you want will probably be to "index" the mysql database in which you are storing your car information. Then you can do a mysql "fulltext" search. Look this up as I have not used it for a while. That is how you can do the search. |
| |
| | #8 (permalink) |
| DNOA Member Join Date: May 2004
Posts: 5,040
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Download this - it will help get you started! http://www.vibewave.com/test/members Click the "download here" link. Cheers, -Matt |
| |