Jump to content

Recommended Posts

All Ids follow 1st Id, ok, so in a previous post i had a problem where i couldnt show the hotels from a hotelType, and the hoteltype was either Golf, Hotel or villa, I fixed that problem with this code on the hotel display page

[code]<?php
$type=@$_GET['hotelType'];
mysql_select_db($database_conTotal, $conTotal);
$query_rsHotels = "SELECT * FROM tabHotel WHERE hotelType ='$type'";
$rsHotels = mysql_query($query_rsHotels, $conTotal) or die(mysql_error());
$row_rsHotels = mysql_fetch_assoc($rsHotels);
$totalRows_rsHotels = mysql_num_rows($rsHotels);[/code]

but now the problem is that it seems to put all of the hotel types into the hotel, golf, and villa pages , so if its the hotel page, it will also pick up the the golf and villa hotelTypes

any suggestions as to why?
Link to comment
https://forums.phpfreaks.com/topic/25147-picking-up-all-ids/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.