// connection keys
$hostname = 'localhost'; // '107.180.35.114'; //
$dbname = 'Civilians_News_UN';
$db_username = 'Civilians_News_UN_Db_User';
$db_password = 'u-NtE#e}c@m-';
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// connection string 1 - Raw Memory / lingual stimuli inputs/index
$conn = new PDO("mysql:host=$hostname;dbname=$dbname", $db_username, $db_password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$connection= mysqli_connect("$hostname","$db_username","$db_password","$dbname");
$sql77777777= "SELECT * FROM `comment_section` ORDER BY date DESC LIMIT 10;";
///SELECT * FROM yourTableName ORDER BY id DESC LIMIT 10 )Var1 ORDER BY id ASC;
$results2111111= mysqli_query($connection,$sql77777777);
if (mysqli_num_rows($results2111111)>0)
{
while($row_un2121212121= mysqli_fetch_array($results2111111))
echo "UN: $row_un2121212121[1] $row_un2121212121[2] $row_un2121212121[3]
";
}
?>
|