SQLx and arrays
Hi, I've got SQLx to connect to db succesfully. Then I got confused about reading stuff to arrays, so I'm asking what would be a way to read SQL data to an array?
In php I used mysql_fetch_row($sql); so is there a corresponding function in SQLx? |
Re: SQLx and arrays
The SQLx approach is different, you have to read it row in separate with SQL_ReadResult. If you really need to read it to arrays, you can use the functions from cellarray.inc to achieve it.
Ask if you need an example. |
Re: SQLx and arrays
I'd love an example, no idea how am I gonna do this without one. :/
|
Re: SQLx and arrays
What exactly do you want to do? Just read data from an simple query? Do you need to store it for later use?
|
Re: SQLx and arrays
I want to read 1 row from the table.
SELECT * FROM table and get all the values into the array. |
Re: SQLx and arrays
Quote:
|
Re: SQLx and arrays
Immediate use.
|
Re: SQLx and arrays
Quote:
|
Re: SQLx and arrays
Quote:
|
Re: SQLx and arrays
a function like in php is not accessable.
you have to save the results manually like: Code:
|
All times are GMT -4. The time now is 04:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.