html - how to have a vertical header and textarea -


i have code...server side , cant seem make load wherein header vertical, have tried code below,

<?php require 'include/db_open.php';  $ea_name = $_post['ea_name'];  $sql="select * ea_error ea_name = '" . $ea_name . "'";  $mydata = mysql_query($sql) or die(mysql_error());  //to count if there results $numrow = mysql_num_rows($mydata) ;  if($numrow == 0) {     echo "no results found."; } else { echo '<fieldset><legend><strong>information</strong></legend> <table width="auto" border="0" align="center"> <tr><th scope="row">error</th></tr> <tr><th scope="row">resolution</th></tr> <tr><th scope="row">contact/s</th></tr>';  while($info = mysql_fetch_array($mydata))  { echo "<form action='retrieve.php' method='post'>"; echo  "<td align='center'>" . "<textarea readonly=readonly name=error cols=75 rows=8> " . $info['error'] . "</textarea></td>"; echo  "<td align='center'>" . "<textarea readonly=readonly name=resolution cols=75 rows=8> " . $info['resolution'] . "</textarea></td>";  echo  "<td align='center'>" . "<textarea readonly=readonly name=contacts cols=75 rows=8> " . $info['contacts'] . "</textarea></td>";  echo "</form>"; echo "</table>"; } } echo "</fieldset>";   include 'include/db_close.php'; ?> 

whats showing code below

error

resolution

contact/s

then have 3 text areas here on single row

what want happen is

error - textarea

resolution - textarea

contact/s - textarea

pls help...i tried using css style no avail

table, td, th {   border: 1px solid red;    }  thead {   float: left;    } 

ive tried use code below,

echo "<form action='retrieve.php' method='post'>"; echo "<tr>"; echo  "<td align='center'>" . "<textarea readonly=readonly name=error cols=75 rows=8> " . $info['error'] . "</textarea></td>"; echo "</tr>"; echo "<tr>"; echo  "<td align='center'>" . "<textarea readonly=readonly name=resolution cols=75 rows=8> " . $info['resolution'] . "</textarea></td>";  echo "</tr>"; echo "<tr>"; echo  "<td align='center'>" . "<textarea readonly=readonly name=contacts cols=75 rows=8> " . $info['contacts'] . "</textarea></td>";  echo "</tr>"; 

but getting is

error

resolution

contact/s

textarea

textarea

textarea

if understood question correctly, answer (although totally avoid using tables layout design , not tabular data):

$myres = "<form action='retrieve.php' method='post'>         <fieldset>             <legend><strong>information</strong></legend>             <table width='auto' border='0' align='center'>                 <tr>                     <th scope='row'>error</th>                     <td align='center'><textarea readonly=readonly name=error cols=75 rows=8>" . $info['error'] . "</textarea></td>                 </tr>                 <tr>                    <th scope='row'>resolution</th>                    <td align='center'><textarea readonly=readonly name=resolution cols=75 rows=8>" . $info['resolution'] . "</textarea></td>                 </tr>                 <tr>                     <th scope='row'>contact/s</th>                     <td align='center'><textarea readonly=readonly name=contacts cols=75 rows=8>" . $info['contacts'] . "</textarea></td>                 </tr>             </table>         </fieldset>     </form>";  echo $myres; 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -