Jump to content

pulling info form mysql database


bob2006

Recommended Posts

<?php

//select the info from the DB
$sql = mysql_query("SELECT col1, col2 FROM tbl_name WHERE condition");

//fetch the results from the query
$row = mysql_fetch_assoc($sql);

//now display the info from the DB
echo $row['col1'];

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.