Note that there are some explanatory texts on larger screens.

plurals
  1. POHyperlinks from rows in Mysql Table
    primarykey
    data
    text
    <p>The thing is that I have made application form which saves in db. And I want on other page to display just some rows of the mysql table in php table where the first column is hyperlink to the single application as it is in the form. My question is how it can automatically make hyperlinks and pages for each form?</p> <p>This is my code for now</p> <pre><code>mysql_connect("host", "user", "password") or die(mysql_error()); mysql_select_db("dbname") or die(mysql_error()); $data = mysql_query("SELECT * FROM applications ") or die(mysql_error()); echo ' &lt;table width="760" border=1&gt; &lt;tr&gt; &lt;th&gt;Заявление&lt;br&gt;От дата:&lt;/th&gt; &lt;th&gt;От/До&lt;/th&gt; &lt;th&gt;Статус&lt;/th&gt; &lt;/tr&gt;'; while($info = mysql_fetch_array( $data )) { echo ' &lt;tr&gt; &lt;td&gt;&lt;a href="applications.php?id=' . $row['id'] . '"&gt;'.$info['today'] .'&lt;/a&gt;&lt;/td&gt; &lt;td&gt;От '.$info['data1data'] .'.'.$info['data1mesec'] .'.'.$info['data1god'] .' до '.$info['data2data'] .'.'.$info['data2mesec'] .'.'.$info['data2god'] .' &lt;/td&gt; &lt;td&gt;'; if($info['status'] == 1) { echo '&lt;img src="Images/approved.jpg" /&gt;'; } else { echo '&lt;img src="Images/declined.jpg" /&gt;'; } echo ' &lt;/td&gt; &lt;/tr&gt; '; } echo '&lt;/table&gt;'; </code></pre> <p>The result I am trying to get is a table with 3 columns and rows for every application and from the first column of the application I get redirected to a single webpage for that application form and this link to be auto made by code something like "applications.php?id=[application id]"</p>
    singulars
    1. This table or related slice is empty.
    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