Skip to content

Commit

Permalink
two tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Plummer committed May 11, 2011
1 parent ef3cd87 commit 0949f04
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/jquery_two_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
// Turn this on when using custom queries (fetchData). Note that "table" above is still necessary for
// update/insert to work.

// $options["database"]["noAutoQuery"] = true;
$options["database"]["noAutoQuery"] = true;



Expand Down Expand Up @@ -308,13 +308,21 @@
$o2["database"]["name"] = DATABASE_NAME;
$o2["database"]["username"] = DATABASE_USER;
$o2["database"]["password"] = DATABASE_PASS;
$o2["database"]["table"] = "labs_tablegear";
$o2["database"]["table"] = "tablegear";
$o2["database"]["utf8"] = true;



$query = "select SQL_CALC_FOUND_ROWS * from tablegear where description like 'a%'";
$table->fetchData($query);


$o2["database"]["noAutoQuery"] = true;
$t2 = new TableGear($o2);

$q2 = "select SQL_CALC_FOUND_ROWS * from tablegear where description like 'b%'";
$t2->fetchData($q2);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Expand Down

0 comments on commit 0949f04

Please sign in to comment.