[PHP] mysqli fetch-fields returns blob for text

2011-01-04 Thread Mari Masuda
Hello, On http://www.php.net/manual/en/mysqli.constants.php there are some predefined constants for MYSQLI_TYPE_TINY_BLOB, MYSQLI_TYPE_MEDIUM_BLOB, MYSQLI_TYPE_LONG_BLOB, and MYSQLI_TYPE_BLOB. Through some experimentation I have found that fields in my MySQL database that are declared as

[PHP] a loop constructing the URLs and make PHP to fetch up to 100 pages [ a seven liner]

2010-10-30 Thread jobst müller
dear list - good Morning! i want to parse the site - and get the results out of it: http://www.educa.ch/dyn/79363.asp?action=search therefore i need to loop over the line 2 - don ´ i!? ?php $data = file_get_contents('http://www.educa.ch/dyn/79363.asp?action=search'); $regex = '/Page 1 of

[PHP] Newibie: fetch Obj question - data not showing.

2009-04-05 Thread MEM
Hello, 1) Ok, with mysqli, to fetch data from a database to a select drop down list, we would do something like this right? : ?php $result = $mysqli-query(SELECT id_cliente, nome_cliente FROM cliente); echo select id='listacliente' name='listacliente'; while($row =

Re: [PHP] Newibie: fetch Obj question - data not showing.

2009-04-05 Thread 9el
On Sun, Apr 5, 2009 at 10:08 PM, MEM tal...@gmail.com wrote: Hello, 1) Ok, with mysqli, to fetch data from a database to a select drop down list, we would do something like this right? : ?php $result = $mysqli-query(SELECT id_cliente, nome_cliente FROM cliente); echo select

RE: [PHP] Newibie: fetch Obj question - data not showing.

2009-04-05 Thread MEM
why did you forget to use the debugging functions : print_r() and var_dump() for the results? So, you'll get some idea beforehand of posting the problem here. I am looking at the code in a hurry so I cant help you much right away. Lenin http://www.twitter.com/nine_L www.twitter.com/nine_L

Re: [PHP] Newibie: fetch Obj question - data not showing.

2009-04-05 Thread 9el
Because I’ve never debug on my entire life of programming (2 months). :D In the meanwhile, I will search how to debug using print_r and var_dump. ROFL ha hahaha echo 'pre', print_r($array),'/pre'; // here pre is used to keep the way its outputed in HTML echo 'pre',

RE: [PHP] Newibie: fetch Obj question - data not showing.

