<a></a> tag not working in php

mirain

New Member
READ CODE FIRST BEFORE CLICKINGMYSQL PART IS WORKINGI am trying get data from a database and pasting it on a webpage in table form and in each table data(td) there are names which have other details in database which I also have to show on other webpage if that name is clicked. I got stuck when a tag is not working.NOT WORKINg means that name in (a) tag is like normal text not link. I am using 2 file one is .php and other is .htmlhere are the LOC I am using and related to this.PHP file1\[code\]<?php...$query="select name from table1 order by name";$rs=mysql_query($query);$table = '<table>';while ($row = mysql_fetch_array($rs)){ $cname = $row["name"]; $table .= '<tr> <td><a href="http://stackoverflow.com/questions/14627037/file3.php">'.$cname.'</a></td> /*<a></a> not working*/ </tr>';}$table .= '</table>';include_once 'file2.html';?>\[/code\]HTML file2\[code\]<html><body><form>..</form> /*passes user input to PHP file1*/<p><?php echo $table;?></p></body></html>\[/code\]I am using XAMPP 1.7.7 and PHP 5.3.8
 
Back
Top