![]() |
|
| Domain Name Sales | Domain Software | Calculate UK Domain Drop Dates | Domain Registration | NameDrive | Domain Parking | Subscribe to our Domains For Sale newsletter |
| | ||||||
| Home | Register | Rules | Membership Upgrade | Domains For Sale | Domain Name Escrow | Mark Forums Read | Domain Classified | Chat Room |
| Website Design Discuss web design |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
![]() | Dynamic pages php
Hi guys, Just trying to finish off the last bit of work on my sites just to add abit more to the site before they get sent elsewhere, Basiclly hotel listings get pulled down off the mysql database table and displays a list of hotels and prices in that area, as seen at londonhoteloffers.org.uk/search.php at the moment tho the view details link is a link that points to that hotel on laterooms, but I would like to be able to be able to click that link and then it creates a dynamic page by pull the rest of the data row from the db of the hotel infomation on my site, I have looked around in row to do this and I kind of understand how its done I just cant find what im looking for on google, I thought I did but wasnt quite right, can anyone tell me what its called Im looking for or point me to a site or tutorial of what im trying to do, Thank you for you time Ryan |
| |
| | #2 (permalink) |
![]() |
Change the link to: yourdynamicpage.php?ID=12345 Where 12345 is the id number of the hotel from the database. Then in yourdynamicpage.php use: $hotelID = $_GET['ID'] You then use the $hotelID variable within the SQL query to bring back the data you need to build the page. Grant |
| |
| | #3 (permalink) |
![]() |
if you already query the db to get the summary data from the row, you simply need to extend the query now to select the other columns you'd like to display and format your html accordingly to display the returned data.
__________________ iBranded sites... Football Betting Tips | Cheap Flights | High Interest Bank Account | Instant Loans | London Olympics | Desi | Online MBA Courses | MBA |
| |
| | #4 (permalink) |
![]() |
thanks for the reply, can you point me somewhere to where i can read up about this, or tell me what its called im looking for so i can search it myself, pref somewhere that has examples thanks |
| |
| | #5 (permalink) |
![]() |
also where in the link you put 12345 instead would it be ['hotelid'] or ['ID'] thanks |
| |
| | #7 (permalink) |
![]() |
If your using GET, for ANYTHING cleanse the data. For a number use is_numeric to verify someone isn't trying to inject anything.
__________________ Browse: |
| |
| | #8 (permalink) |
![]() |
i would rather not get little bits of info like this now i sort of know what im doing as it makes it harder to guess! that why im asking to point me somewhere that has a tutorial on this or info of what im after, or even just tell me what its called im looking for Thanks |
| |
| | #10 (permalink) |
![]() |
You want to do something like this with the ID as sugested http://www.scottklarr.com/topic/91/p...-url-with-php/ All the time your spending on this mate you could be rewriting the laterooms content in wordpress I know cron was a pain with your host but im sure one of the online solutions would have worked with less effort than this is going to be for you to get setup
__________________ Laterooms Wordpress Solution | |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Domain Name Community | Replies | Last Post |
| Dynamic pages | chippyb | New Domainers | 5 | 31-08-2011 02:30:11 PM |
| Yellow Pages buys 411.ca, ClearSky. - Montreal Gazette | RSS | Domain Name News | 0 | 22-02-2010 04:59:11 PM |