SQL column.
hello evreyone,
this code is open the table "psher" and 9 Columns. PHP Code:
PHP Code:
someone has an idea how i can do this in my way( array ) , How to make it work? thanks for helping |
Re: SQL column.
You have to list each column out as you have in the first code snippet, you cannot do what you are thinking.
|
Re: SQL column.
OK, maybe there is another way to do it ? cuz i need to open like 30 column , and its really bad to write them 1 by one 1.
|
Re: SQL column.
Use a for loop to add the columns to a formatted string and then pass that formatted string to SQL_PrepareQuery.
|
Re: SQL column.
somting like this : ?
PHP Code:
|
Re: SQL column.
no.
you should to format inside loop only tables one by one. %s smallint(1), %s smallint(1), ... PHP Code:
and also: Queries = SQL_PrepareQuery(SqlConnection,"%s",szText); Queries = SQL_PrepareQuery(SqlConnection, szText); |
Re: SQL column.
Has nobody checked the link I gave...
|
Re: SQL column.
Quote:
Quote:
or reset them. |
Re: SQL column.
Try this
PHP Code:
|
Re: SQL column.
not working, there is eror in the logs :
in this line : PHP Code:
Quote:
|
| All times are GMT -4. The time now is 13:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.