SQL Query

<?php

$dbc = mysqli_connect('localhost','the_database_user','the_database_password','the_database_name') or die('Error connecting to Database');

$query = "SELECT *
FROM table_name
WHERE id = 1
LIMIT 0 , 30";

$result = mysqli_query($dbc, $query);

$row = mysqli_fetch_array($result);

echo $row[0];

//Close the Connection
mysqli_close($dbc);

?>

0 Comments

You must be logged in to post a comment.