Note that there are some explanatory texts on larger screens.

plurals
  1. POanchor tag is not working in php and html is rendered from other file
    primarykey
    data
    text
    <p>I am trying get data from a database and pasting it on a webpage in table form and in each table data 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 anchor tag is not working.</p> <p>NOT WORKING means that name in anchor tag is like normal text not link, though text turns blue with underline but its not acquiring its linking property. </p> <p><img src="https://i.stack.imgur.com/WCzh1.jpg" alt=""></p> <p>Table in which I am getting data from database is working <strong>plus</strong> I am also trying to give anchor tag to table data which are simple names which would link to another file.</p> <p>I am using 2 file one is .php and other is .html of <strong>same name</strong>.</p> <p>Here are some of the LOC I am using and related to this. I have omitted other 3 columns. </p> <p><strong>file.php</strong></p> <pre><code>&lt;?php ... $query="select name from table1 order by name"; $rs=mysql_query($query); $table = '&lt;table&gt;'; while ($row = mysql_fetch_array($rs)) { $cname = $row["name"]; $table .= '&lt;tr&gt; &lt;td&gt;&lt;a href="file3.php"&gt;'.$cname.'&lt;/a&gt;&lt;/td&gt; /*&lt;a&gt;&lt;/a&gt; not working*/ &lt;/tr&gt;'; } $table .= '&lt;/table&gt;'; include_once 'file.html'; ?&gt; </code></pre> <p><strong>file.html</strong></p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;form&gt;..&lt;/form&gt; /*passes user input to PHP file1*/ &lt;p&gt;&lt;?php echo $table;?&gt;&lt;/p&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Html is rendered from html file.</p> <p><strong>file3.php</strong> is the page which I am trying to link through names.</p> <p>I am using XAMPP 1.7.7 and PHP 5.3.8</p> <p>Any useful suggestion?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload