Here is a simple mysql snippet in php. Straight from the PHP manual.
http://www.php.net

$link = mysql_connect('HOST', 'UID', 'PASS') or die ("Could not connect");
mysql_select_db('DATABASE_NAME') or die ("Could not select database");

$query = "SELECT * FROM table";
$result = mysql_query($query) or die("Query failed");

while ($line = mysql_fetch_array($result)) 
{
        var_dump($line)
}

mysql_free_result($result);
mysql_close($link);



> anybody have a little example on how do that???

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to