I made a mistake:
$id = $myrow["id"];
should read:
$id[] = $myrow["id"];
-Original Message-
From: Romulo Roberto Pereira [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 3:04 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] baffled :<:<
even better:
use foreach!
$id = $myrow["id
That's too easy!
Chris
Romulo Roberto Pereira wrote:
> Even better,
>
> $id[] = $myrow["id"];
>
> then count them:
>
> for ($i=0;$i < count($id);$i++) {
> ..
> }
>
> Rom
> -Original Message-
> From: Chris Fry [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 17, 2001 3:00 AM
> To: Mark
even better:
use foreach!
$id = $myrow["id"];
..
foreach ($id as $loop) {
..
}
-Original Message-
From: Chris Fry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 3:00 AM
To: Mark Maggelet
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] baffled :<:<
This loop will
In article <012101c0c69b$b01b8d00$8b1412d1@null>,
[EMAIL PROTECTED] ("Chris Anderson") wrote:
> I tried it, even with the byte length identifer it worked perfectly for me.
> As a last ditch effort try changing the w to w+. If not then it sounds like
> a configuration issue for the webserver or p
Even better,
$id[] = $myrow["id"];
then count them:
for ($i=0;$i < count($id);$i++) {
..
}
Rom
-Original Message-
From: Chris Fry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 3:00 AM
To: Mark Maggelet
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] baffled :<:<
This loop will only return the last record from the db as the variables are
getting overwritten each time through the loop. It would make more sense to
make each variable an array eg:
$id[$i] = $myrow["id"];
or do something with each set of info inside the loop.
Chris
Mark Maggelet wrote:
> O
Hello,
I was wondering if anybody have developed something related to dynamic web
pages building and administration. I need to store the content of the site
in the database and later as the user navigate, mount the content using
templates. This part is easy, since PHP is very powerfull in this ar
On Tue, 17 Apr 2001 15:59:37 +1000, Peter Houchin
([EMAIL PROTECTED]) wrote:
>can any one see a problem with this loop?
>
> $db = include"connect.inc";
>$foo = "SELECT * FROM 6pci WHERE card='$card' ORDER BY card";
>
> $result = mysql_query($foo,$db);
>
>
>while ( ($myrow = mysql_fetch_array($res
You didn't really say that in your initial post :-) So, what you mean is
that the db line is not what you actually have in your script? The what
do you really have? Just by looking at the script you posted, the reason
it doesn't work certainly seems to be the invalid database handler. If
you have
php-general Digest 17 Apr 2001 06:35:37 - Issue 632
Topics (messages 48788 through 48902):
How do i include ASP script into PHP...??!
48788 by: Joe Truong
48813 by: Plutarck
48814 by: Kurth Bemis
48817 by: Phil Driscoll
48833 by: Seung-woo Nam
I've seen a number of requests for info on this subject with no answers.
Is anyone working on a tn (Telnet) screen scrapper connectivity toolset for
PHP?
How about tn3270?
Warren Vail
Availabletech.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
yes i know it was mearly there to show i had it in my script as i said in my initial
post i could get info from the db, just not in the while loop
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 4:08 PM
To: Peter Houchin
Cc: Php-Gene
> $db = include"connect.inc";
includes do not return anything useful, so this is a bogus statement.
> $foo = "SELECT * FROM 6pci WHERE card='$card' ORDER BY card";
>
> $result = mysql_query($foo,$db);
An include certainly cannot return a database handle. Included files
operate in the same var
Peter Houchin wrote:
> what about if you assign the key to = the id (if in a data base)?
>
> maybe like
>
> while (list ($key, $val) = each ($id)) {
> if ( $key != "Submit" ) {
>
>>array_push($input, $val);
>>}
>>
>> }
>
I am not using a database for this part as I am just collect
can any one see a problem with this loop?
if i call say just $card it only displays the one record (the last one), the minute i
try to call $myrow["card"]; i get nothing at all... any idea's?
I have script identical to this that works perfectly .. only difference is this one
has diff
what about if you assign the key to = the id (if in a data base)?
maybe like
while (list ($key, $val) = each ($id)) {
if ( $key != "Submit" ) {
>array_push($input, $val);
>}
>
> }
-Original Message-
From: Joseph Blythe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, A
Peter Houchin wrote:
> maybe tring this ...
> $input = array();
>
> reset ($HTTP_POST_VARS);
>
> while ( list($key, $val) = each($HTTP_POST_VARS) ) {
>if ( $key != "Submit" ) {
>array_push($input, $val);
>}
>
> }
Hmm, as far as I can see this will just reset the internal pointe
I do not know much about the PHP, but somewhere I remember reading following :
' If there is no specific reason to use PHP as CGI and web server which you
are using is supporting PHP as module then go for 'Module' . This gives
better performance'
manisha
--
PHP General Mailing List (http
maybe tring this ...
$input = array();
reset ($HTTP_POST_VARS);
while ( list($key, $val) = each($HTTP_POST_VARS) ) {
if ( $key != "Submit" ) {
array_push($input, $val);
}
}
Peter
-Original Message-
From: Joseph Blythe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
ooops - sorry about the other e-mail... I am sleeping here... heheheeh
Hello!
Any comments in PHP for Zope? I don't know much though... Some people told
me that Zope is good a while ago... And I saw that now they have a PHP
layer... How good is zope?
Thank you,
Rom
--
PHP General Mailing Lis
Hello!
Any comments in PHP for Zope? I don't know much thought... Some people told
me that Zope is good a while ago... And I saw that know they have a PHP
layer... How good is this?
Thank you,
Rom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hey all,
I was just trying to figure out something that should be quite simple
but seems to be eluding me,
consider the following:
$input = array();
while ( list($key, $val) = each($HTTP_POST_VARS) ) {
if ( $key != "Submit" ) {
array_push($input, $val);
}
}
Ok fine, I now have an a
On Mon, 16 Apr 2001, Sterling Hughes wrote:
>>
>> -#ifndef HAVE_DBMAKER
>> -if ((*pv_onoff)) {
>> -#else
>> if (pv_onoff && (*pv_onoff)) {
>> -#endif
>> convert_to_long_ex(pv_onoff);
>> rc = SQLSetConnectOption(conn->hdbc, SQL_AUTOCOMMIT,
>>
You'll probably won't get to see the now :-<.
__John Monfort_
_+---+_
P E P I E D E S I G N S
www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-
On Mon, 16 Apr 2001, Mark Ma
Does the variable $php_self work in PHP3? I am helping a friend with some
forms, and their host still uses PHP3.
Thanks.
--
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 administra
RE: PHP as a CGI or Module
This has been discussed some but I am interested to see if one is more
popular then the other. My experience has been most people run PHP as a
apache module but is there a specific benefit to run it as a cgi
program? What about very large servers such as web hosts?
Hits my head over walls bench tops thru doors
Sorry every one for waisting ur time ... i found my mistake & what a silly mistake it
was too
.. continuing to hit my head over hard objects
Peter
According to the documentation http://php.net/manual/en/function.mysql-result.php
mysql_result takes 2 and an optional third parameter. The second parameter should be
the row number.
- Frank
> Hi, can some one please help me figure out why the value $device isn't being passed
>on out of the s
> $device = mysql_result($rs); // line 19
mysql_result expects the result set, the row number and the field name.
You should not need this, anyway.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
Hi Peter,
@ 11:40:06 PM on 4/16/2001, Peter Houchin wrote:
> Hi, can some one please help me figure out why the value $device
> isn't being passed on out of the select box? i keep getting this
> message when i view the source
(OK, lets try this again)
> Wrong parameter count for mysql_result()
Previously, Miguel Carvalho said:
> if a do
> ldapsearch -o ",o=xyz" "ent=entry1,uid=ldap,ou=People,o=xyz", it
> works just fine.
>
> How can i access the entry "ent=entry1,uid=ldap,ou=People,o=xyz" using
> ldap_search/ldap_list or ldap_read?
>
> I have tried ldap_search... but i can not fi
Hi, can some one please help me figure out why the value $device isn't being passed on
out of the select box? i keep getting this message when i view the source
Wrong parameter count for mysql_result() in D:\erentals/1.php on line 19
'.$row[device].'';
}
?>
> This should be breaking something, no?
>
> Either way an "if" statement is started therefore it needs to be finished.
it's there, it's just the next line down (didn't make it into the cvs
diff as i didn't change it) honest!
it should be seen in the file as:
rc = SQLSetConnectOption(conn->h
On Mon, 16 Apr 2001 20:00:27 -0700, Dddogbruce \(@home.com\)
([EMAIL PROTECTED]) wrote:
>Whistler's cool!
Yeah, and a php job at a ski resort?! Hmm, that's way too good to be
true.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
On Tue, 17 Apr 2001, Dan Kalowsky wrote:
> kalowsky Mon Apr 16 19:02:36 2001 EDT
>
> Modified files:
> /php4/ext/odbcphp_odbc.c
> Log:
> This change seems to fix bugs 7158, 7807, 8531, and 8636. After asking why this
>patch was applied no one seemed to respond with an
Hi Brian,
@ 11:14:55 PM on 4/16/2001, Brian Clark wrote:
>> fwrite( $fp, "fwrite( $fp, " ^^^
> Remove the quotation mark.
Duh, Brian. You have an extra fwrite($fp) in there.
-Brian
--
PGP is spoken here: 0xE4D0C7C8
Please, DO NOT carbon copy me on list replies.
Previously, Dddogbruce (@home.com) said:
>
> fwrite( $fp, "fwrite( $fp, "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]
Hi Dddogbruce,
@ 10:58:47 PM on 4/16/2001, Dddogbruce (@home.com) wrote:
> Ok, I know it's messy - no, I don't care. :P
> Parse error: parse error in C:/XITAMI/owen/website/tss/guestbookSG.php
> on line 43
...
> $space = " ";
> if( $submitfrm )
> {
> echo "your entry will be added shortly."
Whistler's cool!
--
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]
Ok, I know it's messy - no, I don't care. :P
Parse error: parse error in C:/XITAMI/owen/website/tss/guestbookSG.php
on line 43
the southern side : owen : mmmHm