// Performing SQL query
$query = "SELECT * FROM Password_List WHERE Client_Name='$Client_Query'";
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
// Printing results in HTML
echo "<table align=center border=2>\n";
echo "\t<tr align=center>\n";
echo "\t\t<td><b><u>Client Name</td>";
echo "\t\t<td><b><u>App Name</td>";
echo "\t\t<td><b><u>App Version</td>";
echo "\t\t<td><b><u>User Name</td>";
echo "\t\t<td><b><u>Password</td>";
echo "\t\t<td><b><u>Tech</td>";
echo "\t\t<td><b><u>Name</td>";
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "\t<tr align=center>\n";
foreach ($line as $col_value1) {
echo "\t\t<td>$col_value1</td>\n";
}
echo "\t</tr>\n";
}
echo "</table>\n";
// Free resultset
mysql_free_result($result);
// Closing connection
mysql_close($link);
?>
I must have misunderstood what my code was passing back. I thought it was passing back a string of the entire record but you are saying it's actually passing back each field, seperately?
If that is the case, how do I break it up? Meaning, if I wanted to move the second variable to the next line, ie:in my table????
Thanks.