If you only have one condition, then get rid of the AND in the where statement;
Select only the fields that you need, instead of *
Like this:
SELECT id FROM $TBL_NEWS WHERE music LIKE '%pop%' ORDER BY name
Peter
At 03:16 PM 11/27/2002 -0500, Benjamin Trépanier wrote:
Hi, I need
At 11/26/2002 10:42 AM, Shane wrote:
It's been a while since I have done any PHP work. I am creating an online
employment application using multiple forms for a client. I was going to use
PHP. I don't remember if I need to pass variables along with the form for
each page, or can I just call
Thank you! This is just what I was looking for. I was not aware of the
output control functions. Using the ob_ functions will make this
child's play.
Thanks again,
Ron
-Original Message-
From: Michael Hazelden [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 12:29 PM
To:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'm setting up a site using sessions right now, and I was just wondering if
there is a way to ignore anything from the client side- I want them to POST a
username and password, from there all data should be handled on the server.
I'm already using
$req = MYSQL_QUERY(SELECT id FROM $TBL_NEWS ORDER BY nom LIMIT 0,
$limit_news);
$res = MYSQL_NUM_ROWS($req);
This is my lines... It's not working... :-(
Thanks for your help
Le 27/11/02 15:23, « Support @ Fourthrealm.com » [EMAIL PROTECTED] a
écrit :
If you only have one condition, then
I'll have to pseudo code this, but following on from Matt's suggestion of a
standalone php script to generate the necessary files, let the database do
the work.
allproducts.php
select whatever fields are necessary from the database as
parameters for catalog.php
work down the
* and then Ernest E Vogelsinger declared
At 20:18 27.11.2002, Ernest E Vogelsinger spoke out and said:
[snip]
Error 413 certainly denotes that the web server refuses to handle the
request. No idea how to configure this value but I'm sure it can be
What I do on my pages is perhaps a convoluted way of doing it but it works. I set a
username and password session variables. Every time the page loads the script verifies
the username and password are correct. If not, they don't get to see the rest. This,
in my mind, pervents someone from
Does anyone know how to do streaming audio with PHP?
No clue if this is even possible. I've checked around
a bit, looked at some script sites, but nothing seems
to give a clue. I *think* it might be possible to set
something like this up, but I'm not sure.
When running PHP as a static binary, how does it handle text (HTML code)
that falls outsize of the ?PHP ? tags. Is the text ignored or
outputted?
Outputted. This can be very handy. One thing I use it for is customizing
configuration files where only a small percentage of the overall text
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I was thinking about doing that, but I was hoping to avoid superfluous
database queries. It is my fallback method, but i _really_ want to use
sessions, but limit them to server-side modification.
On Wednesday 27 November 2002 12:51 pm, Van Andel,
This may seem terribly naive, but what server streams the audio, Apache
with an additional module? Or a special audio server?
If the former, it would seem quite straightforward I would assume (which is
how I get myself into trouble and have such *interesting* assignments),
Apache would issue
On the other hand, I use only one query, searching for the username. I had
experimented with other methods but did not find anything that I felt gave me great
security. Using a session variable that says the person is logged in can be placed
into a query string therefore bypassing the
At 21:55 27.11.2002, Mako Shark said:
[snip]
Does anyone know how to do streaming audio with PHP?
No clue if this is even possible. I've checked around
a bit, looked at some script sites, but nothing seems
to give a clue. I *think* it might be possible to
At 22:17 27.11.2002, Van Andel, Robert said:
[snip]
On the other hand, I use only one query, searching for the username. I had
experimented with other methods but did not find anything that I felt gave
me great security. Using a session variable that
I will look into it. I still consider my self a newbie in the process having picked
up a book back in February and learning to do it. I haven't gotten into using things
like $_SESSION[] and similar with posting forms. Thanks.
Robbert van Andel
===
Network
On Wed, 27 Nov 2002, Mako Shark wrote:
Does anyone know how to do streaming audio with PHP?
No clue if this is even possible. I've checked around
a bit, looked at some script sites, but nothing seems
to give a clue. I *think* it might be possible to set
something like this up, but I'm not
On Wed, 27 Nov 2002 [EMAIL PROTECTED] wrote:
|You could try any number of PHP functions, but the best ones would be
|strchr/strstr/stristr (for locating the first occurrence of the string),
|strpos (find the position of the first occurrence), or strrchr (to find the
|last).
|
I was just using
Benny Rasmussen wrote:
Hi,
In my application I would like to offer a search interface like Google
and other popular search engines. The complication for me is to explode
the search string into proper array elements, like this:
$search_str = \search for this sentence\ -NotForThisWord
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'm not worried about them using the query string for malicious purposes- I
have register_globals off... I'm worried about someone messing with their
cookie and sedding authorized to true- that _will_ change my $_SESSION
variable, unless I can find
I am having this problem, I want to print something directly to my printer
without having that print dialog. What to do know? Is this possible?
Duky
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I know I'm late in on this thread but
Ignoring cookies is easy - just don't set them and don't use any data in
$_COOKIE[]... or am I missing your point?
$_COOKIE[] data should be treated with far more caution than $_SESSION[]
i.e. it should be treated as hostile data. If you really have to
hi
I use PEAR to send mails to my users through sendmail, my mails sometimes
are delivered immediately, sometimes after some minutes and sometimes after
some hours and sometimes never! I tried to identify the cause but I wasn't
successful, is there someone out there who can help me? I want to send
Dan Kuykendall wrote:
I cannot seem to get RH8 to to compile XSLT support. Has anyone else
gotten this to work? Anyone with the resulting php-xslt rpm?
What is the error message? And you really should not rely on the RH8 RPMS as
they found it necessary to change some defaults.
--
On Wed, 27 Nov 2002, Tom Culpepper wrote:
I had no idea this would be of interest to so many people... I've
now posted it on a server for download; it's at
http://kyhm.com/tmp/mp3-example.php.gz
for anyone who's interested.
There's a bunch of commented-out calls to a dprint() in the
--when using session registered variables
--i can only get them to save as session variables for one page
--then on the next page they are gone
--far as i can tell the variables are not getting written over or unset
--and the session is not gettting destroyed
--any other ideas what it might be?
i
At 23:11 27.11.2002, Ernest E Vogelsinger said:
[snip]
If I understand you correctly you want to isolate either quoted strings
(with or without whitespace), or tokens separated by whitespace, as array
elements?
For this you would first have to isolate the
on 28/11/02 9:22 AM, Evan Nemerson ([EMAIL PROTECTED]) wrote:
I'm not worried about them using the query string for malicious purposes- I
have register_globals off... I'm worried about someone messing with their
cookie and sedding authorized to true- that _will_ change my $_SESSION
variable,
Is this a password reminder script?
Or a 'guessing'/knowledge game to get access to a certain page?
Justin
on 28/11/02 4:52 AM, Vicky ([EMAIL PROTECTED]) wrote:
I'm looking to code a script that does the following. Please bear with me as
I'm a total novice at this ^^!
It's sort of like a
Jason
session.cookie_lifetime set to 0 means the session cookie persists until the
client browser is closed...
I'm not clear if you are still having session problems now or the advice you
got earlier sorted it?
Rich
-Original Message-
From: Jason Romero [mailto:[EMAIL PROTECTED]]
Sent:
Hi,
1. did you search the archives, because this gets asked often
2. did you do a google search?
From memory, it's POSSIBLE to print directly to the printer IF IT IS
CONNECTED TO THE SERVER, but it's more difficult (if not impossible) to
print to a client side (user's) printer... and impossible
hi,
If you are sure that all your files come with attributes double quoted (not
single quoted) you may want to use this parser class:
http://creaturesx.ma.cx/kxparse/
hint: use the function has_attribute() to verify whether an attribute is
available
Regards,
khalid
Well I might be in the wrong place. I've also asked in the HTML list
now too but I'm still stuck and need some help.
This is pretty much as clear as I can make it. I'm up against a
mental block and even if it's as clear as glass to others I'm dead in
the water and would appreciate some
Well I might be in the wrong place. I've also asked in the HTML list
now too but I'm still stuck and need some help.
This is pretty much as clear as I can make it. I'm up against a
mental block and even if it's as clear as glass to others I'm dead in
the water and would appreciate some
Very sorry for the dupes... Kept thinking I had pressed reply instead
of reply all.
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Benny Rasmussen wrote:
Hi,
In my application I would like to offer a search interface like Google
and other popular search engines. The complication for me is to explode
the search string into proper array elements, like this:
$search_str = \search for this sentence\ -NotForThisWord
The second release candidate of the inimitably fabulous PHP version 4.3.0 is
out. It can be downloaded from http://qa.php.net. Give it a good testing!
-Andrei
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Not PHP, but here's a solution I use for streaming WMA
files on apache server.
You'll need 3 files
audiofile.htm
audiofile.wax
audiofile.wma
[audiofile.htm]
html
headtitleAudio Player/title/head
body
script language=JavaScript
!--
if ( navigator.appName == Netscape )
{
I'm not worried about them using the query string for malicious
purposes-
I
have register_globals off... I'm worried about someone messing with
their
cookie and sedding authorized to true- that _will_ change my $_SESSION
variable, unless I can find some way to ignore cookies, which brings
us
What I do on my pages is perhaps a convoluted way of doing it but it
works. I set a username and password session variables. Every time
the
page loads the script verifies the username and password are correct.
If
not, they don't get to see the rest. This, in my mind, pervents
someone
from
$req = MYSQL_QUERY(SELECT id FROM $TBL_NEWS ORDER BY nom LIMIT 0,
$limit_news);
$res = MYSQL_NUM_ROWS($req);
This is my lines... It's not working... :-(
Use mysql_error() to find out why. Odds are one of your variables aren't
set when you think they are.
$req = mysql_query( ... ) or
Hi all,
I use the following:
1) Win XP.
2) Oracle personal eddition 8.1.6.0.0.
3) IIS.
4) php-4.2.3-Win32 runs in cgi mode.
When I retrieve a blob from my DB, I got the following error:
Fatal error: Call to undefined function: load() in
c:\inetpub\wwwroot\php1\ora52.php on line 6
I've never used load() before, but I can't find it in the function list
in php.net
On Thu, 2002-11-28 at 11:05, Naif Al-Otaibi wrote:
Hi all,
I use the following:
1) Win XP.
2) Oracle personal eddition 8.1.6.0.0.
3) IIS.
4) php-4.2.3-Win32 runs in cgi mode.
When I retrieve a blob from
Hello,
On 11/27/2002 09:01 PM, Siamak wrote:
I use PEAR to send mails to my users through sendmail, my mails sometimes
are delivered immediately, sometimes after some minutes and sometimes after
some hours and sometimes never! I tried to identify the cause but I wasn't
successful, is there
I have a php script setup which downloads a file from a remote server via
FTP. It worked fine for a couple months until I went to use it one day and
it returned the error below. I hadn't made any changes to the script in that
time. It was no big deal so I wrote it off as it wasn't really an
Hi,
Does anybody know how to use this function?
openssl_x509_read(mixed x509certdata)
Is x509certdata the certificate submitted by the browser to the server?
Richard
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On my current project I am saving personal info into a MySQL database
for later retrieval. I have discovered that I have trouble with a few
specific data entries, though the other ~20 work fine. The two I have
trouble with are a char(2) and a varchar(4) field, the smallest ones in the
table,
101 - 147 of 147 matches
Mail list logo