0

I am trying to make custom website for news, just for learning, and i was wondering, how can i print data from database?

So there is news name, news text, news author and news date, my question is how can i print that to index page and when somebody click on some of that news in link looks like ?id=1.

EDITED:

$squery = "SELECT * FROM vesti";
$rsquery = mysqli_query($db,$squery);

while($svevesti = mysqli_fetch_asssoc($rsquery){

    // action here
}

Thanks for Your time.

0 Answers0