[PHP-DB] Multi queries with ODBTP

2004-04-12 Thread Juan Torres
Hi,

I have a problem with ODBTP extension. If I have two (or more) odbtp_query,
the first odbtp_query is lost by second odbtp_query.

When I put:
$l_rst = odbtp_query($l_str_sql, $l_cnn);
print (odbtp_query_id($l_rst));

Always print value '0'.

Can anybody help me? I want have two (or more) odbtp_query for a
odbtp_connection.

Thanks you!

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] RE:OFFER

2004-04-12 Thread BAPET OILS LIMITED

DEAR SIR/MADAM

we are interested to go into any kind of business with you,find below
is our proposal for your perusal please we expect that you also forward
yours to us immediately.

Message :

ATTENTION:
   CRUDE OIL FOR SALE.
PLEASE IF YOU ARE INTRESTED OR HAS SOME ONE WHO IS READY TO BUY PLEASE
CONTACT US IMMEDIATELY.
  WE ALSO WANT TO INFORM YOU THAT MY COMPANY ALSO DEALS WITH ANY KIND
OF MINERAL
RESOURCES,TELECOMUNICATION AND CONTRACTS OF ALL KIND.
PLEASE IF YOU THINK THERE IS ANY OF YOUR PRODUCTS THAT CAN BE OF GOOD
TO US, WE CAN USE IT AND ALSO MARKET IT FOR YOU HERE,PLEASE DO NOT
HESSITATE TO CONTACT US ,AS  WE WILL EITHER PURCHASE IT OR CONTACT WHO WILL.
WE CAN ALSO BE YOUR BUISNESS REPRESENTATIVE AND DISTRIBUTOR HERE.

THANKS VERY MUCH AND GOD BLESS,WE PRAY GOD BLESS YOU RICHLY.

BEST REGARDS

MS JUDITH

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] get rid of the HTML tags

2004-04-12 Thread Bruno Braga
Hi all.

 

I have this string:

 

$my_string = bhello world/ba href='teste.php'this is a test for a
link with a image img src='test.jpg'/a

 

Is there any function that retrieves only the string without the html tags?!
-- Hello world this is a test link with a image

 

 

Thx for ya help

Bruno, Portugal

 



Re: [PHP-DB] get rid of the HTML tags

2004-04-12 Thread Bruno Ferreira
Bruno Braga wrote:

Is there any function that retrieves only the string without the html tags?!
-- Hello world this is a test link with a image
 

   strip_tags()
---
[This E-mail scanned for viruses by Declude Virus]
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] get rid of the HTML tags

2004-04-12 Thread Daniel Clark
Try strip_tags()

http://www.phpbuilder.com/manual/function.strip-tags.php


 I have this string:

 $my_string = bhello world/ba href='teste.php'this is a test for a
 link with a image img src='test.jpg'/a

 Is there any function that retrieves only the string without the html
 tags?!

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] [PMX:55%] Re: [PHP-DB] get rid of the HTML tags

2004-04-12 Thread Mignon Hunter
Why are my posts not getting through?  I got 3 Delivery Report Failures on Thursday 
all due to 

Diagnostic was Unable to transfer, Message timed out
Information Message timed out

 Daniel Clark [EMAIL PROTECTED] 04/12/04 11:54AM 
Try strip_tags()

http://www.phpbuilder.com/manual/function.strip-tags.php 


 I have this string:

 $my_string = bhello world/ba href='teste.php'this is a test for a
 link with a image img src='test.jpg'/a

 Is there any function that retrieves only the string without the html
 tags?!

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php 

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] [PMX:55%] Re: [PHP-DB] get rid of the HTML tags

2004-04-12 Thread Mignon Hunter
Yes - they are from [EMAIL PROTECTED]



 Hutchins, Richard [EMAIL PROTECTED] 04/12/04 12:09PM 
Mignon,

Are you getting the delivery report failures from [EMAIL PROTECTED] 
I get those almost every day and I'm never really sure if my posts get
through either (although I think they do). If you're getting these
bouncebacks from the btconnect.com server, then maybe this is a problem that
is more widespread than you and I and should be brought to the attention of
the list admin?

