2
I wish you could help me to place a column (painted in yellow) as follows which is in the attached image.
I leave here also my code at the moment so I can give a help:
<?php
$database ="anomalias";
$server="127.0.0.1";
$connect= mysql_connect('localhost','root','');
$selecionar= mysql_select_db('anomalias');
if ($selecionar)
{
$SQL = "SELECT * FROM laboratorios";
$result = mysql_query($SQL);
echo"<br>";
echo "<table border='1'>";
echo "<td style='padding: 10px 20px 10px 20px'><h6>Salas</h6></td>";
while ($db_field = mysql_fetch_array($result) )
{
echo "<td style='padding: 10px 20px 20px 20px'> <a href='phpeditarsala.php?id=".$db_field['sala']."'>".$db_field['sala']."</a></td>";
}
echo "</table>";
}
?>
You want to put 8 columns in the table, but your query only returns 7 records, resulting in only 7 columns ?
– Duque
For example, whenever I add a field in the comic I like to see the inserted field and also a column below where there is a button to edit!
– user43697
How many columns the table has in the database ?
– Duque
Currently there is only one that displays the rooms, and I wanted that under it (line) there is another that displays a button to edit the data
– user43697
You want the button down, so okay.
– Duque
Yes I always want another button to appear if another room appears, then that button to take the id and edit the same
– user43697
Okay, I’ll post your solution.
– Duque
There, check if that’s what you want.
– Duque
The harm is that the way you put the data is shown in column and not in line and so if there is 1000 data in the comic the web page will have an infinite scroll
– user43697
So I referred to aesthetics, regarding the amount of results, to avoid scroll too large, you can page the results.
– Duque
I tried paging another job and I couldn’t... I’m still a javascript learner
– user43697
But thanks, I’ve already managed to find a way with your help.
– user43697
I can help you create the paging feature, you can email me. Since solved, give me the +1 and put as best solution, please thank you.
– Duque
That ugly, where are the Trs ?
– Ivan Ferrer