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
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
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
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
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
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
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
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
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
"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
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
11 matches
Mail list logo