[PHP] Modulus Formatting

2001-02-05 Thread Michael Hall
> I can pull data out of a database using mysql_fetch_array and assemble it like this using a while statement: > > $data > $data > $data > etc ... > > What I'd like to do is assemble it like this: > > $data$data$data > etc... > > In other words, I need a break () every three times through th

Re: [PHP] solution

2001-02-05 Thread Chris Adams
On 5 Feb 2001 23:31:17 -0800, andreas \(@work\) <[EMAIL PROTECTED]> wrote: >a 404 php-file which extracts the path and generates a page for that out of >mysql > >or is there a better solution out there ? This approach can work and, properly done, work fairly well. However, a more elegant approac

[PHP] solution

2001-02-05 Thread andreas \(@work\)
hi all, we need to have a solution for the following stuff: each member of the community should get his own page something like www.domain.com/tacco www.domain.com/micco www.domain.com/sicco . and we dont liek to build this structure as webfolders so what we are thinking of is: a 40

RE: [PHP] framing search results

2001-02-05 Thread Maxim Maletsky
You can encode URLs with urlencode() and decode them by using urldecode()... try read here: www.php.net/urlencode www.php.net/urldecode ### my way: ### you pass $url: $url = www.maxim.cx/get.php?this=variables&as=many&as=you&what=want echo ""; ### and you catch it with:

[PHP] OCILogOn and OCILogOff

