RE: [PHP] MySQL and Array's REALLY simple question but I'm not GETTING it .. Ugh..

2002-09-06 Thread Steve Gaas
; } print /table; -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 3:34 PM To: Steve Gaas Cc: [EMAIL PROTECTED] Subject: Re: [PHP] MySQL and Array's REALLY simple question but I'm not GETTING it .. Ugh.. Well, when you run the command

Re: [PHP] MySQL and Array's REALLY simple question but I'm notGETTING it .. Ugh..

2002-09-06 Thread Jed Verity
Hello, Steve, When you call mysql_fetch_array the first time, you are accessing the data from the first row of your results and then moving the pointer to the next row. So, when you call mysql_fetch_array the second time, it is already starting with the second row of your results. Try something

Re: [PHP] MySQL and Array's REALLY simple question but I'm not GETTING it .. Ugh..

2002-09-06 Thread Brad Bonkoski
: Re: [PHP] MySQL and Array's REALLY simple question but I'm not GETTING it .. Ugh.. Well, when you run the command: $sql2_results = mysql_fetch_array($top_level); The first time, it automatically increments the result... so you fetch the data bu do nothing with it... so when you get

Re: [PHP] MySQL and Array's REALLY simple question but I'm not GETTING it.. Ugh..

2002-09-06 Thread Chulkee Sung
$sql2_results = mysql_fetch_array($top_level); I guess this must be in a loop otherwise your $sq12_results keep getting overwitten; thus, the last record will be shown at the end. $query_sql2_rows = mysql_num_rows($top_level); echo $query_sql2_rows; // echo's 2 rows print table

[PHP] Further Security Clarifications [was: Simple Security Clarifcation]

2002-08-21 Thread Andre Dubuc
My main files are located in /var/www/html (the 'DOCUMENT_ROOT' in Apache, according to php.ini). All sensitive files have been moved to '/var/www/secure', but now I can't access them! (According to php.ini, the PHP core 'doc_root=none'). I'm totally confused. If I understand this correctly,

Re: [PHP] Further Security Clarifications [was: Simple Security Clarifcation]

