[PHP] Unsubscribing

2002-12-06 Thread Van Andel, Robert
Anyone know how to unsubscribe from this list. I have tried several different things including the unscribe field on the mailing list page and an unsubscribe command via email. Robbert van Andel

RE: [PHP] Sigh :)

2002-12-04 Thread Van Andel, Robert
One question that comes up is why are you putting the double quotes around the search string ready maria? Should there be an entry in the database that includes the double quotes. Right now that is what your sql statement is looking for. So an entry like this Are you ready maria? Would not

RE: [PHP] ignoring client supplied session data

2002-11-27 Thread Van Andel, Robert
Andel, Robert Cc: Evan Nemerson; [EMAIL PROTECTED] Subject: RE: [PHP] ignoring client supplied session data At 22:17 27.11.2002, Van Andel, Robert said: [snip] >On the other hand, I use only one query, searching for the username. I had >experimented

RE: [PHP] ignoring client supplied session data

2002-11-27 Thread Van Andel, Robert
authentication process Robbert van Andel -Original Message- From: Evan Nemerson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 12:59 PM To: Van Andel, Robert; [EMAIL PROTECTED] Subject: Re: [PHP] ignoring client supplied session data -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

RE: [PHP] ignoring client supplied session data

2002-11-27 Thread Van Andel, Robert
What I do on my pages is perhaps a convoluted way of doing it but it works. I set a username and password session variables. Every time the page loads the script verifies the username and password are correct. If not, they don't get to see the rest. This, in my mind, pervents someone from sup

RE: [PHP] max file size on uploading files

