[PHP] possible bug in PHP function mysql_query() ?

2003-12-26 Thread Peter Walter
MySQL version: 4.0.16 PHP version: 4.3.2 Problem code: $query = "SELECT * FROM tablename WHERE columnname LIKE '%%'"; mysql_query($query); Results: query fails, mysql_errno() returns 1064 (syntax error) I have tracked the problem down to the WHERE clause; using any other number of digits (except e

Re: [PHP] programming the onclick() event in an anchor [FIXED]

2003-12-25 Thread Peter Walter
hat? Peter Evan Nemerson wrote: On Wednesday 24 December 2003 08:06 pm, Peter Walter wrote: I have written a session-enabled php page which displays a table of search results. The first column in the table contains anchor links to www.mydomain.com/mypage?seqno= where seqno is a variable I

[PHP] programming the onclick() event in an anchor

2003-12-24 Thread Peter Walter
I have written a session-enabled php page which displays a table of search results. The first column in the table contains anchor links to www.mydomain.com/mypage?seqno= where seqno is a variable I would like to pass when the anchor is clicked. However, I do not wish the ?seqno= to disp

Re: [PHP] sessions simply don't work

2003-12-19 Thread Peter Walter
Ken, I had exactly the same problem and it really stumped me for a while. Check your php start and end tags carefully - even a single space before or after the tags (before the session_start() ) will cause this problem. Check any included files before the session_start(). Peter Brad Pauly wr

[PHP] Re: PHP IDE?

2003-12-14 Thread Peter Walter
Rush, templatetamer looks like an environment that I would be interested in using; however, what support resources are available for templatetamer? Is there a news server, bulletin board, or other help resource for people new to templatetamer? Peter Rush wrote: "Jough Jeaux" <[EMAIL PROTECTED

Re: [PHP] url rewriting within sessions - confused newbie needs help - [FIXED]

2003-12-14 Thread Peter Walter
I finally discovered the problem. There was extra whitespace after the php closing tag ?> that was being interpreted as part of the header. Removing the whitespace fixed the problem. Peter Peter Walter wrote: Mike, I hope you mean session_start(). Yes, I did. Getting a bit dyslexic nowad

Re: [PHP] Session Link Problems

2003-12-12 Thread Peter Walter
leases. For a full description of the exact behaviour, see my recent post in response to Peter Walter (sent on 11-Dec at 17:36 GMT). If you want your session handling to rely solely on cookies, then set the session.use_only_cookies option in php.ini -- but be aware that anyone using a browser with

Re: [PHP] url rewriting within sessions - confused newbie needs help

2003-12-11 Thread Peter Walter
een a "bug" and a "feature". If it would help, I could send you the url for the page? (password protected) Peter Ford, Mike [LSS] wrote: On 11 December 2003 18:01, Peter Walter wrote: Mike, Thanks for the additional explanation, and I understand the sequence of events as y

Re: [PHP] url rewriting within sessions - confused newbie needs h elp

2003-12-11 Thread Peter Walter
etrieve the session variables - but the url links in the table are still rewritten. I do not understand why. Being new to the "stateless" paradigm of web applications, and to php, I feel a bit nervous about coding when I do not quite grasp what is going on. Peter Ford, Mike [LSS] wrote: On

Re: [PHP] url rewriting within sessions - confused newbie needs help

2003-12-11 Thread Peter Walter
"www.somesite.com/index.php" or just "www.somesite.com". In these cases, how is the url rewriting being suppressed for the links on the page? I simply want to understand the technique. Peter Jason Wong wrote: On Thursday 11 December 2003 14:16, Peter Walter wrote: Fro

[PHP] url rewriting within sessions - confused newbie needs help

2003-12-10 Thread Peter Walter
From the book "Core PHP programming", 3ed ; "As stated earlier, PHP sends session identifiers with cookies, but a browser may refuse them. PHP can detect when a browser does not accept cookies, and in this situation it modifies all forms and links to include the session identifier." My php pag