[PHP] Question for you guys and gals

2003-08-22 Thread David Smith
problem is on the sites that I use cookies or use the header to redirect a page. How can I still have my CSS on my functions page and not have problems with header errors because of this already being at the top...recommendations? David Smith Programmable Solutions [EMAIL PROTECTED] -- PHP

Re: [PHP] Not sure of the best way to handle a problem

2003-08-04 Thread David Smith
. Is fnmatch better or glob. I'm not sure I understand what the difference is they both look like they do the same thing. Thanks again, David On Mon, 2003-08-04 at 01:11, Jeff Harris wrote: On Aug 3, 2003, David Smith claimed that: |Hi: |I have a slight problem that I'm not sure where to begin. I

[PHP] Not sure of the best way to handle a problem

2003-08-03 Thread David Smith
Hi: I have a slight problem that I'm not sure where to begin. I have multiple files on another server other then my linux box that needs to be renamed. These files are used under a particular software package and I am trying to switch them to another software package which would require them to be

Re: [PHP] for the love of god, remove me

2003-08-03 Thread David Smith
It's not usless if you read the page. [EMAIL PROTECTED] On Sun, 2003-08-03 at 13:45, Joseph Bannon wrote: PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php This page is useless, you can't remove yourself. J.

RE: [PHP] PHP, MySQL and null?

2003-07-27 Thread David Smith
Have you tried inserting it without including the id field in the insert statement? I have several tables with auto increments and I never even bother putting that field in the insert statement. David -Original Message- From: Jonas Thorell [mailto:[EMAIL PROTECTED] Sent: Sunday, July

RE: [PHP] PHP, MySQL and null?

2003-07-27 Thread David Smith
. David -Original Message- From: Jonas Thorell [mailto:[EMAIL PROTECTED] Sent: Sunday, July 27, 2003 10:10 AM To: 'David Smith'; [EMAIL PROTECTED] Subject: RE: [PHP] PHP, MySQL and null? Sorry, wrote wrong here so one more try. Well, no. But that's not where the problem is. If I

RE: [PHP] mysqldump

2003-07-25 Thread David Smith
I agree with Curt, why reinvent the wheel. I mean even if you are like me and cannot access the command-line on your web server (which really really sucks) then there are still other tools that can do this very same thing. If you just want to click on a link and backup the db why not use the load

RE: [PHP] Re: PHP should know my data!

2003-07-24 Thread David Smith
One possibility could be that your register_globals is off...maybe. David -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of J. Cox Sent: Thursday, July 24, 2003 8:26 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP should know my data! Chris Hubbard [EMAIL PROTECTED]

[PHP] Formatting Percents

2001-08-16 Thread David Smith
to change all the records. I want to use PHP to configure the 15% off price. How does one do this? Does the MySQL field need to be formatted a certain way? I want to show: Retail Price: $100.00 Your Price: $85.00 Thanks in advance and let me know if you need more information. David Smith

RE: [PHP] Putting Include files outside of document root

2001-08-16 Thread David Smith
If you upload your index.htm file into the /dir folder and it shows then this is your document root folder. I would say if you place something in /myname then that would be outside your document root. -Original Message- From: Tom Malone [mailto:[EMAIL PROTECTED]] Sent: Thursday, August

RE: [PHP] Formatting Percents

2001-08-16 Thread David Smith
want to show: Retail Price: $100.00 Your Price: $85.00 Thanks in advance and let me know if you need more information. David Smith Indy Web Design 877-347-1270 or 317-573-2486 http://www.indywebdesign.com -- Visit our online gift

RE: [PHP] Formatting Percents

2001-08-16 Thread David Smith
DOH, wouldn't you know it. As soon as I sent these messages I found my answer... $sellprice = round ($bprice, 2); -Original Message- From: David Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 11:50 PM To: David Smith; [EMAIL PROTECTED] Subject: RE: [PHP] Formatting

[PHP] Table Relationships

2001-04-06 Thread David Smith
1 2001-04-04 14:41:33 1 Shrapnel Games I want to call the data from table two and if 1 matches 1 in first table it shows "General Gaming News" instead of just 1. understand? please reply to email since not a list member... David Smith Indy Web Design

RE: [PHP] mail(), how can one specify from ?

2001-03-22 Thread David Smith
$headers .= "From: David Smith [EMAIL PROTECTED]\n"; mail($recipient, $subject, $message, $headers); -Original Message- From: Richard [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 22, 2001 1:00 PM To: [EMAIL PROTECTED] Subject: [PHP] mail(), how can one specify from ?

RE: [PHP] TraceRoute

2001-03-18 Thread David Smith
This would be because his email shows [EMAIL PROTECTED] Hint the -nospam at the end. I don't know why people do this and then ask for help because when someone offers the help the email bounces... David Smith -Original Message- From: Henrik Hansen [mailto:[EMAIL PROTECTED

RE: [PHP] php or Mysql for DATE?

2001-03-14 Thread David Smith
Try using ? $date = date ("Y-m-d H:i:s"); ? which formats the same as MySQL... -Original Message- From: Dhaval Desai [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 2:19 AM To: [EMAIL PROTECTED] Subject: [PHP] php or Mysql for DATE? I want to have a posting column wherein

RE: [PHP] email with multiple records

2001-03-07 Thread David Smith
list only when I run it with 3 emails. The first record gets his info, 2nd get his plus first, 3rd get his plus 2nd and 1st. Why is it doing this? David Smith Number 3 record gets email with: - Hi [EMAIL PROTECTED], Your email is [EMAIL PROTECTED] Bye, WreckRman2 --- H

RE: [PHP] email with multiple records [code included]

2001-03-07 Thread David Smith
= "SELECT * FROM email"; $result = mysql_query($sql); while ($myrow = mysql_fetch_array($result)) { $email = $myrow["email"]; $recipient = "$email $email"; $subject = "$subject"; $message = "$message"; $headers = &

RE: [PHP] htaccess

2001-03-07 Thread David Smith
Try this: ? echo ($HTTP_SERVER_VARS["PHP_AUTH_USER"]); ? -Original Message- From: Jason Jacobs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 4:09 PM To: [EMAIL PROTECTED] Subject: [PHP] htaccess Hey folks. I have another htaccess question. I have an entire folder set up

RE: [PHP] Connection error

2001-03-02 Thread David Smith
Try this... You need to set a variable for the connection. Also you might be careful when sending examples of your code as you have given everyone on this list your username/password to your database. ?php $connection = mysql_connect ("localhost", "webmaster2", "**"); if

RE: [PHP] MySQL Create Table Problem

2001-03-02 Thread David Smith
Quick example... CREATE TABLE user ( userid int(10) unsigned DEFAULT '0' NOT NULL auto_increment, usergroupid smallint(5) unsigned DEFAULT '0' NOT NULL, username varchar(50) NOT NULL, password varchar(50) NOT NULL, email varchar(50) NOT NULL, parentemail varchar(50) NOT NULL,

[PHP] URL Encode

2001-02-09 Thread David Smith
I know this have been covered before but I can't find it in my thousands of emails... How would I URL Encode the following... I am retrieving a variable like ? echo "$SearchCity"; ? but for example if it is Hilton Head Island I need it to add the + signs as Hilton+Head+Island so Netscape

[PHP] upload_max_filesize

2001-02-01 Thread David Smith
Can anyone explain in detail how I can increase the upload_max_filesize to 5 meg instead of the default 2 meg? Thanks, David

Re: [PHP] upload_max_filesize

2001-02-01 Thread David Smith
Sorry, that isn't very detailed but I appreciate your help. Where can I find php.ini? - Original Message - From: Jonatan Bagge [EMAIL PROTECTED] To: David Smith [EMAIL PROTECTED] Sent: Thursday, February 01, 2001 6:41 AM Subject: Re: [PHP] upload_max_filesize David Smith wrote

[PHP] Check for spaces..

2001-01-11 Thread David Smith
With the following code how can I check to see if the file being uploaded has a space in it? Maybe replace them with a _ or reject them all together... if ($FileType== "none") { print "ERROR! - You must specify a File Type before we can begin the upload.BR"; }