php script in html

Sand

New Member
i am trying to display mysql data in html table format is table name:: App\[code\] appid | app | version | date | apk file | 1 sample 1.0.0 2012-10-12 sample.apk\[/code\]//mysql query is \[code\] <?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])); ?>\[/code\]//html code is given below\[code\] <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 ?>\[/code\]but do not getting mysql data in html file any one help me for correct solution
 
Back
Top