Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using the $adb object
#7
$result contains a record set, in other words, a collection of many rows, in this case many invoice rows.

Try this:


PHP Code:
<?php
include_once('vtlib/Vtiger/Module.php');
global 
$current_user,$adb;

 
   $query "SELECT `invoiceid`, `subject`, 'subtotal' FROM `vtiger_invoice`";
 
   $result $adb->pquery($query,array());
echo 
"<pre>";
while (
$row=$adb->fetch_array($result)) {
 
print_r($row);
}
echo 
"</pre>"   
?>
Joe
TSolucio
Reply


Messages In This Thread
Using the $adb object - Guido1982 - 11-10-2015, 05:33 PM
RE: Using the $adb object - Guido1982 - 11-10-2015, 08:11 PM
RE: Using the $adb object - joebordes - 11-10-2015, 10:12 PM
RE: Using the $adb object - Guido1982 - 11-11-2015, 10:47 AM
RE: Using the $adb object - joebordes - 11-11-2015, 02:50 PM
RE: Using the $adb object - Guido1982 - 11-11-2015, 03:46 PM
RE: Using the $adb object - joebordes - 11-11-2015, 10:09 PM
RE: Using the $adb object - Guido1982 - 11-11-2015, 10:15 PM
RE: Using the $adb object - joebordes - 11-11-2015, 11:00 PM
RE: Using the $adb object - Guido1982 - 11-11-2015, 11:49 PM
RE: Using the $adb object - joebordes - 11-12-2015, 07:26 AM
RE: Using the $adb object - Guido1982 - 11-12-2015, 07:14 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)