This topic is locked
[SOLVED]

 SQL not working !!

9/14/2011 11:26:35 AM
PHPRunner General questions
S
slotracer author

Hello all,

I'm new to this and just trying out PHPRunner. My problem is that I have an 'order by' clause in my SQL statement, but records are not displaying in the expected order. Anything I am missing?

Sergey Kornilov admin 9/14/2011

Hard to tell what might be wrong without seeing your application. Post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.

C
CK. 9/14/2011



Hello all,

I'm new to this and just trying out PHPRunner. My problem is that I have an 'order by' clause in my SQL statement, but records are not displaying in the expected order. Anything I am missing?


Not sure how your quote your sql query.
Your SQL query should follow the syntax in right sequence

SELECT

[ALL | DISTINCT | DISTINCTROW ]

[HIGH_PRIORITY]

[STRAIGHT_JOIN]

[SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT]

[SQL_CACHE | SQL_NO_CACHE] [SQL_CALC_FOUND_ROWS]

select_expr [, select_expr ...]

[FROM table_references

[WHERE where_condition]

[GROUP BY {col_name | expr | position}

[ASC | DESC], ... [WITH ROLLUP]]

[HAVING where_condition]

[ORDER BY {col_name | expr | position}

[ASC | DESC], ...]

[LIMIT {[offset,] row_count | row_count OFFSET offset}]

[PROCEDURE procedure_name(argument_list)]

[INTO OUTFILE 'file_name' export_options

| INTO DUMPFILE 'file_name'

| INTO var_name [, var_name]]

[FOR UPDATE | LOCK IN SHARE MODE]]

S
slotracer author 9/15/2011

I've solved my problem. I was displaying my list in an i-frame which didn't refresh when I refreshed the holding page. Needed to refresh the i-frame as well.

Thanks for your help.



Hard to tell what might be wrong without seeing your application. Post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.