check how many commas the variable containing the query has between [i]select[/i


Posted on 16th Feb 2014 07:03 pm by admin

Hi...

iv made an sql table that contains id number - name of sql query and an sql query.
The problem is that the table contains very different querys.

On the first page you choose a query from a drop down menu.
When this is done i check if the query contains date as a parametre. if yes a date picker is desplayed.
When a date is picked the report runs when submited.

i want the results of the query to be displayed in a html table and need help to figure out how many rows the sql query output needs.
For example
select firstname, lastname from users
needs two rows and
select firstname, lastname, birthdate from users
needs three rows.

my solution is maybe to check how many commas the variable containing the query has between select and from
any one know how this can be done in php or maybe have a simpler way of solving this?

No comments posted yet

Your Answer:

Login to answer
329 Like 14 Dislike
Previous forums Next forums
Other forums

New Balance 1400 Crew classiques gris chaussures hommes [a775] - €129.27 : Professionnelles nouvelles chaussures de la balance des magasins, nbalancerunning.top
[b][url=http://www.nbalancerunning.top/fr/]acheter à bas prix des chaussures neuves de l'équil

Email "$"
Hello!!

Any PHP guy with a bit of a knowledge in Flash ?

When I send a JPEG from flash

Wierd echo error?
Hi, i got the most wierd php error ever and i don't know why..
Code: echo "<t

Descuento Mont Blanc Pluma Contenedores y sets Reino Unido Venta Online Store
[b][url=http://es.montblanconline.cn/mont-blanc-bol%C3%ADgrafo-c-2.html]montblanc bolígrafo[/url]

Ardchaighdeáin macasamhail Fairí , uaireadóirí Rolex , Rolex macasamhla ar díol
[b][url=http://www.replicawatchlove.com.cn/ie/]uaireadóirí macasamhail na hEilvéise AAA +[/url][/

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Google+ Indyaspeak @ Pinterest RSS