Hi,
> that the code should be fixed.
Or the error reporting turned down... :-)
--
Richard, RGraph.net support
JavaScript charts for your website using RGraph
http://www.rgraph.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Though I think I've left behind now if that's the case... :-(
--
Richard, RGraph.net support
JavaScript charts for your website using RGraph
http://www.rgraph.net
COMMERCIAL license: RGraph commercial and government license only £99
FREE LICENSE: Using RGraph under the free license? Wr
Hi,
> https://docs.google.com/spreadsheet/ccc?key=0Ak1QF0ijPYbedDNvb19SQl80MHcxUWhhbTZOYm5FUlE
Yikes. That's a littled bit worrying. Or does it really mean that
everyone is getting much better with PHP? :-)
--
Richard, RGraph.net support
RGraph: JavaScript charts for your webs
Hi,
Is this list less busy than it used to be? Or is it just me? When I
used to be on this list ISTR sometimes being overwhelmed by email.
Cheers
--
Richard, RGraph.net support
RGraph: JavaScript charts for your website
http://www.rgraph.net
--
PHP General Mailing List (http://www.php.net
Hi,
Just thought I'd say hello again. Back to brush up on my PHP a little
after a bit of a break - more reading than replying I'd imagine. I
have some pretty bad jokes too that I might surreptitiously insert
here and there...
Cheers.
--
Richard Heyes, RGraph.net support
RGraph:
On Monday, December 15, 2008 7:29 PM, gould...@mac.com wrote:
I have a mySQL database with 700,000 records in it, which are presently
keyed with an "auto-increment" field.
What I'd like to do is create another field with a field where each and
every record number has a unique keyvalue. Exampl
Permissions on a virtual server is the reason for running this script as a
cgi. It's not what prefer to do. However, this is only way php will work
under my user name. Perl would probably be a better alternative but I don't
know perl. If I had control of the apache server this would not be a
proble
o just want to stream the sermons can do so, and with the
player in a popup window they could still surf the web while listening.
As far as file format, it might be worth looking into using the OGG
Vorbis format. There are players on Windows/Mac/Linux that support the
format and it uses compression,
Hi Ron,
Not aware of an existing function for that task... but - since it looks like
all the value are strictly in quotes (="value") - if you know all the 'var's
ahead of time (such as 'carrier') then you could extract the data fairly
easily going through the data line by line checking with strpos
ot;
Thanks for the input!
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 18, 2006 11:29 AM
To: ET Support
Subject: RE: [PHP] RE: header data being inserted into message
what you're showing indicates that an MTA is getting confused about
th
rking then maybe
I'll go to majordomo2.
Anyone else have some advice for me here?
Thanks,
Ben
-Original Message-
From: Richard Correia [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 17, 2006 12:37 PM
To: ET Support
Cc: php-general@lists.php.net
Subject: Re: [PHP] RE: header data bein
Hello all,
I am having a problem using PHP's mail function to send mail via BCC to
multiple recipients. Here's my code;
--
$get_emails = pg_exec($dbh,"SELECT email FROM mailing_list WHERE conf = 1");
$count = pg_numrows($get_emails);
$bcc_count = $envelope_count
Thanks so much for the response Jason,
I am sure glad somebody got it...good to know I'm on the right track.
I have a key pair setup but I don't think they are named correctly...I could
use some guidance on how the server is named and how to name your public keys
to match..The other issuse is
Hi,
We worked with Sablotron before but switched over to the libxslt
library on PHP5 to perform XSL transformations. We used the wrapper
code found on http://be.php.net/xsl so that our old xslt_ functions
continued to work.
Now, with Sablotron we used to parse multiple XML documents as strings
an
I've dealt with a similar problem with Mandrake. Some distros have their own
idea of where things should go. I prefer to install major applications like
apache, perl, mysql, php myself and never install from rpm or accept default
distro packages when installing an os from scratch.
IMHO: Although h
Anyone working with php5/mysql 4.1 yet with the new ext/mysqli?
This has me stumped:
$stmt = $mysqli->prepare('SELECT * FROM users WHERE userid=?');
$stmt->bind_param('i', $userID);
$stmt->execute();
...now how to get the results??? I can't use bind_result() since I have no
clue how many colum
I am trying to figure out how to best handle a record that contains a zip
file (BLOB) in MySQL.
When I call it out from the table, is the best way to handle the file by
writing it to a temporary directory?
The BLOB represents a '.zip' file, so should I be using: zip_open /zip_read
/ zip_close w
Hi Team,
How to track a posting in a faq using mysql.
Thanks in advance.
Suresh A.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Does anyone know how to get apache to process ALL files for php? What would
the settings be in a Virtual Host listing (or a plain host listing for that
matter)?
Thanks!
:)
-Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
See the attached file for details
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi ALL,
I just want to validate each row values of a and load the same in MYSQL
Table.
Suresh A.
On Sat, 19 Jul 2003, Curt Zirzow wrote:
> Suresh Babu.A [Support] <[EMAIL PROTECTED]> wrote:
> >
> > HI ALL,
> >
> > I want to update a mulitple row fr
HI ALL,
I want to update a mulitple row from a HTML Table to MYSQL Database.
L1 V1 T1
L2 V2 V2
L3 V3 V3
Any help in this regard is much appreciated.
Suresh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have this in a script:
header("Location: $Relative/outstanding.php?pdd=1&pddid=$poid");
It works fine elsewhere in the script without the variables. Does anyone
know if php 4.06 has issues with this? Or am I making a boneheaded mistake
here?
$Relative is from an include, and outputs fine.
Does PHP use less system resources than CGI on a server?
I have a bulletin board which is incredibly active, but there is a PHP
sister to it.
Thanks,
-Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a table where the row named "hide" can have a value 0 or 1.
I want to obtain a count of all the rows where "hide" has value 0.
The following works on mysqladmin:
SELECT SUM( hide = 0 ) FROM `names` LIMIT 0, - 1
Giving
SUM( hide = 0 )
7
The PHP script statements generated are:
$sql =
;rentAweek support" <[EMAIL PROTECTED]>
To: "Kevin Stone" <[EMAIL PROTECTED]>
Cc: "Michael Eacott" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, February 17, 2003 3:12 PM
Subject: Re: [PHP] Text data truncated after first blank character in form
Errnest
Thanks. I used htlmentities and still have the truncation.
Mike
---
Ernest E Vogelsinger wrote:
At 22:04 17.02.2003, Michael Eacott said:
[snip]
When I have the following in a form:
>
the value shown in the form field is a and not a b c
why
Thanks
I tried our your suggestion sic:
Still truncation
Mike
---
Kevin Stone wrote:
It's your HTML Failing to enclose the value in quotes may lead to
truncation. Your output looks like this...
You should always quote every parmeter in the tag just to avoid such
problems. This should work
Jason
Thanks for your help .
I've implemented you advice. The problem persists in that I'm trying
create the following situation:
When the posted action php script runs I want the retrieved $_POST array
to contain such information that the action script can find out what
checkboxes were clicke
Should this work?
$f1 = rand(999,999);
while($check_sid = mysql_query("SELECT * FROM that_table WHERE this =
'$f1'")){
$f1 = rand(999,999);
}
i.e. put the random number in a loop to check and make sure it is already
not in use?
Thanks,
-Mike
--
PHP Gene
! - code included
Take the
$name = urldecode($name);bit out. The decoding is all handled by PHP before
your script runs. Also, you should look into using $_GET['name'] instead of
$name.
SpyProductions Support Team wrote:
Here is some code:
>From a form, I get username as $nam
ursday, January 23, 2003 3:31 PM
> To: PHP General list
> Cc: SpyProductions Support Team
> Subject: Re: [PHP] URLencode issues - halp!
>
>
> Mike --
>
> ...and then SpyProductions Support Team said...
> %
> % I am having some issues, apparently, with URL encode.
> ...
I am having some issues, apparently, with URL encode.
I've got people signing up for a membership on a site, but some of their
memberships fail because the username, which in encoded, sometimes goes
through fine and sometimes does not.
Are there any special reasons this may happen?
I decided to
Use this:
function makedate($format, $indate)
{
$temp = explode("-", $indate);
$fulldate = mktime(0, 0, 0, $temp[1], $temp[2], $temp[0]);
$temp = date($format, $fulldate);
return ($temp);
}
and call it with thi
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 information
ds a little harsh!
You can put a message in place of the iframe, for those who don't support
it.
Sorry, your browser does not support iframes, to view the content of this
frame, click here.
Or better still, you can actually PUT SOME CONTENT IN THERE.
I have an iframe which lists multiple
he iframes limited?
Thanks,
Eddie
-Original Message-----
From: Support @ Fourthrealm.com [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 11:23 AM
To: Edward Peloke; [EMAIL PROTECTED]
Subject: Re: [PHP] scrolling data from db
Eddie,
I use the attached on a site of mine...
Eddie,
I use the attached on a site of mine... works with JavaScript and tags.
There are 2 parts to the file - the javascript, and then the HTML code to
make it happen. Tweak according to your needs.
Peter
At 11:00 AM 11/20/2002 -0500, you wrote:
I have a large amount of data to present to t
Bob,
Instead of dividing, use modulus to get the exact number of remaining
seconds, and then determine the minutes from that.
Here is some code that I've quickly adapted from another language I use, to
take the total minutes, and convert it to "hours:minutes" display.
$totalmins = 193;
$showmin
Eddie,
This is a function that I wrote to handle this same situation:
# --- Function to format date output ---
function makedate($format, $indate)
{
$temp = explode("-", $indate);
$fulldate = mktime(0, 0, 0, $temp[1], $temp[2], $temp[0]);
What databases does it support?
Many thanks in advance.
Peter
- - - - - - - - - - - - - - - - - - - - -
Fourth Realm Solutions
[EMAIL PROTECTED]
http://www.fourthrealm.com
Tel: 519-739-1652
- - - - - - - - - - - - - - - - - - - - -
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
What databases does it support?
Many thanks in advance.
Peter
- - - - - - - - - - - - - - - - - - - - -
Fourth Realm Solutions
[EMAIL PROTECTED]
http://www.fourthrealm.com
Tel: 519-739-1652
- - - - - - - - - - - - - - - - - - - - -
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
More details on this...
As I pay more attention to when it is sluggish or not, I notice that it
seems to run fine on a typical page, with or without mySQL connections.
But... the slowdown comes whenever I'm into my frame-based Admin, where 2-3
frames are typically loading at the same time. The
Hello
I'm preparing to start an ecommerce project that will require the use of sessions
throughout the entire site for referrer and affiliate tracking purposes. I also plan
to use mod_rewrite to make links to dynamic content search spider friendly. example:
instead of /somescript.php?var1=valu
Hey everyone... do you know where I can find a list of the common returns
of the $_SERVER["HTTP_USER_AGENT"] variable?
For example:
I.E. 5.0 = Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; .NET CLR
1.0.3705)
Netscape 4.08 = Mozilla/4.08 [en] (WinNT; U ;Nav)
Thanks,
Peter
- - - - - - -
systems my clients use.
So, I just need to know if there are some tweaks I should be considering to
speed up PHP?
Peter
At 12:31 AM 10/8/2002 +0900, @ Edwin wrote:
>Hello,
>
>On Tuesday, October 8, 2002 12:19 AM
>Support @ Fourthrealm.com wrote:
> > Hi everyone,
> > I
Hi everyone,
I notice that my PHP runs really slow on Win2k Server w/ IIS 5, and even
slower when accessing a mySQL database. It's a PIII-800 with 256MB
RAM. It is otherwise a great machine, and fast.
Any suggestions?
Peter
- - - - - - - - - - - - - - - - - - - - -
Fourth Realm Solutions
[
Sauron,
Since you're running Win2K, then you can use IIS already installed instead
of Apache. I use Win2K Server, with IIS, PHP 4, and mySQL on my local box,
and it works just fine.
Peter
At 10:55 AM 9/26/2002 -0400, Steve Bradwell wrote:
>Welcome Steve,
>
>You'll need to do two things to g
Chuck,
Setup your form like this (assuming search.php is the name of your page):
.
Then in your search.php page, use this structure:
# --- set $step to passed value, or else set to default ---
if (isset($_GET["step"])) { $step=$_GET["step"]; }
elseif (isset($_POST["step"])) { $st
Patrick
Off the top of my head... Convert both date1 and date2 to unix timestamps,
and subtract one from the other. That will give you the number of seconds
between them. Then, convert to hours, minutes, etc as required.
Peter
At 10:38 PM 9/23/2002 +0200, Patrick wrote:
>i got 2 dates and
Hi Tom,
Try this:
$years = round($years + ( $themonth / 12 ));
From the manual:
float round ( float val [, int precision])
Returns the rounded value of val to specified precision (number of digits
after the decimal point). precision can also be negative or zero (default).
ceil() and floor()
Tom,
JavaScript is a client side language, while PHP is server side.
This means that the PHP is parsed and evaluated before it ever reaches the
surfers browser. And since the JavaScript variable will not be available
until it is created by the browser, there is no way to interact with it.
Pe
A solution that I use is to put important information in an include file,
and store it in a User-Authentication protected folder, ie. /admin/
This adds one extra layer of protection to your files, and keeps the
average joe-surfer from being able to get the files.
Peter
At 08:24 PM 9/19/2002
Another question about efficiency / using server resources:
In another language I use, I can re-use an ODBC connection to make further
queries/update/etc to the database to save the overhead of closing and
reopening the connection to the db over and over.
It works sometime like this (in the o
Rick, or anyone,
Based on what you said below, can you describe for me when the
mysql_free_result tag should be used, and when it is not necessary?
I'm fluent in other web languages (iHTML, ASP), but am fairly new to PHP,
so I'm still learning the intricacies of the language, and the best way
can do this...
>
>if ($youwanttocallit == "00-00-00") {
> $youwanttocallit = " ";
>}
>
>that way you don't have a bunch of 00-00-00 showing up.
>
>I hope that helps, because that is what the maillisting is for
Which is more efficient?
a) a sql loop where everything is displayed/formatted using echo stmts,
like this:
$result = mysql_query("SELECT * FROM news WHERE active=1");
while ($row = mysql_fetch_object($result)) {
echo "$row->title ";
}
mysql_free_result($result);
?>
OR
b) a sql loop
Reformatting before an inserting/updating is one option, but how would we
change the mySQL database to accept the other format?
Peter
At 04:18 PM 9/12/2002 +0800, Jacob Miller wrote:
>Why can't you just reformat it before inserting it into the db?
>
> $date = "31.12.2002";
>
>
Hi guys,
What is the easiest way to get the date of one year from today?
Accommodating for leap years is not essential (but would be a nice bonus).
Thanks,
Peter
- - - - - - - - - - - - - - - - - - - - -
Fourth Realm Solutions
[EMAIL PROTECTED]
http://www.fourthrealm.com
Tel: 519-739-1652
- -
John
Include your template this way:
$file_name="templates/somefile.php"
$New_Content1 = 'This is the new text';
$New_Content2 = 'This is the other text';
include $file_name;
In the template file, have etc wherever the
content should appear.
Then you can put other php code in the template f
Meltem,
You're much better off to use JavaScript to perform the form
validation. This way, when the user clicks on the Submit button,
JavaScript can make sure that values are filled in, or that they are within
range, and can then pop up a message advising them of any errors, and that
they ca
If you want to put the SELECTED option into your select list while you are
building the page, use an if statement in the ... something
like this:
> Option 1
> Option 2
Peter
At 02:05 PM 9/9/2002 +0300, you wrote:
>Hi,
>
>Can I put the "selected" option of select box later by using php?
Anjali,
Use a BUTTON type element, and some javascript:
Peter
At 01:57 PM 9/8/2002 -0700, you wrote:
>hello,
>
>i dont know how to redirect a page... i mean i want to
>have the effect of submit button without clicking on
>the submit button.
>
>thank you
>anjali
>
>___
Your radio buttons look fine. I would ensure to add quotes (single or
double) around the attribute settings, for HTML compliance. If you must go
without quotes, then make sure that you don't put spaces in any of the
attribute values.
As for the form not working... do you have a JavaScript
Where can I download the php manual with the user notes (in html format)
Thank You
___
http://www.SaudiABM.com
___
About Islam :
http://home2.swipnet.se/~w-20479/Audio.htm
http://sultan.org
___
--
PHP General Mailing List (htt
Hi
Anyone know a good email decoder (function or class) that can split the
any email to subject, from, to , body and attachments ?
Thank You
___
http://www.SaudiABM.com
___
About Islam :
http://home2.swipnet.se/~w-20479/Audio.htm
http://sultan.org
Cross posting this with php-dev might not be the best idea. The dev list is
not for support unless you are trying to code part of the php source.
So this is only failing on the decrypt side of the code?
"Memory allocation error" does not sound like a problem specific to this
functio
n any
file that is world readable.
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "Lars Olsson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 30, 2002 12:09 PM
Subject: [PHP] Re: A somewhat unusual session qu
try preg_grep()
http://www.php.net/manual/en/function.preg-grep.php
example:
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "andy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 30, 2002 10:36 AM
Subje
as the date was
past present they would go through.
P.S. Save the flames. It was not my idea to guess new expiration dates ;-)
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "Craig Vincent" <[EMAIL PROTECTED]>
To: "Laurent Drouet
Uhhh but you really should ask the author too. ;-)
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "Tech Support" <[EMAIL PROTECTED]>
To: "Chris Boget" <[EMAIL PROTECTED]>; "PHP General"
<[EMAIL PR
in
a commercial work you must also provide the original source code and the
original license. This does *not* mean that you have to include *your*
source code, but only the original source code. Some licenses are even more
free than that but that is the standard.
Jim Grill
Support
Web-1 Hosting
http
#x27;t help and blah blah
blah. I wouldn't recommend asking many questions though unless you want to
get flamed. :-)
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "Chris Boget" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Se
I think you are looking for something different.
do this:
print "";
print_r($_SERVER);
print "";
You will see a whole bunch of useful globals. As a matter of fact, try this
one out too:
print "";
print_r($GLOBALS);
print "";
Jim Grill
Support
W
ng project. I copied it and changed
some var names to make it more clear. I did not test it in this format but
it is a good example and you could certainly improve it or build on it.
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "Paul Maine"
;
$ref = explode('/', $referer);
if ( in_array($ref[1], $_valid_referrers) )
return true;
else
return false;
}
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "Dennis Gearon" <[EMAIL PROTECTED]>
To: "Bob Lockie"
Are you asking us how to write an entire online community program???
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "umesh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 28, 2002 6:40 AM
Subject: [PHP] Hel
);
header("Content-Type: application/download");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($file));
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pr
cURL needs to be compiled with SSL support.
./configure --with-ssl=SSLPATH where SSLPATH is the actual path to where
openssl can be found.
./configure --with-ssl=/usr works for me.
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "Oscar F&quo
list though. It's not like
php.net has anything against rackspace users. They are just one of many who
make use of the blacklist. Use another email account or get a hotmail
account or something. The list needs you! :-)
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original M
= $password;
You can also use $HTTP_SESSION_VARS. I'm not quite sure if there is any
major difference in the two except that $_SESSION is new post ver 4.0.6
To end a session simply
$_SESSION = array();
session_destroy();
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Origin
Congrats! Good choice!
Take a look here:
http://www.convert-in.com/acc2sql.htm
or here:
http://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&q=convert+access+databa
se+to+mysql
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "C
Try just header("Location: $PHP_SELF"); or header("Location: $SCRIPT_NAME")
...leave out http:// ...and your quotes are in the wrong place too.
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "k a m e s h" <[EMAIL
ot like it's going to mess anything up... unless
you moved your code from one site to another and hard coded your full URI in
all your header redirects... yikes!!. That's when a main config file would
come in real handy :-)
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Origi
problems that I'm
unaware of. I don't see why you people put up with that rpm crap. :-)
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "karthikeyan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 26
their sites/apps on *nix we will eventually take down the
evil Redmond devil and open source software will rule the world.
"The box read, 'windows 9x or better' so I installed Linux!"
hehe
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
This may sound silly, but you are uploading in binary mode right?
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 26, 2002 5:24 PM
Subject: [PHP] High Resolution Images
&g
You need a web server like M$ IIS or Apache. I would rather chew tin foil
than run an IIS server even if it was on a win machine.
You can install the win version of the Apache web server and then just
browse to http://localhost/ to view your work.
Jim Grill
Support
Web-1 Hosting
http://www.web
the query
string to keep the session without the need for a session cookie.
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "k a m e s h" <[EMAIL PROTECTED]>
To: "Tech Support" <[EMAIL PROTECTED]>
Cc: "Matt" &
I'm not a windoze user but if that line has a ";" at the beginning of it
like you have it in your message then it is commented out! LOL. :-)
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "Ryan Moore" <[EMAIL PROTE
ubquery .= " ItemNumber = '$pid' OR ";
// get rid of last _OR_
$subquery = ereg_replace('[:space:]OR[:space:]$', '', $subquery);
// put the query together
$query = $query . $subquery;
// add more crap to query if you want
$query .= " and some_other_column=
http://www.php.net/manual/en/function.array-key-exists.php
The name of this function is key_exists() in PHP version 4.0.6.
Damn those elusive manual pages :-/
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "David D" <[EMAIL P
4.2.2 will not work with apache 2.X from what I've read. However, I have
heard that if you get the latest CVS of both php and apache it will work. I
have not, and probably will not, go down that road just yet :-)
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Me
ad. Sorry if I threw you off. You can just do it like this:
$text_out = ereg_replace('(.*(\(|\[)|(\)|\]).*)', '', $text_in);
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "Mike" <[EMAIL PROTECTED]>
To: "'Tech Support'"
This query will return only the 16th row
SELECT firstname FROM table_name LIMIT 16, 1
This query will give you all rows up to 15
SELECT firstname FROM table_name LIMIT 1, 15
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "Tyler Durdin&quo
(.*(\(|\[)|(\)|\]).*)', '', ${$data}); // the magic
line. feed it the string(s).
print "$i) $data";
}
###
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "Mike" <[EMAIL PROTECTED]>
To: "PHP List&qu
7;s in php.ini.
http://www.php.net/manual/en/function.ini-set.php
Sorry for the book. But sessions can be difficult to grasp if your new and I
thought this was important.
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "Matt Babineau" <[EM
rrence
http://www.php.net/manual/en/function.strpos.php
$pos = strpos($text, $matches[0]);
die("$pos"); // should be what you want... 10
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "lallous" <[EMAIL PROTECTED]>
To: <[E
Hi Steve,
try this:
if (basename($SCRIPT_NAME) == "index.php")
print "some silly message";
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "Steve Minter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]&
f sql injections and other types of sneaky stuff.
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: <[EMAIL PROTECTED]>
To: "PHP List (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 5:30 PM
Subject: [PHP] Trouble with \
1 - 100 of 122 matches
Mail list logo