fbpx

Example code for LAMP server (mf-web08s)

with No Comments

The following example script assuming the database “dbname” has a table “dbtable” with fields for storing uid, date, time, and system datetime.<?php $db_host=”localhost”; $db_user=”dbuser”; $db_pwd=”dbpassword”; $db_name=”dbname”; $db_table=”dbtable”; if (!mysql_connect($db_host,$db_user,$db_pwd)) {  die( “Unable to connect host”); } if (!mysql_select_db($db_name)) {  die( … Read More

1 3 4 5 6 7