A
Anonymous
Guest
Hi!
I need to get all the data out from the database. Maybe I have to get the data into a variable and then I can do stuff with it? (I'm doing stuff with the data in C#)
<?php
$con = mysqli_connect('topsecret');
if (mysqli_connect_errno())
{
echo "connection failed";
exit();
}
$sql = "SELECT * FROM data;";
mysqli_query($con, $sql) or die("Failed to get data");
echo "OK";
?>
I need to get all the data out from the database. Maybe I have to get the data into a variable and then I can do stuff with it? (I'm doing stuff with the data in C#)
<?php
$con = mysqli_connect('topsecret');
if (mysqli_connect_errno())
{
echo "connection failed";
exit();
}
$sql = "SELECT * FROM data;";
mysqli_query($con, $sql) or die("Failed to get data");
echo "OK";
?>