2002-08-21 Thread Bob Irwin
/filename.php); Works for me assuming I have the right permissions. Best Regards Bob Irwin Server Admin Web Programmer Planet Netcom - Original Message - From: Andre Dubuc [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 22, 2002 11:19 AM Subject: [PHP] Further Security Clarifications

Re: [PHP] Further Security Clarifications [was: Simple Security Clarifcation]

2002-08-21 Thread Andre Dubuc
22, 2002 11:19 AM Subject: [PHP] Further Security Clarifications [was: Simple Security Clarifcation] My main files are located in /var/www/html (the 'DOCUMENT_ROOT' in Apache, according to php.ini). All sensitive files have been moved to '/var/www/secure', but now I can't access them

Re: [PHP] Further Security Clarifications [was: Simple Security Clarifcation]

2002-08-21 Thread Bob Irwin
Thanks Bob, Got a 404: File not Found. Checked the ssl_error_log as suggested, and found a rather interesting entry: No such file: /var/www/html/var/www/secure/test.php Ahhh - ok - I thought you were including them internally from PHP. You are actually linking to the file being SERVED by

Re: [PHP] Further Security Clarifications [was: Simple Security Clarifcation]

2002-08-21 Thread Andre Dubuc
Thanks again Bob, First off, the site is still being debugged off-line, and part of the problem, as you suggested is my confusion over UNIX SERVER and the Apache Server. OK. Got that. What I'm trying to do: Any file that utilizes $_SESSION variables accessed through username/password

[PHP] my PHP scripts hangs over a simple error

2002-07-08 Thread Joseph Szobody
Folks: I just setup a Redhat/Apache/PHP box for testing purposes as I develop some PHP websites. The weird thing, is that the server takes FOREVER to respond when I make a very simple error in the code. On other servers it comes up with a 'Parse Error' message immediately, but not so with

[PHP] Re: Increment alphabetical character (simple question)

2002-02-12 Thread Philip Hallstrom
Take a look at the ord() and chr() functions. They'll do what you want. On Tue, 12 Feb 2002, phantom wrote: How do I get the ASCII value of a character increment it by one... and convert back to a character. For example: I want to grab a char such as C and increment it to D ???

[PHP] Re: Increment alphabetical character (simple question)

2002-02-12 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... How do I get the ASCII value of a character increment it by one... and convert back to a character. For example: I want to grab a char such as C and increment it to D ??? ord() and chr() will do this. $oldchar = C; $newchar =

[PHP] PHP GuestBook - KISGB (Keep It Simple Guestbook) Version 3.0 Released

2001-12-30 Thread Gaylen Fraley
I have released version 3.0 of my KISGB. KISGB is a PHP guestbook program that does not require sessions, cookies, or an rdbms. Can be Public or Private through HTTP Authentication. Automated install script, fully customizable, clean, and fast. Separate multiple logging capabilty for tracking

[PHP] Regular Expressions - A relatively simple search...

2001-09-06 Thread Mike Gifford
Hello, I'm trying to replace a couple of lines of code: $dotpos = 1 - (strlen($userfile_name) - strpos($userfile_name, '.')); $extension = substr($userfile_name, $dotpos); with a simpler regular expression: $extension = eregi_replace( /.*, , $userfile_name); However it

[PHP] *IF* it was that simple

2001-05-17 Thread Tarrant Costelloe
Ok here is a simple IF statement I am messing around with, yet the parser is sending back an error message of which I cannot see the cause: Code: ?php if ($name == tarrant $username == costtar $password == password); { print(Your are now logged in $name, thank you.); } else {

Re: [PHP] *IF* it was that simple

2001-05-17 Thread Jeroen van Wolffelaar
Loose the ; after the if Jeroen Tarrant Costelloe [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Ok here is a simple IF statement I am messing around with, yet the parser is sending back an error message of which I cannot see the cause: Code: ?php

[PHP] Re: [PHP-DB] super simple....... but!

2001-04-21 Thread andreas \(@work\)
[EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 21, 2001 10:34 PM Subject: [PHP-DB] super simple... but! I wrote this code but nothing append. If i look de code in the browser it's stopping to starting! What is the problme? HTMLBODY ?php echo "starting...";

[PHP] Re: [PHP-DB] super simple....... but!

2001-04-21 Thread andreas \(@work\)
[EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 21, 2001 10:34 PM Subject: [PHP-DB] super simple... but! I wrote this code but nothing append. If i look de code in the browser it's stopping to starting! What is the problme? HTMLBODY ?php echo "starting...";

Re: [PHP] please help with this simple problem

2001-03-22 Thread adam
EMAIL PROTECTED]] Sent: 22 March 2001 11:17 To: [EMAIL PROTECTED] Subject: [PHP] please help with this simple problem i am coding a simple script to post a text area into a file. it works, but it posts it at the bottom and i wanted to have it post to the top of the text already there..

Re: [PHP] please help with this simple problem

2001-03-22 Thread rui
t"; $fsize = filesize($fname); fp = fopen(basename($fname)); $data = fread($fp,fsize); fwrite($fp,$message); fwrite($fp,$data); fclose($fp); -Stewart -Original Message- From: adam [mailto:[EMAIL PROTECTED]] Sent: 22 March 2001 11:17 To: [EMAIL PROTECTED] Subject: [PHP] ple

RE: [PHP] please help with this simple problem

2001-03-22 Thread Stewart Taylor
t -Original Message- From: adam [mailto:[EMAIL PROTECTED]] Sent: 22 March 2001 12:00 To: [EMAIL PROTECTED] Subject: Re: [PHP] please help with this simple problem i tryed it and it ended up having an error that was caused originally by a lack of a $ on the 3rd line variable... after i

Re: [PHP] please help with this simple problem

2001-03-22 Thread adam
it works now, only it's earasing everything and then writing to the file. i think we have almost got this figured out. here's what the code looks like for the entire tag... --- ? if ($message) { /* uncomment the next two lines to strip out html from input */

Re: [PHP] please help with this simple problem

2001-03-22 Thread adam
it works now, only it's earasing everything and then writing to the file. i think we have almost got this figured out. here's what the code looks like for the entire tag... --- ? if ($message) { /* uncomment the next two lines to strip out html from input */

[PHP] Walking Through Array Values, Simple?

2001-01-11 Thread JB
Well... I think I probably owe most of the people on this list some serious cash in consulting fees by now. But we're opensource, so I guess I'm off the hook, right? =) Anyways, another question for you people. I'm on the last leg of designing this e-commerce site. All I have left to design is

<    1   2