select * from tbl_lit where lit_source like 'c%';
Check out http://www.sqlcourse.com/
-Original Message-
From: Wolf-Dietrich von Loeffelholz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 12:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] sql question
i want that a select quer
Hi,
I was hoping that someone could point me to a page or resource where I
can find more information about using the predefined variables
introduced in PHP 4.1.0. I read the "release announcement"
(http://www.php.net/release_4_1_0.php), which is what called my
attention to the potential secu
Give this a read first, then come back if you still have questions ;)
http://www.securereality.com.au/studyinscarlet.txt
Kirk
> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 15, 2002 1:50 PM
> To: PHP
> Subject: [PHP] security benefits of pred
Yo, thanks for all your help. But it isn't exactly what im looking for.
Let's say you had a database with the following four columns...
-LastName
-FirstName
-Age
-Weight
...and you wanted a page that would allow a user to search for one or
more of these fields within the database.
It would be
Hi do you care about case sensitivity?
Nathan Cassano <[EMAIL PROTECTED]> wrote:
select * from tbl_lit where lit_source like 'c%';
Check out http://www.sqlcourse.com/
-Original Message-
From: Wolf-Dietrich von Loeffelholz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 1
I'm not sure if I understand...
first of all, I could be wrong, but I thought that you had to use the
LIKE operator rather than "=" (equals sign) when trying to match text
strings. But like I said, I could be wrong.
if you did
$query = "SELECT * FROM tabe WHERE lastname LIKE '$lastname' OR
> > I am experiencing a lot of Signal 11's when I compile PHP 4.1.1 into my
> > Apache server on my FreeBSD 4.5-RC machine. If I compile the -exact-
same
> > Apache configuration with PHP 4.0.6, it works fine. As soon as I switch
to
> > 4.1.1, it causes Signal 11's (and sometimes 10's) when I lo
I am looking into building a dynamically loadable
module under PHP4. The documentation on extending PHP4
is unclear or is missing instructions on how to
generate dynamic loadable module file. I have followed
the instructions but I can't seem to be able to create
the module.
(I even looked at Ster
how 'bout something like
$query = 'select * from table_name where ';
$and = '';
if ($lastname != '') {
$query .= "lastname = $lastname";
$and = ' and ';
}
if ($firstname != '') {
$query .= $comma."firstname = $firstname;
$and = ' and ';
}
and so on
on 1/15/02 1:53 PM, Phil Schwarzmann at [E
construct your query like
$query = "select * from table where ";
lastname='$lastname' and
> firstname='$firstname' and age='$age' and weight='$weight'";
if (isset($lastname) and $lastname !="") then
$query.=" lastname=$lastname ";
if (isset($firstname) and $firstname !="") then
$query.=" and firs
Hi,
Is it possible that I would get the wrong ID (Not the ID I just inserted in
Auto_Increment field) by using mysql_insert_id function if someone is also
inserting record at the same time? How does mysql_insert_id work accurately?
Thanks,
Wee
--
PHP General Mailing List (http://www.php.net/)
T
$where_conditions = array();
if( !empty( $lastname ) ){
$where_conditions[] = "lastname like '%${lastname}%'";
}
if( !empty( $firstname ) ){
$where_conditions[] = "firstname like '%${firstname}%'";
}
if( !empty( $age ) ){
$where_conditions[] = "age = ${age}";
}
if( !empty(
select * from tbl_lit where lit_source like "c%"
Janet
- Original Message -
From: "Wolf-Dietrich von Loeffelholz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 15, 2002 12:09 PM
Subject: [PHP] sql question
i want that a select query display me all words beginning
The problem is that this line:
$rpm_list = `rpm -qa`;
gives back a string, so use this:
$rpm_list = `rpm -qa`;
$rpm_list = explode("\n", $rpm_list);
and see how that goes
Martin
-Original Message-
From: Neil Mooney [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002
Good day,
This isn't a PHP question, but hey...
This is dependant on the database platform that you're using. The suggested
statement would work on MySQL. On Informix, for example, you would say
'where lit_source matches "c*" '.
You should consult your database manual for more information.
=
The frustrating part is, I had this working on OS X 10.0.4. I am now
running 10.1.2 Server.
I successfully build OpenLDAP and it is working fine.
I successfully built a version of PHP 4.0.6 for OS 10.1 with the
instructions found at
http://developer.apple.com/internet/macosx/php.html. It comp
Thanks Mike,
I think that is what I want to do, i'll give it a go
Thanks
Lee :-)
"Mike Cullerton" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> on 1/13/02 6:07 AM, FiShcAkE at [EMAIL PROTECTED] wrote:
>
> > Try that again, without pressing ctrl-enter this
Hi Wee,
> Is it possible that I would get the wrong ID (Not the ID I just inserted in
> Auto_Increment field) by using mysql_insert_id function if someone is also
> inserting record at the same time? How does mysql_insert_id work accurately?
=A couple of things here:
1 if the field is defined
Hi Wee,
> Is it possible that I would get the wrong ID (Not the ID I just inserted in
> Auto_Increment field) by using mysql_insert_id function if someone is also
> inserting record at the same time? How does mysql_insert_id work accurately?
=A couple of things here:
1 if the field is defined
> * On 15-01-02 at 12:09
> * Yogesh Mahadnac said
>
>> Hi all! I want to develop a search engine in PHP for a
>> portal that I'm working on at the moment, and I'd be glad if
>> someone could please show me how to do it, or if anyone knows
>> of a link where i can find a tutorial for
a stable version of the template class
and other stuff PEAR-like-made are available at
http://wolfram.kriesing.de/programming
especially the _template_class_ which can also *translate* your
templates without the need of wrapping every string in a function
call or something
the translation c
Hi everyone :
I got a amagzing problem about javascipt after integrate to php. PHP will
modify the ouput of javascipt, produce the error when first load that page.
However, reload this page, no error.
Orginal javascipt:
function f31(v31,v23,ocjs,hrck,cn)
{
return "http://www.php.net/)
To u
Hi everyone,
I'm not sure what I have done wrong here. I haven't been sucessful in
finding anything that points to what the cuase could be.
What I find interesting is that I have used session in another area of the
web site with out problems. The only difference between it and the way I
have d
Posting the actual PHP doing the job would help...
Bogdan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
When you echo or print to the HTML stream, strings are delimited by " or '.
Your case, return "http://www.php.net/manual/en/language.types.string.php
Another function you might want to look at is stripslashes():
http://www.php.net/manual/en/function.stripslashes.php
--|--
Tino Didriksen
http://P
I've been trying to decode an attached image in an email using imap.
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in "imapTest.php"
on line 80
$image = trim(@imap_fetchbody($mbox, "2", "2"));
$64image = base64_encode($image);
I've also tried:
$image = trim(@imap_fetchbody($mbox,
PHP isn't totally bad for a search engine. Here's my story.
I was in a bit of a predicament when I first started work, because I had to
develop a search engine for online video objects. My company is essentially
a video re-purposing venture, where we take reams of analog, tape-based
videos, e
Anas Mughal wrote:
> I am looking into building a dynamically loadable
> module under PHP4. The documentation on extending PHP4
> is unclear or is missing instructions on how to
> generate dynamic loadable module file. I have followed
> the instructions but I can't seem to be able to create
> the
I'm stuck here too. Don't know that much in the first place except
that I did get it together once. Apache/php4/mysql on win32... Now
to upgrade it's all new again.
I'm sure php config files are ok to the point where apache picks it
up. There is no 4.1.1 file as called for in the apache
This may be more of an Apache question, but I was hoping that someone here
would have an idea about this.
I tracked down a bug in one of my scripts that was caused by environment
variable that was being registered as global without my knowledge (due to
the register_globals setting). My script
I presume you have created dynamically loadable
modules in PHP4.
If so, how do you create your module file?
Do you run a specific make command or do you build it
manually?
Thanks for your help...
--- Yasuo Ohgaki <[EMAIL PROTECTED]> wrote:
> Anas Mughal wrote:
> > I am looking into building a
At 09:32 PM 1/15/2002 -0600, Michael Sims wrote:
>On both the Redhat 7.1 servers, phpinfo() reports the following
>environment variables:
>
>user: michaels
>logname: michaels
[...]
>I'm confused as to why these variables exist. I know for a fact that
>Apache is running as "nobody". That's what
Version 3.1 of my Keep It Simple Guest Book (KISGB) has just been released.
Many major and minor enhancements. Please
visit my web site for details!
--
Gaylen
[EMAIL PROTECTED]
PHP KISGB v3.1 Guest Book http://www.gaylenandmargie.com/phpwebsite/
--
PHP General Mailing List (http://www.php.ne
How the hell do I get the content of a node
before all I had to do was go $node->content
now it doesnt seem to work.
I know they changed $node->name to $node->tagname.
I tried, content, tagcontent, value, mmm some other things. I give up,
couldnt find any info anywhere either...
theres a
How the hell do I get the content of a node
before all I had to do was go $node->content
now it doesnt seem to work.
I know they changed $node->name to $node->tagname.
I tried, content, tagcontent, value, mmm some other things. I give up,
couldnt find any info anywhere either...
theres a
Anas Mughal wrote:
> I presume you have created dynamically loadable
> modules in PHP4.
> If so, how do you create your module file?
> Do you run a specific make command or do you build it
> manually?
>
> Thanks for your help...
>
Again, read Zend API manual...
You are also interested in README
I am attempting to build a dynaminc module loadable by apache 1.3.x. But
once the (./configure, make, make install, cp php.ini-dist, configure
httpd.conf) process is complete, I restart apache, and try to access a php
page () and I am asked if I would like to download the
page, which is not the ex
This has been discussed a number of times here. Apache will always inherit
the environment of the user that starts it. You should start it with a
clean environment. ie. add "env -i" to whatever script starts your httpd
server.
-Rasmus
On Tue, 15 Jan 2002, Michael Sims wrote:
> This may be more
101 - 138 of 138 matches
Mail list logo