2002-11-27 Thread Van Andel, Robert
One problem may be your browser timing out before the end of the script. Another may be (although I'm not 100% sure) is that the file excedes the max memory set aside by PHP. Robbert van Andel -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27

RE: [PHP] testing for empty array

2002-11-26 Thread Van Andel, Robert
I believe if(empty($keywords)) or even if(!$keywords) will check if they are empty Robbert van Andel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 4:41 PM To: [EMAIL PROTECTED] Subject: [PHP] testing for empty array I have an arr

RE: [PHP] displaying record number in a cell in a table

2002-11-26 Thread Van Andel, Robert
$result = mysql_query("select * from [database table]"); echo ""; while($data = mysql_fetch_array($result)) { $count++; echo ""; echo "$count"; echo "$data[0]"; echo "$data[1]"; ...and so on echo ""; } echo ""; This will give you a ro

RE: [PHP] decimal places

2002-11-26 Thread Van Andel, Robert
$amount = 17.9; $dollars = "$" . number_format($amount, 2); echo "$dollars"; you should see $17.90. Robbert van Andel -Original Message- From: Bryan Koschmann - GKT [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:29 AM To: PHP General Subject: [PHP] decimal places Hell

RE: [PHP] session trouble

2002-11-22 Thread Van Andel, Robert
Make sure that you have nothing before mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 2:22 PM To: [EMAIL PROTECTED] Subject: [PHP] session trouble hi guys ; I can't use session bla..as on my site. PHP Code ... Warning: Cannot send session cache limiter - headers

RE: [PHP] easy things - forms, variable sending

2002-11-22 Thread Van Andel, Robert
This can be done with JavaScript I don't think there is a way to do it with PHP since PHP is a server side application. Robbert van Andel -Original Message- From: Krzysztof Wozniak [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 2:18 PM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Van Andel, Robert
Use an array (checkbox[1], checkbox[2]). Then use a loop to pull get the data after posting. If you expect only one choice, use a radio button. Robbert van Andel -Original Message- From: Xin Qi [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:54 PM To: Van Andel, Robert

RE: [PHP] GD : Black background with imagecreatetruecolor

2002-11-21 Thread Van Andel, Robert
Testing Robbert van Andel -Original Message- From: Arnaud [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:22 PM To: [EMAIL PROTECTED] Subject: [PHP] GD : Black background with imagecreatetruecolor Hi everyone, I'd like to use "imagecreatetruecolor" function in order to

RE: [PHP] help needed with forms

2002-11-21 Thread Van Andel, Robert
Sounds like JavaScript would be the answer here. You can use a javascript function to validate the form before it is even submitted. Robbert van Andel -Original Message- From: Pushpinder Singh Garcha [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:28 PM To: [EMAIL PROTECT

RE: [PHP] how can php get the values of a group of checkbox

2002-11-21 Thread Van Andel, Robert
Check boxes should not be given the same name. Radio buttons should to denote a grouping. In other words, if you want to have a bunch of radio buttons indicating a choice between items (say bananas, oranges, and apples), you would name them the same thing and give them each a different value. Ch

RE: [PHP] echo'ing array contents through reference variable ... why doesn't this work???

2002-11-21 Thread Van Andel, Robert
The message should say: Perhaps the error lies in for ($n = 0; $i < count($$pdag); $n++) { You have $$pdag instead of $pdag. You also have it lower down in the code. -Original Message- From: Van Andel, Robert Sent: Thursday, November 21, 2002 1:10 PM To: -<[ Rene B

RE: [PHP] echo'ing array contents through reference variable ... why doesn't this work???

2002-11-21 Thread Van Andel, Robert
Perhaps the error lies in for ($n = 0; $i < count($$pdag); $n++) { You have $$pdag instead of $$pdag. You also have it lower down in the code. Robbert van Andel -Original Message- From: -<[ Rene Brehmer ]>- [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:05 PM To: [EMA

RE: [PHP] show mysql- processing time

2002-11-21 Thread Van Andel, Robert
Sorry, I didn't read the entire message. Didn't realize you were already using my suggestion. Robbert van Andel -Original Message- From: Tularis [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 8:28 AM To: [EMAIL PROTECTED] Subject: [PHP] show mysql- processing time I was

RE: [PHP] show mysql- processing time

2002-11-21 Thread Van Andel, Robert
This is what I did. $StartTime = date("U"); $result = mysql_query($query); $EndTime = date("U"); $difference = $EndTime - $StartTime; echo "The query took $difference seconds to generate\n"; Perhaps not the most accurate but who cares about a few milliseconds. Robbert van Andel -Original

RE: [PHP] MY CLIENT

2002-11-21 Thread Van Andel, Robert
Perhaps its the moderator sending them out ;) (This'll be my one and only off topic post, I just couldn't resist). Robbert van Andel -Original Message- From: UberGoober [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 5:35 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] MY CLIE

RE: [PHP] Graph Question..

2002-11-20 Thread Van Andel, Robert
er 20, 2002 12:03 PM To: PHP-GEN Subject: Re: [PHP] Graph Question.. On Wednesday 20 November 2002 20:37, Van Andel, Robert wrote: > More information would be helpful. Perhaps the code to the page that is > causing you trouble (i.e. the one where you are using the class you > downloaded

RE: [PHP] Newbie: PHP/MySQL (SELECT)

2002-11-20 Thread Van Andel, Robert
$sql1 = "titulo like '%$titulotxt%'" $sql2 = "cd like '$cdstxt'"; $sql = "SELECT * FROM divx WHERE $sql1 AND $sql2 ORDER BY titulo"; I think you are getting the error because of the ($titulotxt) ? portion of your sql statements. You really only need the two statements listed above and then put in

RE: [PHP] Graph Question..

2002-11-20 Thread Van Andel, Robert
More information would be helpful. Perhaps the code to the page that is causing you trouble (i.e. the one where you are using the class you downloaded yesterday). Perhaps you are missing a key piece there. Robbert van Andel -Original Message- From: James Hatridge [mailto:[EMAIL PROT

RE: [PHP] how to read text file one line at a time

2002-11-19 Thread Van Andel, Robert
This works too. $fp = fopen($filename,'r'); while($line=fgets($fp)) { //do what you need to do with $line } fclose($fp); Robbert van Andel -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 11:44 AM To: Kelly Meeks Cc: [EMAIL PRO

[PHP] Returning an array in a function

2002-11-19 Thread Van Andel, Robert
How would I return an array of data with a function? Robbert van Andel "The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking

RE: [PHP] Download File

2002-11-19 Thread Van Andel, Robert
If the word document you are trying to download is already on the server, you could probably just make a link to the file http://host.com/document.doc";> When the user clicks on it, they either view the document if they have the MS Word plugin, or they are asked to download it. I'm not sure that

RE: [PHP] How to process data from forms

2002-11-18 Thread Van Andel, Robert
Your variables are also available as plain old variables. For a newbie it might be easier and more user frinedly to use it that way rather than the array mentioned below. In your case, $demand and $name would contain the information entered by the user. I generally use this method in my code.

RE: [PHP] Create Login Page

2002-11-18 Thread Van Andel, Robert
I recently set up a log in page. I'm doing it a little differently than you. First I establish a session and set up two session variables (sessusername and sesspassword). I check to see if these variables have been set, if they have, I then check the username and password with the database to ma

RE: [PHP] newbie's question

2002-11-15 Thread Van Andel, Robert
Yes it would. I like to make things complicated :) Robbert van Andel -Original Message- From: Steve Keller [mailto:skeller@;healthtvchannel.org] Sent: Friday, November 15, 2002 5:11 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] newbie's question Err... sorry. The logic was there but my

RE: [PHP] newbie's question

2002-11-15 Thread Van Andel, Robert
Don't know about a correct way but you can use if(empty($variable)) Robbert van Andel -Original Message- From: Frank Wang [mailto:wang960@;yahoo.com] Sent: Friday, November 15, 2002 7:10 AM To: [EMAIL PROTECTED] Subject: [PHP] newbie's question Hi, what is the correct way of testing i

[PHP] PHP Website

2002-11-15 Thread Van Andel, Robert
Anyone else having trouble accessing PHP.net? Robbert van Andel "The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any

RE: [PHP] what else do i need in this upload script?

2002-11-15 Thread Van Andel, Robert
This looks fine except the MAX_FILE_SIZE looks rather small. I had an issue with it earlier this week and found that the fileI was trying to upload was larger than the MAX_FILE_SIZE. I believe this is measured in bytes, so your file cannot be larger than 1KB. Are you getting any errors? Robbert

RE: [PHP] trim strings

2002-11-13 Thread Van Andel, Robert
You should be able to use substr(). In your case, you would do $newstring = substr($string,10); Click the link for documentation. http://www.php.net/manual/en/function.substr.php Robbert van Andel === Network Operator NW Regional Operations Center Charter Commun

RE: [PHP] File Upload problem

2002-11-12 Thread Van Andel, Robert
Upon reading my reply, I think perhaps I wasn't clear enough. I am using users_file, etc. I am unable to upload a file because $users_file is given the value of "none". -Original Message- From: Van Andel, Robert Sent: Tuesday, November 12, 2002 3:59 PM To: Ernest E

RE: [PHP] File Upload problem

2002-11-12 Thread Van Andel, Robert
Vogelsinger [mailto:ernest@;vogelsinger.at] Sent: Tuesday, November 12, 2002 3:46 PM To: Van Andel, Robert Cc: [EMAIL PROTECTED] Subject: Re: [PHP] File Upload problem At 00:25 13.11.2002, Van Andel, Robert said: [snip] >encType=multipart/form-data&g

[PHP] File Upload problem

2002-11-12 Thread Van Andel, Robert
I am having issues uploading a file. I am trying to up load a file from my computer to the server so taht I can run a mysql query using the load data infile query. here is the code Remote File Name: $users_file"; echo "Local File Name: $users_file_name"; echo "L