Welcome
Welcome to <strong>txtSQL</strong>.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!

Syntax of nonsql dbClass. Userfriendly?

General chit chatter can go in here

Syntax of nonsql dbClass. Userfriendly?

Postby phpmaster on Sat Jun 09, 2007 12:03 am

Code: Select all
<?php error_reporting(E_ALL);

require_once('basictable.class.php');

$dbase='data1'; $table='members';
$tb1=new bdbtable($dbase, $table);

$tb1->tbload(); // loads table from DRIVE into RAM memory PHP variables

$cname='age'; $cvalue='25';
$tb1->tbfdone($cname,$cvalue); // fd-one = find one value, useful for 'unique' column check

$res=$tb1->trone; // TableRowOne - Get result array, The complete row of first found item

// display result row
echo '<b>Find One: '.$cname.'=>'.$cvalue."</b><br>\n";
foreach( $res AS $x )
    echo $x." ";
echo "\n";

// Optional, show table info, variables, both ASCII & HEX output - for debug/check
$tb1->tbshow();

?>


in short:
Code: Select all
<?php

require_once('basictable.class.php');

$tb1=new bdbtable('data1', 'members');
$tb1->tbload();
$tb1->tbfdone('age', '25');

$res=$tb1->trone;
echo '<b>Find One: age=>25</b>'."<br>\n";
foreach( $res AS $x ) echo $x." ";

exit();

?>
... i write php code ... and i do it well
phpmaster
 
Posts: 17
Joined: Mon Jun 04, 2007 9:21 pm

Postby FarazAli on Sat Jun 09, 2007 12:57 am

It's a bit obscure to me; Does that example above simply return one row that matches a criteria?
Latest txtSQL Stable Release: txtSQL 2.2 Final

Track 4.0 Development

Image
FarazAli
Site Admin
 
Posts: 73
Joined: Sun Mar 25, 2007 1:08 pm
Location: New Jersey, NJ

Re: Syntax of nonsql dbClass. Userfriendly?

Postby zzw08 on Tue Jul 14, 2009 5:41 am

http://www.fashion-products.com [url=http://www.fashion-products.com ]is a sell air force one,
air jordan,bape,kicks,nike,Jerseys,Shoes,Clothing,Bag,Glasses,Caps&Hats,sneakers,sunglasses,
watches,Jewelry,Electronics,NBA,NFL,NHL,MLB[/url]
shoes
clothing
Handbags Wallets
Hat
Sunglasses
Belts
Watches
Jewelry
zzw08
 
Posts: 53
Joined: Tue Jul 14, 2009 5:15 am


Return to Chit Chat

Who is online

Users browsing this forum: No registered users and 0 guests

cron