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
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
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 =
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
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
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',
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
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
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
.
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
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
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
[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
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
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
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
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
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
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
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
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
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
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
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
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
* 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
* 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
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
Solved all my problems with PERL.
Cheers.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
--- 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
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
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
--- 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!
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
--- 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
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
--- 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;
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
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
--- 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:
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
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
[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
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
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
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
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
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
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
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
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
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
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?
55 matches
Mail list logo