Note that there are some explanatory texts on larger screens.

plurals
  1. POMysql / Comments look / Vertically
    primarykey
    data
    text
    <p>I'v got a question. I have a mailform that also put the entered info in to db. I figuerd out how to print the db data to a table like this: ( <a href="http://jobler.se/latest.php" rel="nofollow">http://jobler.se/latest.php</a> ) this table shows the 6 newest entrys from db. </p> <p>But i want the table to look like this: <a href="http://test3.fcab.se/blogtest/blogtest.php" rel="nofollow">http://test3.fcab.se/blogtest/blogtest.php</a> / Comment style.</p> <p>Is it possible to show the db table vertically?</p> <h3>Code added from link:</h3> <pre><code>$query="SELECT * FROM jobadd ORDER BY Timestamp DESC LIMIT 6"; $result=mysql_query($query); $num=mysql_numrows($result); mysql_close(); ?&gt; &lt;table border="0" cellspacing=1" cellpadding="5" width="1230" higt="680px" table-cell; align="left"&gt; &lt;TH&gt;Uppdragstyp&lt;/TH&gt; &lt;TH&gt;Var&lt;/TH&gt; &lt;TH&gt;Postnr&lt;/TH&gt; &lt;TH&gt;Åt vem&lt;/TH&gt; &lt;TH&gt;När&lt;/TH&gt; &lt;TH&gt;ID Kod&lt;/TH&gt; &lt;TH&gt;Beskrivning&lt;/TH&gt;&lt;/TR&gt; &lt;col style="width: 140px" /&gt; &lt;col span="5" style="width: 130px" /&gt; &lt;col style="width: 350px" /&gt; &lt;?php $i=0; while ($i &lt; $num){ $f1=mysql_result($result,$i,"Vad"); $f2=mysql_result($result,$i,"Var"); $f3=mysql_result($result,$i,"Postnr"); $f4=mysql_result($result,$i,"Vem"); $f5=mysql_result($result,$i,"När"); $f6=mysql_result($result,$i,"Idkod"); $f7=mysql_result($result,$i,"Beskrivning"); ?&gt; &lt;tr&gt; &lt;td&gt;&lt;font face="Arial, Helvetica, sans-serif"&gt;&lt;?php echo $f1; ?&gt;&lt;/font&gt;&lt;/td&gt; &lt;td&gt;&lt;font face="Arial, Helvetica, sans-serif"&gt;&lt;?php echo $f2; ?&gt;&lt;/font&gt;&lt;/td&gt; &lt;td&gt;&lt;font face="Arial, Helvetica, sans-serif"&gt;&lt;?php echo $f3; ?&gt;&lt;/font&gt;&lt;/td&gt; &lt;td&gt;&lt;font face="Arial, Helvetica, sans-serif"&gt;&lt;?php echo $f4; ?&gt;&lt;/font&gt;&lt;/td&gt; &lt;td&gt;&lt;font face="Arial, Helvetica, sans-serif"&gt;&lt;?php echo $f5; ?&gt;&lt;/font&gt;&lt;/td&gt; &lt;td&gt;&lt;font face="Arial, Helvetica, sans-serif"&gt;&lt;?php echo $f6; ?&gt;&lt;/font&gt;&lt;/td&gt; &lt;td&gt;&lt;font face="Arial, Helvetica, sans-serif"&gt;&lt;?php echo $f7; ?&gt;&lt;/font&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php $i++; } ?&gt; &lt;/body&gt; &lt;/html&gt; &lt;/div&gt; </code></pre>
    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