PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
This is the page. http://www.wewillbook.com/world-hotel-d ... search.php. If you see the 5th hotel (Belmonte Guesthouse), you will find "Paarl" under the name of hotel. This is the area fetched from database. I would like to have Street, Area, City, Country and Pin number instead of just Area. Any suggestion?
Again, we need to see what the contents of $row. Also, put braces around your if-statements. I know if's will still work without them but it can sometimes be miss-leading.
Also, on a side note from your code, you're making a textbook error on your search results. You're relying on HTML to resize your images client-size. This both looks ugly due to pixelation and increases loadtime and bandwidth. Use something like Imagemagick or GD-lib to resize the images serverside.