2001-02-05 Thread Reuben D Budiardja
Hi, It seems to me that OCILogOff does not return anything. Evenif I do something like this: $conn = OCILogOn("user", "passwd", "db"); $logoff = OCILogOff($conn); $logoff is always empty. Does anyone know about this? any help? Thanks. Reuben D. Budiardja -- PHP General Mailing List (http://

[PHP] *Animated* images. (repost)

2001-02-05 Thread Hrishi
Hello, I'm sorry for the repost, but the last one was misunderstood (i think). i'm looking for ways to generate *animated* images using PHP. thanks, Hrishi

[PHP] framing search results

2001-02-05 Thread Jason Dulberg
I'd like to create a script that will frame search results made by various databases. I will be hardcoding these links into an HTML page. Since there will be alot of these links and I will be using the script across several virtual hosts, I can't have the links built by a db as they link to offsit

Re: [PHP] MySQL --- OR in a select statement ???

2001-02-05 Thread Chris Adams
On 5 Feb 2001 21:27:13 -0800, Dallas Kropka <[EMAIL PROTECTED]> wrote: >SELECT first_name FROM admin_table, user_table WHERE userNum = 1000 > > The info will only be in one or the other but what (if any) is the >correct syntax? You mean something like SELECT first_name FROM users

Re: [PHP] MySQL --- OR in a select statement ???

2001-02-05 Thread Joe Stump
You could do this: users admins - -- userID userID fname lname select U.* from users U, admins A where A.userID=U.userID && (U.userID=100 || U.userID=101) you could also use the IN () function ... select U.* from users U, admins A where A.userID=U.userID && U.userID in (100,101,4

[PHP] MySQL --- OR in a select statement ???

2001-02-05 Thread Dallas Kropka
Is it possible to include an OR condition in a MySQL select on 2 different tables? I have 1 table of basic customers and one table of Admins, both tables "Relate" to the UserNum table containing UserNumber login password and privs, I want to select one field from the correct tab

Re: [PHP] PHP mail as 'nobody'

2001-02-05 Thread Steve Smith
On Mon, 5 Feb 2001, Dave Goodrich wrote: > The problem is that some of our customers are now blocking mail from user > 'nobody', regardless if the account exists or not. I can have PHP write the > complete headers but that doesn't stop the 'from' header in Sendmail being > written (the true user

RE: [PHP] How to save something in a Java Applet as an IMAGE file?

2001-02-05 Thread Maxim Maletsky
we-e-e ... a-are ... the cha-a-a-ampions, my friend Dear Lise Fleming McKinney, You are subscribed to PHP-General Mailing List, we all often send this kind of things to each other without necessarily authenticating ourselves; Cheers, Maxim Maletsky -Original Message- From: L

[PHP-CVS] cvs: php4 /ext/wddx php_wddx_api.h

2001-02-05 Thread Andrei Zmievski
andrei Mon Feb 5 20:15:50 2001 EDT Modified files: /php4/ext/wddx php_wddx_api.h Log: Preserve API compatibility. Index: php4/ext/wddx/php_wddx_api.h diff -u php4/ext/wddx/php_wddx_api.h:1.11 php4/ext/wddx/php_wddx_api.h:1.12 --- php4/ext/wddx/php_wdd

php-general Digest 6 Feb 2001 04:07:22 -0000 Issue 495

2001-02-05 Thread php-general-digest-help
php-general Digest 6 Feb 2001 04:07:22 - Issue 495 Topics (messages 38255 through 38349): Re: Which Regex library? 38255 by: johnny p. Make good money online! It's easy 38256 by: NEWS!! Why doesn't this work? Please trouble-shoot my script. 38257 by: chip.wieg

[PHP] I wish: IIS and ISAPI $PHP_AUTH_USER

2001-02-05 Thread Shane McBride
I tried for days to get IIS to authorize a user with $PHP_AUTH_USER and never got anywhere, so I used apache and it works fine. I wish I just knew why. I loaded PHP as ISAPI, like the manual indicated, but no luck. I would like to use some of the functionality of IIS/NT5.0 Any ideas

[PHP-CVS] cvs: php4 /ext/wddx wddx.c

2001-02-05 Thread Andrei Zmievski
andrei Mon Feb 5 19:57:43 2001 EDT Modified files: /php4/ext/wddx wddx.c Log: Don't use Z* macros for non-zvals. Index: php4/ext/wddx/wddx.c diff -u php4/ext/wddx/wddx.c:1.61 php4/ext/wddx/wddx.c:1.62 --- php4/ext/wddx/wddx.c:1.61 Mon Feb 5 19:54:1

[PHP-CVS] cvs: php4 / NEWS /ext/wddx php_wddx_api.h wddx.c

2001-02-05 Thread Andrei Zmievski
andrei Mon Feb 5 19:54:15 2001 EDT Modified files: /php4 NEWS /php4/ext/wddx php_wddx_api.h wddx.c Log: Cleaned up and optimized WDDX serialization - it's about twice as fast now. Index: php4/NEWS diff -u php4/NEWS:1.582 php4/NEWS:1.583

RE: [PHP] How to save something in a Java Applet as an IMAGE file?

2001-02-05 Thread Lise Fleming McKinney
Who are you and why are you sending me this? *-Original Message- *From: Winnie [mailto:[EMAIL PROTECTED]] *Sent: Monday, February 05, 2001 9:47 AM *To: [EMAIL PROTECTED] *Subject: [PHP] How to save something in a Java Applet as an IMAGE file? * * *hi, * *how can i do this? i have a java

[PHP] Generic cloner?

2001-02-05 Thread Chien-pin Wang
Hi, I'm wondering if there is an easy way to code a generic cloner at top level of object inheritance tree so that all descendents can follow? Or by nature the clone() function needs be implemented at final class def.? Thanks a lot! Chien-pin -- PHP General Mailing List (http://www.php.n

[PHP] Need some Help! [:)]

2001-02-05 Thread Kelly Hamlin
Currently i have two files post.php3 - http://www.bbhacks.com/board/post.phps and viewthread.php3 - http://www.bbhacks.com/board/viewthread.phps what im trying to do is make it so signatures are dynamic. I think im close but i also think since im fairly new i have some things wrong as well. Bas

Re: [PHP] How can I do this?? :((

2001-02-05 Thread Steve Werby
"Sandeep Hundal" <[EMAIL PROTECTED]> wrote: > Now what I want to do is have another query which asks the second > table the number of comments per each section id, for that section, > (and I think QUERY2 does this fine). But I need the answers to > integrate with the information pulled from first

Re: [PHP] SQL Statments?

2001-02-05 Thread David Robley
On Tue, 6 Feb 2001 11:49, Jonathan Sharp wrote: > If I have a text file with all my sql statements (from like say > mysqldump) what's the easiest way of passing them to mysql? I'm on > RedHat6.2 with mysql 3.22.32 > > Thanks, > -Jonathan Assuming you want to recreate tables from the dump and ass

Re: [PHP] SQL Statments?

2001-02-05 Thread Jason Brooke
> If I have a text file with all my sql statements (from like say mysqldump) > what's the easiest way of passing them to mysql? I'm on RedHat6.2 with mysql > 3.22.32 > > Thanks, > -Jonathan I'm not sure about the easiest way, but definitely an easy way would be to simply do: cat filename | mysql

Re: [PHP] Problem with Zend Encoder testdrive - Win2k

2001-02-05 Thread Carsten Gehling
From: "Zeev Suraski" <[EMAIL PROTECTED]> Sent: Monday, February 05, 2001 4:32 PM > This is a known limitation in the initial release of the encoder. The > license file must be stored in C:\Program Files\Zend, even if your standard > Program Files directory is in E:. Thanks, that was about the o

[PHP] SQL Statments?

2001-02-05 Thread Jonathan Sharp
If I have a text file with all my sql statements (from like say mysqldump) what's the easiest way of passing them to mysql? I'm on RedHat6.2 with mysql 3.22.32 Thanks, -Jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] How can I do this?? :((

2001-02-05 Thread Sandeep Hundal
Hi all, I'm basically really struggling with this query, so would appreciate any pointers on how I could do this. I've included my experimental code underneath, and need to make it work. The first query, which I know works, pulls info from a mysql table. Now for each of my diary entry, I want

Re: [PHP] PHP, MySQL and XML

2001-02-05 Thread Sean Cazzell
Well, you're going to have to come up with a datamodel for storing the parsed data. You can parse RDF files with the XML extension, see the docs at http://www.zend.com/manual/ref.xml.php There are some classes on phpclasses.upperdesign.com which will handle RSS files - you can probably look at t

[PHP] MySQL previous next query

2001-02-05 Thread Luis Lebron
I need to build a query that needs to find the previous or next record in a database using a form. The records are numbered using a field called 'sb_num'. This field is initially set using the form. Would something like this work Next: Select 'field1', 'field2' from table order by sb_num where $s

[PHP-CVS] cvs: php4 /ext/standard dns.c

2001-02-05 Thread Stephen van Egmond
svanegmond Mon Feb 5 16:07:21 2001 EDT Modified files: /php4/ext/standard dns.c Log: Added tests for arpa/*.h and resolv.h which don't exist on the BeOS. The dns functions on BeOS come from socket.h Index: php4/ext/standard/dns.c diff -u php4/ext

[PHP-CVS] cvs: php4 / configure.in

2001-02-05 Thread Stephen van Egmond
svanegmond Mon Feb 5 16:03:44 2001 EDT Modified files: /php4 configure.in Log: Added tests for arpa/nameser.h and resolv.h, which don't exist on the BeOS. Index: php4/configure.in diff -u php4/configure.in:1.216 php4/configure.in:1.217 --- php

Re: [PHP] Timestamp field

2001-02-05 Thread David Robley
On Tue, 6 Feb 2001 10:03, Chad Guilette wrote: > I'm currenly having a problem with a timestamp field I have on my message > board...each message is given a timestamp and stored in a table...heres > the basic form of the insert... > > $time_added=date("Y m d H i s A"); > > $str = "INSERT INTO to

[PHP] Timestamp field

2001-02-05 Thread Chad Guilette
I'm currenly having a problem with a timestamp field I have on my message board...each message is given a timestamp and stored in a table...heres the basic form of the insert... $time_added=date("Y m d H i s A"); $str = "INSERT INTO topic ( num_id, user, quote, subject, ip, message_icon, page,

[PHP] PHP mail as 'nobody'

2001-02-05 Thread Dave Goodrich
We have a series of subscribed e-mails that go out to customers, you know "Forgot your password?" type thing. Theses are generated by a PHP process and as such carry PHP/Apache's process ID. The problem is that some of our customers are now blocking mail from user 'nobody', regardless if the acco

[PHP] Mixing PHP code with phplib templates... possible?

2001-02-05 Thread derek fong
Hi, Is there a way to embed PHP code in phplib's template files? I need to run all hyperlinks through a function in order to maintain state and pass other variables from script to script. I figure this must be possible, but I'm new at using phplib, so I'm not all that clear on it... Any id

Re: [PHP] Select list with PHP

2001-02-05 Thread Richard Lynch
You need to reset: $option = ''; before each product. So, inside the while(...mysql_fetch_row()) loop, but outside the while(...$colors) loop. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

Re: [PHP] [newbie] Array form values.

2001-02-05 Thread David Robley
On Tue, 6 Feb 2001 08:57, April wrote: > I have a form that is an extended version of this: > > > > > > > > Unfortunately, the email[1] part was generated using a variable in a > loop. I have no idea how many of these fields there really will be each > time this is done. > > I then need to t

[PHP] PHP, MySQL and XML

2001-02-05 Thread Thor M. Steindorsson
Does anyone have a solution for importing data from a RDF-XML file into a MySQL database? I've been racking my brain, as well as looking at tutorials and some xml parsers, but if someone has something like this it would save me tons of time. Thanks! -- PHP General Mailing List (http://www.php

Re: [PHP] Parse error on blank line...

2001-02-05 Thread April
No, I have the same thing happen all the time. It happens after a combination of }'s and ;'s where either a } or a ; is missing. Seriously. - Original Message - From: "Jackson, Michael" <[EMAIL PROTECTED]> To: "'johnny p.'" <[EMAIL PROTECTED]>; "April" <[EMAIL PROTECTED]>; "Jackson, Mi

RE: [PHP] Parse error on blank line...

2001-02-05 Thread Jackson, Michael
Even if I was missing a brace, doesn't it seem odd that it would always give me a syntax error on the same line? It's as if it's arbitrarily deciding to break there... If I add a new line after mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 05:38 PM To: April; Jackson, Michael; [

RE: [PHP] Parse error on blank line...

2001-02-05 Thread johnny p.
I'm not sure where it is, but I agree that you are missing a curly brace somewhere. Take a break from your code for a bit, come back to it, and start matching braces. I suggest getting a coffee or some tea. johnny p. > -Original Message- > From: April [mailto:[EMAIL PROTECTED]] > Sent:

Re: [PHP-CVS] cvs: php4 /ext/standard mail.c php_mail.h

2001-02-05 Thread Sterling Hughes
> > Modified files: > /php4/ext/standard mail.c php_mail.h > Log: > - Added a new parameter to mail() which appends aditional command line > parameters to the mail program. This is usefull to set the From headers > correctly with the -f parameter to sendmail p.e. > @- Added a n

[PHP-I18N] DB/2 and php

2001-02-05 Thread Dennis Hammer
Hi, I am trying to connect to a remote db/2 server with PHP. The docs say that there is no need to use ODBC - so I do not want to :) But how can I define a DSN when I have no ODBC installed? How is the odbc_connect function called without a predefined DSN? I just don't get it :) Dennis -- PHP

Re: [PHP] Parse error on blank line...

2001-02-05 Thread April
argh, nm, I'm an idiot. - Original Message - From: "April" <[EMAIL PROTECTED]> To: "Jackson, Michael" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 05, 2001 4:31 PM Subject: Re: [PHP] Parse error on blank line... > You missed a } in there. Inside of that else, you hav

[PHP] Cookie problem

2001-02-05 Thread Ben Wiechman
I am having a problem getting a php script to read a cookie that should be set. I have to incorporate the output of a php script into an existing page that uses SSI to do a virtual include of my php script. i.e. Problem is, when I do this, the script does not set the cookie variables. If I just

Re: [PHP] Parse error on blank line...

2001-02-05 Thread April
You missed a } in there. Inside of that else, you have an if, but you never close the else. >190 showmainscreen(); >191} >192 should be >190 showmainscreen(); >191} >192} - Original Message - From: "Jackson, Michael" <[EMAIL PROTECTED]> To

[PHP] [newbie] Array form values.

2001-02-05 Thread April
I have a form that is an extended version of this: Unfortunately, the email[1] part was generated using a variable in a loop. I have no idea how many of these fields there really will be each time this is done. I then need to turn around and, while processing the form, extract the values f

[PHP] Parse error on blank line...

2001-02-05 Thread Jackson, Michael
Hello all, I hope this doesn't turn out to be a stupid question, but we will see... I am getting parse errors on blank lines. Not commented, but totally blank. And seemingly no matter how I manipulate the text, it turns out to always be on the same line. I'm using vim with syntax

[PHP-CVS] cvs: php4 /ext/com typedef_VARIANT.c /ext/standard basic_functions.c

2001-02-05 Thread Zeev Suraski
zeevMon Feb 5 13:59:17 2001 EDT Modified files: /php4/ext/com typedef_VARIANT.c /php4/ext/standard basic_functions.c Log: Fix Windows build Index: php4/ext/com/typedef_VARIANT.c diff -u php4/ext/com/typedef_VARIANT.c:1.4 php4/ext/com/typedef

RE: [PHP] Automating tasks in PHP?

2001-02-05 Thread Dave VanAuken
and then someone always asks why this isn't included as part of PHP and how dumping such a task out to cron is stupid and it should be incorporated into PHP... blah blah blah. to preempt that. cron does it fine, low overhead, and the function of PHP is not in the realm of cron's function. if yo

[PHP] SELECT options is null or not an object

2001-02-05 Thread Gobins, Debbie
Does anyone know why I get this error when selecting an option in the box?