there is some error in it..plz help

[php]

tariff <?php include "index.php"; ?>

TARIFF & POLICIES

<?php include "connection.php"; $qrysel="select * from tariff"; $rs=mysql_query($qrysel); if(!$rs) { echo "In correct mysql select Query."; die($qrysel); } echo ""; echo ""; echo "ROOM TARIFF"; echo ""; echo "";
while($v=mysql_fetch_array($rs))
{
	echo "<tr>";
	echo "<td>".$v['type']."</td>";
	echo "<td>".$v[1]."</td>";
	echo "<td>".$v[2]."</td>";
	echo "<td>".$v[3]."</td>";
	echo "<td>".$v[4]."</td>";
	echo "<td>".$v[5]."</td>";
	echo "<td>".$v[6]."</td>";
	echo "</tr>";
}
echo "</table>";

?>


ROOM INR USD AVAILABLE TOTAL
TYPE SINGLE DOUBLE SINGLE DOUBLE ROOM ROOM
  • POLICIES:
    • Check in 12 hours.
    • Check out 12 hours.
    • Early arrival is subject to availability,For guaranted early check
      in,reservation needs to be made starlings form previous night.
    • Goverment taxes & levies extra as applicable
    • Inr Rs.700 (usd*20) for extra person/bed.

  • RESERVATION GURANTEE :
    • All booking must be guaranteed at time of reservation bye money
      order or travel agency.

  • RESERVATION CANCELLATION :
    • Reservation must be cancelled 24 hours prior to the
      planned arrivaltime.
    • One night room charge will be levied in case of non arrival.
Devloped By :- [/php]

First
Turn on error reporting by putting this at the top of each php file that you work with or some kind of configuration file (config.php utilities.inc.php):
[php]/* Turn on error reporting */
ini_set(‘display_errors’, 1);
ini_set(‘display_startup_errors’, 1);
error_reporting(-1);[/php]
Second
Try to put most of your php above your html instead of sprinkling throughout the the HTML, having one php line amongst the HTML when it could be included in the php code to me is kind of silly…well that’s my opinion. Most PHP programmers try to put most of the php above the HTML, but there are times when you do have to intermingle among the HTML. It becomes pretty obvious after awhile when the need to do that.
Third
Try to stop using mysql and use either mysqli or PDO (My Recommendation) for mysql is obsolete, it probably won’t work with PHP 7.0:

Sponsor our Newsletter | Privacy Policy | Terms of Service