RE: [PHP] baffled :<:

2001-04-16 Thread Romulo Roberto Pereira
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

Re: [PHP] baffled :<:

2001-04-16 Thread Chris Fry
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

RE: [PHP] baffled :<:

2001-04-16 Thread Romulo Roberto Pereira
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

Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-16 Thread CC Zona
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

RE: [PHP] baffled :<:

2001-04-16 Thread Romulo Roberto Pereira
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 :<:<

Re: [PHP] baffled :<:

2001-04-16 Thread Chris Fry
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

[PHP] Dynamic built web pages administration

2001-04-16 Thread Romulo Roberto Pereira
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

Re: [PHP] baffled :<:

2001-04-16 Thread Mark Maggelet
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

Re: [PHP] baffled :<:

2001-04-16 Thread Seung-woo Nam
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 -0000 Issue 632

2001-04-16 Thread php-general-digest-help
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

[PHP] Telnet from PHP

2001-04-16 Thread Warren Vail
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]

RE: [PHP] baffled :<:

2001-04-16 Thread Peter Houchin
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

Re: [PHP] baffled :<:

2001-04-16 Thread Rasmus Lerdorf
> $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

Re: [PHP] array_push but with key, value pairs

2001-04-16 Thread Joseph Blythe
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

[PHP] baffled :<:

2001-04-16 Thread Peter Houchin
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

RE: [PHP] array_push but with key, value pairs

2001-04-16 Thread Peter Houchin
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

Re: [PHP] array_push but with key, value pairs

2001-04-16 Thread Joseph Blythe
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

Re: [PHP] cgi vs. module

2001-04-16 Thread Manisha
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

RE: [PHP] array_push but with key, value pairs

2001-04-16 Thread Peter Houchin
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,

[PHP] ooops PHP for Zope

2001-04-16 Thread Romulo Roberto Pereira
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

[PHP] ZOPE PHP

2001-04-16 Thread Romulo Roberto Pereira
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

[PHP] array_push but with key, value pairs

2001-04-16 Thread Joseph Blythe
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

Re: [PHP-CVS] cvs: php4 /ext/odbc php_odbc.c

2001-04-16 Thread Jani Taskinen
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, >>

Re: [PHP] Job in Whistler, BC

2001-04-16 Thread John Monfort
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

[PHP] PHP3 and PHP_SELF

2001-04-16 Thread Alan Ward
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

[PHP] cgi vs. module

2001-04-16 Thread Franklin Hays
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?

[PHP] IGNORE " Wrong parameter count Please"

2001-04-16 Thread Peter Houchin
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

Re: [PHP] Wrong parameter count

2001-04-16 Thread Frank M. Kromann
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

RE: [PHP] Wrong parameter count

2001-04-16 Thread Jason Murray
> $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

Re: [PHP] Wrong parameter count

2001-04-16 Thread Brian Clark
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()

Re: [PHP] ldap_search...no results!

2001-04-16 Thread Dan Lowe
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

[PHP] Wrong parameter count

2001-04-16 Thread Peter Houchin
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].''; } ?>

Re: [PHP-CVS] cvs: php4 /ext/odbc php_odbc.c

2001-04-16 Thread Dan Kalowsky
> 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

Re: [PHP] Job in Whistler, BC

2001-04-16 Thread Mark Maggelet
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

Re: [PHP-CVS] cvs: php4 /ext/odbc php_odbc.c

2001-04-16 Thread Sterling Hughes
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

Re: [PHP] Parse error - script help.

2001-04-16 Thread Brian Clark
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.

Re: [PHP] Parse error - script help.

2001-04-16 Thread Dan Lowe
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]

Re: [PHP] Parse error - script help.

2001-04-16 Thread Brian Clark
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."

Re: [PHP] Job in Whistler, BC

2001-04-16 Thread Dddogbruce \(@home.com\)
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]

[PHP] Parse error - script help.

2001-04-16 Thread Dddogbruce \(@home.com\)
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