opensubscriber
   Find in this group all groups
 
Unknown more information…

u : unicon-group@lists.sourceforge.net 24 July 2009 • 2:45PM -0400

[Unicon-group] Unicon interface to MySQL database
by Richard H. McCullough

REPLY TO AUTHOR
 
REPLY TO GROUP






Are they compatible?  If so, how do I do it?

I am using GoDaddy web hosting -- virtual dedicated Linux.
They supply MySQL 5 with InnoDB engine.
Their sample PHP interface is

<?php
//Connect To Database
$hostname='p50mysql145.secureserver.net';
$username='mkr0905703223506';
$password='your password';
$dbname='mkr0905703223506';
$usertable='your_tablename';
$yourfield = 'your_field';

mysql_connect($hostname,$username, $password) OR DIE ('Unable to connect to database! Please try ag
in later.');
mysql_select_db($dbname);

$query = 'SELECT * FROM $usertable';
$result = mysql_query($query);
if($result) {
    while($row = mysql_fetch_array($result)){
        $name = $row['$yourfield'];
        echo 'Name: '.$name;
    }
}
?>

Dick McCullough
http://mkrmke.org

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.