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>!

Implementing in the new version 4.0

Track the development of 4.0 from here

Implementing in the new version 4.0

Postby Valterci on Tue Apr 10, 2007 8:28 am

Please, I have a project in txtsql 2,2 and want to migrar for txtsql 4.0. Necessary to know if it had changes in the form to implement in this new version.
a) As access the tables;
b) As to write one query(na new version); At last, it would be good if version 4.0 had some example of new implementation.

Thank you
Valterci
 
Posts: 4
Joined: Tue Apr 10, 2007 8:20 am
Location: Brazil

Postby FarazAli on Tue Apr 10, 2007 9:47 pm

I'm trying as hard as I can to push for backwards compatibility between versions 2.2 final and 4.0 ... the files should essentially remain untouched, maybe a few small differences that a quick patch could possibly fix.

As an example of 4.0, there is going to be SQL support and anyone can use that. But you can also still use the same old select(), insert() etc. functions.

so
Code: Select all
$results = $sql->query('
SELECT
  `A.id`, `B.name`
FROM
  `db.foo` as `A`, `db.bar`
  as `B`
WHERE
  `A.id` = `B.id`);


You can still use the old functions, however, as well...

Code: Select all
$results = $sql->select(array('db' => 'foo', 'table' => 'bar', 'where' => array('id = $id')));
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

Postby Valterci on Wed Apr 11, 2007 10:58 am

How much the form of conexao to the bank, as I can make? Before I made thus:

$username = 'root';
$password = '';
define('TXTSQL_CORE_PATH', 'admin/');
include_once('admin/txtSQL.class.php');
$sql = new txtSQL('admin/bd');
$sql->connect($username, $password);
$sql->selectdb('xxx');

$query=array('select' => array('id', 'titulo', 'descricao'),
'db' => 'xxx,
'table' => 'yyyy',
'where' => array('id =~ %'.$arg.'%','or','titulo =~ %'.$arg.'%',
'or','descricao =~ %'.$arg.'%'));
Valterci
 
Posts: 4
Joined: Tue Apr 10, 2007 8:20 am
Location: Brazil

Postby FarazAli on Wed Apr 11, 2007 11:27 am

im not sure i quite understand the question -- the English is not really clear...
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

Postby Valterci on Wed Apr 11, 2007 11:58 am

it forgives me. My English, is not good. my question is: The form with that I access the bank is the same one of the previous version?
Valterci
 
Posts: 4
Joined: Tue Apr 10, 2007 8:20 am
Location: Brazil

Postby FarazAli on Wed Apr 11, 2007 12:01 pm

it should be nearly identical to the code you posted above
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

Postby Valterci on Wed Apr 11, 2007 12:26 pm

Already exists something as txtSQLAdmin for txtsql 4.0?
Valterci
 
Posts: 4
Joined: Tue Apr 10, 2007 8:20 am
Location: Brazil

Postby FarazAli on Wed Apr 11, 2007 1:25 pm

not yet, the txtSQLAdmin script should still be able to run with the new 4.0 version, but just not yet. Once it's completed, backwards compatibility shouldn't be a problem
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: Implementing in the new version 4.0

Postby zzw08 on Tue Jul 14, 2009 5:38 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 4.0 Development

Who is online

Users browsing this forum: No registered users and 0 guests

cron