2009-04-05 Thread MEM
On Behalf Of 9el On Sun, Apr 5, 2009 at 10:08 PM, MEM mailto:tal...@gmail.com tal...@gmail.com wrote: Hello, 1) Ok, with mysqli, to fetch data from a database to a select drop down list, we would do something like this right? : ?php $result = $mysqli-query(SELECT id_cliente, nome_cliente

Re: [PHP] Scrape? (Fetch email)

2007-11-12 Thread tedd
I haven't used GA (probably the only web guy left in the world), but if it has an email feature like Stut mentioned, Tedd, you could run it through a piped-to-PHP email-parsing script. That's the idea. I can send the email from Google to a specific email address. Now, how can I get php

Re: [PHP] Scrape? (Fetch email)

2007-11-12 Thread Daniel Brown
Google to a specific email address. Now, how can I get php to fetch the email? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Scrape? (Fetch email)

2007-11-12 Thread tedd
. That's the idea. I can send the email from Google to a specific email address. Now, how can I get php to fetch the email? Cheers, tedd -- It doesn't have to fetch the email. /etc/localalises (or equivalent) Add: google-analytics: |/path/to/script.php Then just have mail

Re: [PHP] Scrape? (Fetch email)

2007-11-12 Thread Jake
script. That's the idea. I can send the email from Google to a specific email address. Now, how can I get php to fetch the email? Cheers, tedd -- It doesn't have to fetch the email. /etc/localalises (or equivalent) Add: google-analytics: |/path/to/script.php Then just have mail

[PHP] odbc fetch array issues

2004-11-16 Thread Adil
Hey people, Anyone know much about odbc_fetch_array() or odbc_fetch_object() functions in php. My while loop keeps breaking while using this function. I'm trying to grab a row from the result returned by the database query and for testing purposes, just printing out each item in the row as

RE: [PHP] odbc fetch array issues

2004-11-16 Thread Jay Blanchard
[snip] $sql = SELECT * FROM users WHERE username='$username' AND password='$password'; $result = odbc_exec($dbConnection, $sql); while ($rows = odbc_fetch_array($result)) { //This doesn't work with odbc_fetch_object either print $rows-COLUMNNAME; } [/snip] For odbc_fetch_array you

Re: [PHP] Web Fetch Process

2004-09-06 Thread Zoran
Hi How can I parse HTML page which I fetched by PHP so some part of text would be replaced by other text. Also, I managed to delete all HTML code from page (with this code $data[0] = preg_replace(/([])+([^])+([.])*([])+/i,, $data[0]); but also would like to delete all chars except numbers from

[PHP] Web Fetch Process

2004-09-03 Thread Zoran
Hi How can I parse HTML page which I fetched by PHP so some part of text would be replaced by other text. For example, if I have bold text on HTML page (bSome text/b) how can I manage that all bold text on that page is replaced by some other text. Also, I managed to delete all HTML code from

Re: [PHP] Web Fetch Process

2004-09-03 Thread Jim Grill
From: Zoran [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 03, 2004 12:35 PM Subject: [PHP] Web Fetch Process Hi How can I parse HTML page which I fetched by PHP so some part of text would be replaced by other text. For example, if I have bold text on HTML page (bSome text/b

Re: [PHP] Web Fetch Process

2004-09-03 Thread raditha dissanayake
Zoran wrote: Hi How can I parse HTML page which I fetched by PHP so some part of text would be replaced by other text. As jim has pointed out strip_tags is a good first step. However I have always believed that the best language for parsing html is perl and not PHP that's because there is a

Re: [PHP] Web Fetch Process

2004-09-03 Thread Jim Grill
Zoran wrote: Hi How can I parse HTML page which I fetched by PHP so some part of text would be replaced by other text. As ucfirst(jim) has pointed out strip_tags is a good first step. However I have always believed that the best language for parsing html is perl and not PHP that's

[PHP] Re: Fetch Information Via a link

2003-12-22 Thread Eric Holmstrom
Thankyou, put me on the right track :) Jasper Bryant-Greene [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Eric What you need to do is make another PHP page, maybe info.php, which will fetch the info field from the DB and display it. So for example, assuming the eventname

[PHP] Re: Fetch Information Via a link

2003-12-21 Thread Jasper Bryant-Greene
Hi Eric What you need to do is make another PHP page, maybe info.php, which will fetch the info field from the DB and display it. So for example, assuming the eventname field is unique, you could make the info like something like: a

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-18 Thread Arne Rusek
On Mon, 17 Nov 2003 15:30:43 +, Curt Zirzow wrote: * Thus wrote Arne Rusek ([EMAIL PROTECTED]): Your problem exists here: Server API = Command Line Interface _ENV[SERVER_SOFTWARE] = Boa/0.94.13 Seeing this tells me your webserver is not configured correctly, Boa should not be using

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-17 Thread Kim Steinhaug
I dont see the problem here at all, here is my test : CutNpaste into your own environment ans save as .php file . All I did was remove the php_info() so that variables dont get messed up (apparently), and removed the error_reporting. Result gives this : array(3) { [username]= string(3) 123

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-17 Thread Ivan Marenic
Hi, Kim. Your example is good but you missed the point here. Chris knows exactly where my problem is. Sending HTTP POST from mobile device is a bit different than using classic web client. It shouldnt be, but it is. Data is going trough WAP gateways, mobile operators proxeis ... Worst case

[PHP] Re: thanks for the summary (was Re: [PHP] Can't fetch ...)

2003-11-17 Thread David T-G
Ivan -- ...and then Ivan Marenic said... % % Sending HTTP POST from mobile device is a bit different than using classic % web client. It shouldnt be, but it is. Ouch. How very interesting. I had missed that through this thread, so I'm really grateful for the summary. I'm even more grateful

[PHP] Re: thanks for the summary (was Re: [PHP] Can't fetch ...)

2003-11-17 Thread Kim Steinhaug
Alrighty! That sheds some more light on this. How exactly can I replicate this scenario then, using my mobile phone? I have a Nokia 3610i i think, with MMS capabilituies and GPRS WAP. Ive never accually thought of expanding website possibilities with this use, how excatly do I post from my

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-17 Thread Curt Zirzow
* Thus wrote Arne Rusek ([EMAIL PROTECTED]): If someone is interested in reading through the whole result it could be downloaded from http://zonk.matfyz.cz/php_post_problem Your problem exists here: Server API = Command Line Interface _ENV[SERVER_SOFTWARE] = Boa/0.94.13 Seeing this

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-17 Thread Curt Zirzow
* Thus wrote Ivan Marenic ([EMAIL PROTECTED]): I did not omit content. Copied whole text box in sniffer using context menu comands (select all, copy) - pasted to news agent. There is no content. I didn't see the output of phpinfo or your print_r(). that leads me to believe that your sniffer

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-16 Thread Arne Rusek
Hello. On Sat, Nov 15, 2003 at 05:31:01PM -0800, Chris Shiflett wrote: That does seem strange. I glanced at this page of yours: http://zonk.matfyz.cz/php_post_problem And I saw this: REQUEST_METHOD = GET So, why was the request a GET request rather than a POST request? There is no

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-16 Thread Ivan Marenic
Solved all my problems with PERL. Cheers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-16 Thread David T-G
Ivan -- ...and then Ivan Marenic said... % % Solved all my problems with PERL. Perl can be handy that way sometimes :-) Care to tell us what the fix was, though, so that 1) future surfers can know and 2) interested folks here might suggest how PHP can do it? % % Cheers. TIA HTH HAND

[PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
Any idea why? I am sending HTTP post request from j2me mobile device. Request is OK because it works well on ASP page. Thanks for help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Chris Shiflett
--- Ivan Marenic [EMAIL PROTECTED] wrote: Any idea why? I am sending HTTP post request from j2me mobile device. Request is OK because it works well on ASP page. You have to provide some information if you want anyone to help you. Chris = Chris Shiflett - http://shiflett.org/ PHP

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
Here is j2me code snippet: byte[] postData=This is my test line! It works! Yipi-Yai-Yee!!!.getBytes(); try{ c = (HttpConnection)Connector.open(url_post); c.setRequestMethod(HttpConnection.POST); c.setRequestProperty( User-Agent, Profile/MIDP-1.0

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
Here is ASP code that works. Dim binread Dim bytecount bytecount = Request.TotalBytes binread = Request.BinaryRead(bytecount) 'Send response back to client Response.BinaryWrite binread -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Chris Shiflett
--- Ivan Marenic [EMAIL PROTECTED] wrote: Here is j2me code snippet: I try to avoid all of the crap that begins with the letter J, but your example code looks like you are sending a POST request. Here is PHP code snippet: // Show any post vars, but nothing shows - never!

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
This looks you are expecting to receive a POST request with PHP. So, are you wanting to send one or receive one? Receive one. Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Ivan Marenic [EMAIL PROTECTED] wrote: Here is j2me code snippet: I try to avoid all

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Chris Shiflett
--- Ivan Marenic [EMAIL PROTECTED] wrote: This looks you are expecting to receive a POST request with PHP. So, are you wanting to send one or receive one? Receive one. Is it possible for you to show us the HTTP request that is failing? It is possible that it is malformed in some way that

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
Is it possible for you to show us the HTTP request that is failing? It is possible that it is malformed in some way that is fine with some Web servers and not with others. That may be possible but I am testing ASP i PHP(4.3.2) on same server IIS 5.0, localy. Can't sniff that (Network adapter

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Chris Shiflett
--- Ivan Marenic [EMAIL PROTECTED] wrote: Here is failed POST REQUEST to that server: * POST /http_post.php HTTP/1.1 User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0 Host: www.milleniumtip.com:80 Content-Disposition: attachment; name=userfile;

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Ivan Marenic
I did not omit content. Copied whole text box in sniffer using context menu comands (select all, copy) - pasted to news agent. There is no content. However, when using local server, on my desktop, I assume there is content because I am getting response from ASP page with exact data wich is sent

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Arne Rusek
Hello. I read throughout this thread and it looks like I have encountered the same problem. Everything looks just fine but somehow the PHP does not parse the request data sent to the script. I did some research on that but gave up since I couldn't find how and where those data were parsed. But

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Chris Shiflett
--- Arne Rusek [EMAIL PROTECTED] wrote: I used this form: form action=test.php method=POST Your name: input type=text name=username/br/ Email: input type=text name=email//br input type=submit name=submit value=Submit me! /form The test.php script contained this code:

Re: [PHP] Re: fetch then put record?

2003-06-15 Thread Don Read
On 10-Jun-2003 Jean-Christian Imbeault wrote: [reply to a personal email posted here for the benefit of all :)] snip This bugs me because my db has 125 fields and it will be a very long sql string! I bet! The form page generates form contents by using a while loop. How

[PHP] Re: fetch then put record?

2003-06-09 Thread Jean-Christian Imbeault
Steve B. wrote: Hello, In ASP you can set records fields then call a dbupdate function. There is no such function in PHP. It appears mysql only supports update with the UPDATE query? Huh ... MySQL is a database. It understands SQL. dbupdate() is an ASP function ... don't blame MySQL if it

[PHP] Re: fetch then put record?

2003-06-09 Thread Jean-Christian Imbeault
[reply to a personal email posted here for the benefit of all :)] Are you sure you can't? Yes. Could ASP do something that MySQL/SQL can't? You confusing apples and oranges ... ASP is not a database. You should be comparing ASP to PHP. So the short answer is PHP does not have an equivalent

[PHP] MySQL fetch data

2002-06-27 Thread Jefferson Cowart
Is there any way to return all the rows returned by a mysql query with one command. Currently I have to run through a for or while loop the same number of times as there are rows and take that row and copy it to an array. I end up with an array of arrays but it seems like it would be a common

Re: [PHP] MySQL fetch data

2002-06-27 Thread Jason Wong
On Thursday 27 June 2002 16:20, Jefferson Cowart wrote: Is there any way to return all the rows returned by a mysql query with one command. I don't think there is a built-in command to do so. Currently I have to run through a for or while loop the same number of times as there are rows

RE: [PHP] MySQL fetch data

2002-06-27 Thread John Holmes
Is there any way to return all the rows returned by a mysql query with one command. Currently I have to run through a for or while loop the same number of times as there are rows and take that row and copy it to an array. I end up with an array of arrays but it seems like it would be a

Re: [PHP] MySQL fetch data

2002-06-27 Thread Chris Hewitt
Jefferson, I am wondering why you would want to do this. If you get the sql statement to order the rows the way you need to use them then there should not be a need to refer back to earlier rows. I sometimes need to know if one field has the same value as in the previous record, so I keep

Re: [PHP] MySQL fetch data

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 04:20 AM, Jefferson Cowart wrote: Is there any way to return all the rows returned by a mysql query with one command. Currently I have to run through a for or while loop the same number of times as there are rows and take that row and copy it to an array. I

[PHP] Sybase Fetch Array Question

2002-06-24 Thread B i g D o g
Can someone let me know when you call sybase_fetch_array that the internal row pointer of the sybase result is increased. So that subsequent calls using sybase_fetch_array will return a result 1 more than the previous result return? Okay that was weird B i g D o g -- PHP General

Re: [PHP] Sybase Fetch Array Question

2002-06-24 Thread 1LT John W. Holmes
Can someone let me know when you call sybase_fetch_array that the internal row pointer of the sybase result is increased. So that subsequent calls using sybase_fetch_array will return a result 1 more than the previous result return? Hey, I just wanted to let you know that when you call

[PHP] mysql fetch field

2002-03-17 Thread caspar kennerdale
I seem to be getting unexpected information from a mysql fetch field query. My table has three fields- here is the schema- CREATE TABLE template ( id smallint(6) NOT NULL auto_increment, name mediumtext NOT NULL, multiple tinyint(4) DEFAULT '0' NOT NULL, PRIMARY KEY (id), UNIQUE

RE: [PHP] mysql fetch field

2002-03-17 Thread caspar kennerdale
Actually I've alreasdy worked it out- sorry -Original Message- From: caspar kennerdale [mailto:[EMAIL PROTECTED]] Sent: 17 March 2002 10:31 To: [EMAIL PROTECTED] Subject: [PHP] mysql fetch field I seem to be getting unexpected information from a mysql fetch field query. My table has

[PHP] no fetch

2001-04-24 Thread Wilbert Enserink
Hello everybody, I'm just starting out with php4 and I can use some help. Below is a script I wrote. The dbase connections are allright (i have tested them) , but the final result is 'no fetch'. so something goes wrong in 'mysql_fetch_row' but I don't understand what. Any of you have an idea?