I am trying to display mysql data in html
table format
table name :: App
appid | app | version | date | apk file | 1 sample 1.0.0 2012-10-12 sample.apk
// mysql query
<?php $query="SELECT * FROM `App` where appid=1"; $res=mysql_query($query); $row=mysql_fetch_row($res); $app=$row[1]; $vesion=$row[2]; $date1=date('M j,Y',strtotime($row[3])); ?>
// html code below
<html> <body> <div style="text-align:left"><p>App:<b><? $app.' '.$vesion ?></b></p></div> <div style="text-align:left"><p>Date Uploaded: <b><? $date1 ?></b></p></div> <ol class="instructions"> <li>Click <a href="http://localhost/downloads/$row[4]">Here</a> todownload. <br></li> </ol> </body> </html> <?php ?>
but not getting mysql data in html file
will someone help me in the right decision
source share