[PHP] Re: Use include function (newbie)

2003-10-17 Thread Rich Fox
But *why* does logic.php need html.php? There is no recursion issue, or endless nesting of includes, because html.php refers to logic.php as an action for a form... this does not "include" the logic.php code into the html.php page. Rich "Karina S" <[EMAIL PROTECTED]> wrote in message news:[EMAI

Re: [PHP] Shouldn't script errors show in my browser?

2003-10-17 Thread Rich Fox
Yeah, that did it, thanks "David Otton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 17 Oct 2003 11:29:41 -0400, you wrote: > > >I hope this question is not too stupid! When I have an error in my script, > >it seems to me that the web server, or in my case the php CGI modu

[PHP] Shouldn't script errors show in my browser?

2003-10-17 Thread Rich Fox
I hope this question is not too stupid! When I have an error in my script, it seems to me that the web server, or in my case the php CGI module I am using for testing, should send something back to my browser displaying an error message. Instead, I can write any garbage I would like in my php scrip

[PHP] Nested queries don't work

2003-10-15 Thread Rich Fox
I have the following code querying MS SQL Server $query = "SELECT * FROM mytable"; $res = mssql_query($query); $nr = mssql_num_rows($res); for ($i=0; $i<$nr; $i++) { $a = mssql_fetch_array($res); $query = "SELECT * FROM anothertable WHERE id=".$a['anotherID']; $res1 = mssql_query($quer

Re: [PHP] Reloading a specific window

2003-10-02 Thread Rich Fox
robably doing something very stupid. Marek Kilimajer wrote > Output from action.php: > > opener.location.reload(); > close(); > > > Rich Fox wrote: > > Warning for server side purists: My php scripts use javascript to popup and > > close windows. So this question, al

[PHP] Reloading a specific window

2003-10-02 Thread Rich Fox
Warning for server side purists: My php scripts use javascript to popup and close windows. So this question, although posted to a php newsgroup, has elements of javascript too. Gasp! No flames please. I have a main window which I will refer to as mainwindow (window.name='mainwindow' in the onload

[PHP] documentation on "<<<"

2003-10-01 Thread Rich Fox
Can someone point me to documentation on the <<< operator? I am wondering if there are some quirks I don't know about. Yet I can't find it documented on the php website. THanks, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] for loop break and continue

2003-09-25 Thread Rich Fox
Can't you let me have a shred of programming self-respect? Rich (I should have cracked the book) Fox > On Thu, 2003-09-25 at 12:04, Rich Fox wrote: > > DOH! > > > > This is a new addition to PHP because it wasn't there before! > > > > Thanks for the sl

Re: [PHP] for loop break and continue

2003-09-25 Thread Rich Fox
ila, you've taken the first step towards > helping yourself. > > Cheers, > Rob. > > > On Thu, 2003-09-25 at 11:42, Rich Fox wrote: > > Hi, > > Is there an equivalent to the C++ 'break' command to stop execution of a for > > loop? I know I

[PHP] for loop break and continue

2003-09-25 Thread Rich Fox
Hi, Is there an equivalent to the C++ 'break' command to stop execution of a for loop? I know I can use 'goto' but I don't want to unless I have to. for ($i=0; $i<$n; $i++) if (some condition) break; And, what about 'continue' which skips the rest of the code in the for loop and immed

[PHP] using a php variable in javascript

2003-09-22 Thread Rich Fox
I have a page with the following code: I have 'CompanyEdit' hardcoded, but what I want instead is something like: so = window.open('','$callerWin'); This does not work, of course, but you get the ide

Re: [PHP] Re: forcing variable expansion

2003-09-22 Thread Rich Fox
Sorry, we have a Eugene Lee at my aikido school and it's such an unusual name I thought you might be him. "Eugene Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sun, Sep 21, 2003 at 03:01:41PM -0400, Rich Fox wrote: > : "Eugene Lee" <

[PHP] Re: forcing variable expansion

2003-09-21 Thread Rich Fox
That's not Eugene from the dojo is it? Rich "Eugene Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If I have a block of text saved in an external text file, e.g.: > > All {$badstuff} and no {$goodstuff} makes {$name} a dull {$type}. > > after reading the text into a string, i

[PHP] Re: popups, parents, parameters, and php

2003-09-19 Thread Rich Fox
select1 list. I am going to try this, but I would still greatly appreciate any advice. Thanks, Rich "Rich Fox" <[EMAIL PROTECTED]> > I have been asking specific questions, and getting helpful answers, but I > realized I am getting ahead of myself and thinking about the tr

[PHP] popups, parents, parameters, and php

2003-09-19 Thread Rich Fox
I have been asking specific questions, and getting helpful answers, but I realized I am getting ahead of myself and thinking about the trees when I don't see the forest yet. I would like to describe what it is I want to do in general, and then hopefully you can point me in the right direction so I

Re: [PHP] Opening new browser window

2003-09-19 Thread Rich Fox
> wrote in message > > > > Rich Fox wrote: > > > I would like to open a new browser window from within my php script > > (edit.php), a window in which another php page is run (search.php). > > search.php should be able to receive $_POST vars etc. from edit.php. I a

[PHP] Opening new browser window

2003-09-19 Thread Rich Fox
I would like to open a new browser window from within my php script (edit.php), a window in which another php page is run (search.php). search.php should be able to receive $_POST vars etc. from edit.php. I am not sure that the javascript solution to popup a window is correct, because then the popu

[PHP] Returning form vars from popup

2003-09-18 Thread Rich Fox
I have a popup window, itemSelect.php, from which I would like to reload the calling page. itemSelect.php has a form, and I want to reload the calling page with these form variables. How can I do this? I can reload the page easily enough, with -- PHP General Mailing List (http://www.php.net/) To

[PHP] Returning FORM vars from popup

2003-09-18 Thread Rich Fox
(Sorry, I inadvertently sent an incomplete post) I have a popup window, itemSelect.php, from which I would like to reload the calling page. itemSelect.php has a form, and I want to reload the calling page with these form variables. How can I do this? I can reload the page easily enough, with this