PHP Code : Display Record From MySQL Database
Labels:
PHP Programming
<?php
require_once('connect.php');
mysql_select_db($database_connect, $connect);
$query_record = "SELECT * FROM tablename WHERE id = '1'";
$record = mysql_query($query_record, $connect) or die(mysql_error());
$row_record = mysql_fetch_assoc($record);
$totalRows_record = mysql_num_rows($record);
?>
//Display Data
<?php echo $row_record['fieldname']; ?>
0 comments:
Catat Ulasan