Rich Hutchins

 -Original Message-
 From: Mignon Hunter [mailto:[EMAIL PROTECTED] 
 Sent: Monday, April 12, 2004 1:06 PM
 To: [EMAIL PROTECTED] 
 Subject: [PHP-DB] [PMX:55%] Re: [PHP-DB] get rid of the HTML tags
 
 
 Why are my posts not getting through?  I got 3 Delivery 
 Report Failures on Thursday all due to 
 
 Diagnostic was Unable to transfer, Message timed out
 Information Message timed out
 
  Daniel Clark [EMAIL PROTECTED] 04/12/04 11:54AM 
 Try strip_tags()
 
 http://www.phpbuilder.com/manual/function.strip-tags.php 
 
 
  I have this string:
 
  $my_string = bhello world/ba href='teste.php'this is 
 a test for a
  link with a image img src='test.jpg'/a
 
  Is there any function that retrieves only the string 
 without the html
  tags?!
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php 
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php 
 
 

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] [PMX:55%] Re: [PHP-DB] get rid of the HTML tags

2004-04-12 Thread Daniel Clark
I've been getting the same errors, sometimes days latter.

 Why are my posts not getting through?  I got 3 Delivery Report Failures on
 Thursday all due to

 Diagnostic was Unable to transfer, Message timed out
 Information Message timed out


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] getting one line of info at a time

2004-04-12 Thread Hull, Douglas D
1. I have a regular html textarea field for a person to enter in words with a carriage 
return after each word.  In PHP how would I go about getting one line (or word) at a 
time?  Then I will be needing to get character by character.

2. I will then be searching my database to get matching values in order to do other 
things.

But at the moment I am jus trying to figure #1 out.

Thanks for any help.
Doug

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] getting one line of info at a time

2004-04-12 Thread Galbreath, Mark A
Find out what the hex is for a carriage return and use strtok() to get an
array of words, then use strlen to get the number of chars in each array
element, and use array_pop() or array_shift(), iterating over the strlen, or
test for NULL for each element in the array..

Mark

-Original Message-
From: Hull, Douglas D [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 4:45 PM
To: Note To php mysql List (E-mail)
Subject: [PHP-DB] getting one line of info at a time


1. I have a regular html textarea field for a person to enter in words with
a carriage return after each word.  In PHP how would I go about getting one
line (or word) at a time?  Then I will be needing to get character by
character.

2. I will then be searching my database to get matching values in order to
do other things.

But at the moment I am jus trying to figure #1 out.

Thanks for any help.
Doug

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] getting one line of info at a time

2004-04-12 Thread Galbreath, Mark A
Ooops, got lost in the thought

$text_area = $_POST[ textarea ];
$str = strtok( $text_area, \o );

while( !( $str === FALSE )) {
$text_array[] = $str;
}

for( $i = 0; $i  count( $text_array ); $i++ ) {

for( $j = 0; $j  stlen( $text_array[ $i ]) {
$char = substr( $array_elelment[ $i ], $j );
printf( $char );
}

-Original Message-
From: Galbreath, Mark A 
Sent: Monday, April 12, 2004 5:06 PM
To: 'Hull, Douglas D'; 'Note To php mysql List (E-mail)'
Subject: RE: [PHP-DB] getting one line of info at a time


Find out what the hex is for a carriage return and use strtok() to get an
array of words, then use strlen to get the number of chars in each array
element, and use array_pop() or array_shift(), iterating over the strlen, or
test for NULL for each element in the array..

Mark

-Original Message-
From: Hull, Douglas D [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 4:45 PM
To: Note To php mysql List (E-mail)
Subject: [PHP-DB] getting one line of info at a time


1. I have a regular html textarea field for a person to enter in words with
a carriage return after each word.  In PHP how would I go about getting one
line (or word) at a time?  Then I will be needing to get character by
character.

2. I will then be searching my database to get matching values in order to
do other things.

But at the moment I am jus trying to figure #1 out.

Thanks for any help.
Doug

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] getting one line of info at a time

2004-04-12 Thread David T-G
Doug --

...and then Hull, Douglas D said...
% 
% 1. I have a regular html textarea field for a person to enter in words with a 
carriage return after each word.  In PHP how would I go about getting one line (or 
word) at a time?  Then I will be needing to get character by character.

You'll get it all because the user will type in as many entries as he
will and then hit the submit button and it all comes to you.

Or were you thinking of some javascript on your page to do things one
word at a time?  [One word about that: YUCK! :-]

If your page looks like

  form action='/path/to/script.php' method='POST'
Type your words:br
textarea cols='20' rows='4' name='ta'
/textareabr
Now type some words here:br
input type='test' size='20' name='i'br
input type='submit' value='Click!'
  /form

and you feed

  a
  b
  c

and

  a b c

to the fields then your script will have something like

  Array
  (
  [ta] = a
  b
  c
  [i] = a b c
  )

for its input.  You can just use a foreach to walk through the list, or
explode based on newlines for multiword input, or whatever you need to do.


HTH  HAND

:-D
-- 
David T-G
[EMAIL PROTECTED]
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature