I installed PHP, MySQL 5, and Light TPD on my Beaglebone Black Wireless
(running Debian image 2017-07-01). I tried creating a webpage that displays
a MySQL table, but noticed that the table wasn't even appearing. So in
order to isolate the problem, I created a simple PHP program that does
nothing but display some text and a table with only one row. I began adding
things from the larger program one at a time until I found what was causing
the tables to disappear. I discovered that the highlighted line is the
culprit:
<html>
<head>
<title>Table Test</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<BODY>
<p>
<?php
echo "Table Test<br>";
//////////////////////////////////////////////////////
// Connecting to the Database
//////////////////////////////////////////////////////
$con = mysqli_connect("localhost","root","Force1$", "AUTO");
//Print HTML table
echo "<TABLE width=40% cellpadding=5 cellspacing=0 border=1>";
echo "
<TR>
<TD><b>ID</TD>
<TD><b>LOCATION</TD>
<TD><b>SEQUENCE</TD>
<TD><b>TIME</TD>
<TD><b>UPDATE</TD>
<TD><b>DELETE</TD>
</TR>";
?>
</body>
</html>
This code displays the table just fine in an older Beaglebone (Debian image
2015-11-12). I find it hard to believe that simply declaring a variable
would cause something like this to happen. Please, any help on this matter
would be greatly appreciated. Thank you!
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/c6c865fa-f21d-4b48-9ec3-bf66cc50fbc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.