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


Posted on 16th Feb 2014 01:33 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

Omega watches, Speedmaster
[b][url=http://www.luxurywatch.org.cn/]swiss replica watches aaa+[/url][/b] [b][url=http://www.luxu

Nike Skor Outlet till försäljning , Billiga och klassiska Nike skor med 70%
[b][url=http://sv.niketopoutlet.top/]Nike Roshe Run[/url][/b] [b][url=http://www.niketopoutlet.top/

values not being entered into table
hi. I;ve created a form, so that when a user enters data into it, it gets added to a table in a data

get url?
how do i get the url of the page i'm currently on, on my website.. i think its get header.. how do i

How to copy a part of a vector in a raw memory
Hi,

How can I copy a part of a vector into a memory:

1
2
3
4
5

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



Operation not allowed when innodb_forced_recovery > 0.