php - Object not found! The requested URL was not found on this server -


i trying create page displays records of mysql table namely fares in tabular form . it's showing following message in browser

object not found!

the requested url not found on server. link on referring page seems wrong or outdated. please inform author of page error. if think server error, please contact webmaster.
error 404
localhost
apache/2.4.17 (win32) openssl/1.0.2d php/5.5.30

and here code:

<?php include("dbcon.php"); if(isset($_post['view'])) {     $vquery = mysql_query("select * fares order sno asc");     echo "<table border='1'>";     while($row = mysql_fetch_array($vquery)){         echo "<tr>";         echo "<td>".$row['sno']."</td>";         echo "<td>".$row['destination']."</td>";         echo "<td>".$row['distance']."</td>";         echo "<td>".$row['express']."</td>";         echo "<td>".$row['luxury']."</td>";         echo "<td>".$row['volvo_ac']."</td>";         echo "<td>".$row['volvo_nac']."</td>";     }     echo "</table>"; } ?> 

cannot comment posting answer

check url you're typing.

localhost/viewfares.php 

should go in url, error occurs when ppl forget .php


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -