[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
s. 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

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. > > > ___

[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] PHP, MySQL and null?

2003-07-27 Thread David Smith
may not be the best way. Sorry about the misunderstanding...like I said my bad. 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

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 27,

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 d

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 PROTECTE

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] Forma

RE: [PHP] Formatting Percents

2001-08-16 Thread David Smith
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 Indy Web Design 877-347-1270 or 317-573-2486 http://www.indywebdesign.com -

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 16

[PHP] Formatting Percents

2001-08-16 Thread David Smith
't want 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.

[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 ?

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 specif

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 PROT

RE: [PHP] php or Mysql for DATE?

2001-03-14 Thread David Smith
Try using 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 people can post their messages an

RE: [PHP] htaccess

2001-03-07 Thread David Smith
Try this: -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 to require authentication. It's in an htacces

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

2001-03-07 Thread David Smith
pient = "$email <$email>"; $subject = "$subject"; $message = "$message"; $headers = "From: David Smith <[EMAIL PROTECTED]>\n"; mail($recipient, $subject, $message, $headers); echo "Message Sent to $email!"; } }

RE: [PHP] email with multiple records

2001-03-07 Thread David Smith
ckRman2"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I wrote a small script like a email 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? Da

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,

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. "; exit; } ?> -Original Message- From: Shaohua Qu [mailto:[EMAIL PROTECTE

[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 but for example if it is Hilton Head Island I need it to add the + signs as Hilton+Head+Island so Netscape won't crash. Thanks...

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 &g

[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

[PHP] Date -1

2001-01-25 Thread David Smith
I am trying to show the records created from the previous day. How can I make it show the date before today? My date field is like 2001-01-24 16:13:51. Below shows the current day... $FileDate = date ("Y-m-d"); $connection = mysql_connect ("localhost", "*", "**"); if ($connection == f

[PHP] Limit image height/width on upload

2001-01-11 Thread David Smith
Is there a way to limit the image size with php? WreckRman2 Combat Flight Center http://www.combatfs.com -- 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 ad

[PHP] Replace a space with _

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."; }

[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."; }

[PHP] file uploading error - can't upload "none"

2001-01-11 Thread David Smith
Below is my code. I am uploading an image and a zip file only I want to make it insert nopic.jpg if they don't upload an image. When I change if($fileimage== "none") { to if($fileimage== "none") { $FileImage = 'nopic.jpg'; } else { $FileImage = $fileimage_name; } I get error can'

[PHP] Cookies

2001-01-11 Thread David Smith
How cn I make the following code set a cookie for vars username and password?? '; } ?> WreckRman2 Combat Flight Center http://www.combatfs.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail