ob_start();
include("create.php");
ob_end_clean();
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "uploads";
$conn = new mysqli($servername, $username, $password, $dbname);
$sql = "SELECT * from submits (title, description, net)";
foreach ($conn->query($sql) as $row) {
print $row['title'] . "\t";
print $row['description'] . "\t";
print $row['net'] . "\n";
}
I am trying to get data from the submits table and get title, description and net and echo it out into the page. All the queries into the database are done from create.php. Why is me selecting from the database not printing ANYTHING into the page? (Yes there are things in the database the database is NOT empty.)
Here is what I think should work.
It uses fetch_assoc()
$conn = new mysqli($servername, $username, $password, $dbname);
$sql = "SELECT * from submits (title, description, net)";
$result = $conn->query($sql);
while ($row = $result->fetch_assoc()) {
print $row['title'] . "\t";
print $row['description'] . "\t";
print $row['net'] . "\n";
}
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
I am loading the contents of a URL into a string like this:
I have searched SO for a similar problem to mine but I can't find anything that would workI have tried a number of different methods with 0 luck
My custom SVG with a logo on appears like a regular red dot on Chrome and I have no idea why, but it should be rendering as a logoMozilla Firefox 57