[Asterisk-Users] PHPAGI
Mark Ackroyd
mark.ackroyd at cencion.com
Thu Jan 19 07:27:42 MST 2006
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???
More information about the asterisk-users
mailing list