Still being new to php, I was trying to make a SQL Query that would put information into a table.
Using PHP, here is how you complete a simple call to the SQL database and get in return a query, which you put into a table.
Heres what I came up with.
-
<table border=1>
-
<?php
-
-
-
-
-
-
$summat =
mysql_query("SELECT cllaccid, cllcustomid, cllstatus, cllname
-
FROM tblcall_accid
-
WHERE cllstatus= 'active'
-
GROUP BY cllaccid, cllcustomid, cllstatus, cllname
-
");
-
-
-
-
$myid = $row['cllaccid'];
-
echo '<tr><td>'.
$myid.
'</td>';
-
echo '<td>'.
$row['cllcustomid'].
'</td>';
-
echo '<td>'.
$row['cllstatus'].
'</td>';
-
echo '<td>'.
$row['cllname'].
'</td>';
-
echo '<td><a href="group.php?myid='.
$myid.
'">Select</a></td></tr>';
-
}
-
?>
-
</table>