MySQL version: 4.0.16
PHP version: 4.3.2
Problem code:
$query = SELECT * FROM tablename
WHERE columnname LIKE '%any_eight_digits%';
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
suggest how to fix that?
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
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
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 ?php ? tags (before the session_start() ) will cause this
problem. Check any included files before the session_start().
Peter
Brad
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 nowadays
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]
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 cookies turned off
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:
From the book Core PHP programming
[LSS] wrote:
On 11 December 2003 16:54, Peter Walter wrote:
Jason,
Thanks for your help. It is a little clearer to me now.
However, I have
visited php sites that *claim* to be using session management
but where
the links do not have the session id appended, and there are no
variables being
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 you described. However, please bear
with me a bit - the results I
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 pages
11 matches
Mail list logo