sc_redir

Hello everyone,
how can I change applications after executing a command from my php button?
I tried to enter sc_redir() after my code but does not work.

ex: php button with this code

sc_exec_sql(“SELECT riga FROM temp_af INTO OUTFILE ‘$nomefile’ lines terminated by ’
'”);
sc_redir(xxxxxx.php);

Re: sc_redir

this code should be working … are you getting an error? whats is happening?

Re: sc_redir

Hi
The sc_redir should work…! provided you have a valid Target application…! Do you have xxxxxx.php…? or you maynot have generated the code…! usally when you call direct to php, you may have to give abosulte path … estapplication estapplication.php or if you have your application in the same project then call only the name

regards
Dhana

Re: sc_redir

Diogo Toscano,
I have a issue in the sc_redir while using in the Control application as below

When the sc_redir is called from the control application, the redirction takes place in the new window…and the current (Control application) becomes white (empty)
I want it in the same window… Is it a bug or some thing need to be done

I had also tried sc_make_link which creats Link to the redirected application, but is with some special characters and unable redirect properly.

Any idea or suggestion…

Thanks & Regards
Dhana

Re: sc_redir

Are you using only this code and its opening like a popup and the current page is blank?
sc_redir(xxxxxx.php);??

try to use sc_redir and use the target “_self” … or … can provide us with a link for your system so we can test?