note 90810 deleted from function.mysql-query by danbrown
| From: | danbrown@php.net | Date: | Mon, 11 May 2009 13:48:48 +0000 |
| Subject: | note 90810 deleted from function.mysql-query by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154447@lists.php.net to get a copy of this message | ||
Note Submitter: phpfan at smoothwave dot co dot uk
----
Usage:
<?php
include("MySQL.php");
$Server = "mysql.server.net";
$Database = "database";
$Username = "username";
$Password = "password";
$SQL = new MySQL($Server, $Database, $Username, $Password);
$Status = $SQL->execSQL("select * from t_table", $Results);
if(!$Status) {
print("Error!<br/>");
}
else {
$Results->resultsDump();
}
?>
As well as "resultsDump()", you can use the other public methods of MyData class in the
following way:
<?php
$RowOnePersonsName = $Results->getField(0, "persons_name");
?>