[PHP] help with adding

2005-02-25 Thread Jay Fitzgerald
I have messed with this for a couple of days and cant get it right. Maybe I need sleep :-) The code below is echoing the qty correctly (10, 5, 25) for ($i = 1; $i <= $sendnum; $i++) { $qty = $_POST['qty'.$i]; echo $qty . ''; } The question is, how would I tak

Re: [PHP] Video Uploads

2004-11-09 Thread Jay Fitzgerald
The video is 1.5 meg and yes I can upload a PSD file that is 1.8.. Jay Minuk Choi wrote: How big are the video files(byte wise)? Have you tried uploading a non-video file of the same size? - Original Message - From: "Jay Fitzgerald" <[EMAIL PROTECTED]> To: <[EMAIL PROTEC

[PHP] Video Uploads

2004-11-09 Thread Jay Fitzgerald
I can upload just about everything with this script; but I don't understand why it says that the videos i try to upload are zero length. -- THE FORM -- -- THE SCRIPT -- ini_set ('d

RE: [PHP] Date Listing

2003-12-10 Thread Jay Fitzgerald
',date('l, F j',$theday),''; } ?> Where $i <= 31 is the number of days you want looped HTH Jay -Original Message- From: Pablo Zorzoli [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Date Listing Hi everyone! Let's see if you

[PHP] echo or print

2003-11-20 Thread Jay Fitzgerald
when should i use echo ' '; vs. print ' '; ======== Jay Fitzgerald, Design Director - Certified Professional Webmaster (CPW-A) - Certified Professional Web Designer (CPWDS-A) - Certified Professional Web Developer (CPWDV-A) - Certifie

[PHP] To Loop or Not to Loop?

2003-11-17 Thread Jay Fitzgerald
#x27;, '$_POST[description]', '$thefile1', '$thefile2', '$thefile3', '$thefile4', '$thefile5', '$thefile6', '$thefile7', '$thefile8' )"; $sql_result = mysql_query($sql) or

RE: [PHP] Multiple Image Uploads

2003-11-06 Thread Jay Fitzgerald
ginal Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: November 6, 2003 5:25 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Multiple Image Uploads On Friday 07 November 2003 05:10, Jay Fitzgerald wrote: > Can someone help me with this? I've been trying to get it to work all >

[PHP] Multiple Image Uploads

2003-11-06 Thread Jay Fitzgerald
Can someone help me with this? I've been trying to get it to work all day :( http://codedump.phpfreaks.com/viewcode.php?id=2061 ==== Jay Fitzgerald, Design Director - Certified Professional Webmaster (CPW-A) - Certified Professional Web Des

[PHP] How to?

2003-08-29 Thread Jay Fitzgerald
I need to create a form for this example in php. I need to have an unlimited number of seats with radio buttons next to each seat for the user to be able to select. BUT, when the user visits this page, it needs to pull the seats taken from the db and cross them out, rendering them inoperable wi

[PHP] multiple mailings

2003-08-27 Thread Jay Fitzgerald
sorry for the multiple mailings...I'm not meaning to spam the list, but apparently when i send an email to the list, it takes almost 2 hours for me to receive a copy of it letting me know that it went through ok ==== Jay Fitzgerald, D

Re: [PHP] Need help - past deadline

2003-08-27 Thread Jay Fitzgerald
d it, the output gets totally fudged     but I also need it to display ALL of the seats that are in the db as being sold and not just the first row... TIA Jay At 12:00 PM 8/26/2003 -0800, you wrote: [clip] if ($i <= 84) {

RE: [PHP] Need Help - past deadline

2003-08-27 Thread Jay Fitzgerald
+ 1) { echo ""; } else { echo ""; } } ?> here is what I am wanting to add - I tried placing this in several places in this code so far (top, middle & bottom) but whenever i add it, the output gets totally fudged     but I also ne

RE: [PHP] Need Help - past deadline

2003-08-27 Thread Jay Fitzgerald
+ 1) { echo ""; } else { echo ""; } } ?> here is what I am wanting to add - I tried placing this in several places in this code so far (top, middle & bottom) but whenever i add it, the output gets totally fudged     but I also ne

[PHP] Need help - past deadline

2003-08-26 Thread Jay Fitzgerald
4) { ?> } } else { if ($i <= 84) { ?> } } }

[PHP] need help - past deadline

2003-08-26 Thread Jay Fitzgerald
4) { ?> } } else { if ($i <= 84) { ?> } } }

[PHP] please help past deadline

2003-08-26 Thread Jay Fitzgerald
can someone please look at my code below and tell me why it is only working half-way? It is only displaying radio buttons and seats for numbers 71, 73, 75, 77, 79, 81, 83, and 85.and it is printing seat # 76 since that is the one in the database between seats 81 and 83why is this happe

[PHP] if seat is sold

2003-08-26 Thread Jay Fitzgerald
1. here is my code: http://codedump.phpfreaks.com/viewcode.php?id=1162 2. here is a screenie of my seating chart: http://www.bayou.com/jay/chart.gif 3. what i am wanting to do is using CSS i want to "strike-through" the seats that are in the db - else, I want them to display normally note: the

[PHP] Freelance code optimizations

2003-08-11 Thread Jay Fitzgerald
learn ====== Jay Fitzgerald, Design Director - Certified Professional Webmaster (CPW-A) - Certified Professional Web Designer (CPWDS-A) - Certified Professional Web Developer (CPWDV-A) - Certified E-Commerce Manager (CECM-A) - Certified Small Business Web Consultant (CWCSB-A)

[PHP] Functions in Safe Mode?

2003-08-04 Thread Jay Fitzgerald
d 65534 in /home/***/public_html/news.php on line 10 0 The Question: Is there a way to get the file size of files if safe mode is on? I need to do an IF/ELSE statement so that if the file size is less than a certain size, then it does not display the text contained in that file. Am I going about this the w

[PHP] Functions in Safe Mode

2003-08-04 Thread Jay Fitzgerald
is the wrong way? ======== Jay Fitzgerald, Design Director - Certified Professional Webmaster (CPW-A) - Certified Professional Web Designer (CPWDS-A) - Certified Professional Web Developer (CPWDV-A) - Certified E-Commerce Manager (CECM-A) - Certifie

[PHP] echo statements

2003-07-18 Thread Jay Fitzgerald
When echoing html code that will include variables from a while or if loop, which method is best? Method 1: echo "$employer"; OR Method 2: If you would, please give reasons why to support your opinion. Thanks -- Jay Fitzgerald, Design Director - CPW-A, CPWDS-A, CPWDV-A, CECM-A, CWC

[PHP] Another newbie

2003-06-28 Thread Jay Fitzgerald
I have been writing PHP for almost a year now and someone on phpfreaks told me the other day that my code was very sloppy. Since I want to more more into programming than design, can anyone recommend where to learn how to make sure your code is clean, optimized and as error-free as it can get?

[PHP] script check/testing

2003-06-24 Thread Jay Fitzgerald
I seem to be having problem in the last step of this app I am trying to create...can you guys test it as thoroughly as you can and give me tips on how to improve itit is session based but I cannot seem to get step 5 to recognize the $theseat" variable. If you would like to offer help, please

[PHP] am i doing this right?

2003-06-22 Thread Jay Fitzgerald
This is the code I have that is on step 4 of an event registration system i am working on... [code page=step4.php] ini_set("display_errors", "1"); ini_set ('error_reporting', E_ALL); session_start (); $ip = $_SERVER['REMOTE_ADDR']; $fullhost = gethostbyaddr($ip); $host = preg_replace("/^[^.]+./"

Re: [PHP] correct session format?

2003-06-21 Thread Jay Fitzgerald
what about for version 4.3.1?? Jay At 01:41 PM 6/22/2003 +1000, you wrote: Yes, for PHP >= 4.1 Justin on 22/06/03 12:22 AM, Jay Fitzgerald ([EMAIL PROTECTED]) wrote: > is this the correct way to register variables via a session? > > [code] > session_start (); > $_SESSION[&

[PHP] correct session format?

2003-06-21 Thread Jay Fitzgerald
is this the correct way to register variables via a session? [code] session_start (); $_SESSION['eventid'] = 'arma2'; print_r ($_SESSION); echo " $_SESSION"; [/code] [result] Array ( [eventid] => arma2 ) Array [/result] I apologize for the numerous questions, but I am trying to learn...If anyone

RE: [PHP] Re: Passing Variables

2003-06-21 Thread Jay Fitzgerald
field (pure html) and then u have it as $yourhiddenfield on the > next page even u have the register global off.. > > Nabil > > > "Jay Fitzgerald" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I have been searching for an answer to this for a couple

[PHP] Passing Variables

2003-06-21 Thread Jay Fitzgerald
I have been searching for an answer to this for a couple of hours now and cant find anything. I believe that there is a secure way of doing this but I think my brain is having a momentary lapse... I have these variables: $eventid = "1"; $age = "15"; Is there a way to pass these variables to the

[PHP] Seating chart registration system?

2003-06-20 Thread Jay Fitzgerald
I am writing a php event registration system for lanparties and I believe I have everything written that I need except for a seating selection chart. I dont want to reinvent the wheel if I dont have to and am curious to know if something like this has already been written as public source... If

[PHP] preg_match_all

2003-05-27 Thread Jay Fitzgerald
\n|U",$read,$result); ?> Jay Fitzgerald, Design Director - CPW-A, CPWDS-A, CPWDV-A, CECM-A, CWCSB-A Bayou Internet - http://www.bayou.com Toll Free: 888.30.BAYOU (22968) Vox: 318.338.2034 / Fax: 318.338.2506 E-Mail: [EMAIL PROTECTED] ICQ: 38823829 / AIM: bayoujf / MSN: bayoujf / Yahoo: bay

[PHP] PHP Another time "a"round

2003-04-04 Thread Jay Fitzgerald
ere a way to include the minutes of the hour in the above code, BUT have the minutes rounded to the nearest 1/2 hour? e.g.: 12:00 12:30 1:00 1:30 Jay Fitzgerald, Design Director - CPW-A, CPWDS-A, CPWDV-A, CECM-A, CWCSB-A Bayou Internet - http://www.bayou.com Toll Free: 888.30.BAYOU (22968) V

[PHP] PHP Rounding Time

2003-04-04 Thread Jay Fitzgerald
I apologize in advance for my constant nub questions.. How can I round the current time up or down to the nearest 1/2 hour? eg: timeranges: 0900 through 0915 == 0900 0916 through 0930 == 0930 0931 through 0945 == 0930 0946 through 1000 == 1000 Jay Fitzgerald, Design Director Bayou Internet

[PHP] PHP Auto-Date Select Box

2003-04-04 Thread Jay Fitzgerald
12 Saturday, April 13 Sunday, April 14 Jay Fitzgerald, Design Director Bayou Internet - http://www.bayou.com Toll Free: 888.30.BAYOU (22968) Vox: 318.338.2034 / Fax: 318.338.2506 E-Mail: [EMAIL PROTECTED] ICQ: 38823829 / AIM: bayoujf / MSN: bayoujf / Yahoo: bayoujf -- PHP General Mailing List

[PHP] PHP preg_match_all()

2003-03-21 Thread Jay Fitzgerald
e in if my logic is not correct and what exactly the |U is doing in this function? Jay Fitzgerald, Design Director - CPW-A, CPWDS-A, CPWDV-A, CECM-A, CWCSB-A Bayou Internet - http://www.bayou.com Toll Free: 888.30.BAYOU (22968) Vox: 318.338.2034 / Fax: 318.338.2506 E-Mail: [EMAIL PROTECTED] ICQ: 3882

[PHP] WHILE IF/ELSE loop not working

2003-01-24 Thread Jay Fitzgerald
can anyone tell me why this while loop fails? == while ($row = mysql_fetch_array($sql_result)): $phone = $row["phone"]; $date = $row["date"]; if ($phone == "$_POST[areacode]$_POST[prefix]$_POST[suffix]"): if ($date == NULL): $date = "today";

[PHP] PHP Login Sessions

2002-11-01 Thread Jay Fitzgerald
What am I doing wrong here? I have a login form that visitors enter their "use"name and "use_psswrd" in to log in...the form action is this code: == session_start(); if ($_REQUEST[use_name] && $_REQUEST[use_psswrd]) { $connection = mysql_connect("SERVER","USER","PASS") o

[PHP] E-Commerce and "small" intranet solution

2002-06-05 Thread Jay Fitzgerald
, comments or concerns, feel free to call me at 318-338-2034. Thank you for your time, Jay Fitzgerald, Design Director - CSBW-A, CPW-A, CWD-A, CEMS-A = Bayou Internet..(888) 30-BAYOU...http://www.bayou.com Mississippi

[PHP] PHP Security

2002-04-29 Thread Jay Fitzgerald
Can someone point me in the right direction in determining just how secure PHP really is? Should you have any questions, comments or concerns, feel free to call me at 318-338-2034. Thank you for your time, Jay Fitzgerald, Design Director - CSBW-A, CPW-A, CWD-A, CEMS-A

[PHP] RE: PHP/MySQL/XML

2002-04-01 Thread Jay Fitzgerald
); // end if / else statement here fwrite($phone_list, "\n"); } fwrite($phone_list, "\t\n"); fwrite($phone_list, ""); fclose($phone_list); ?> Should you have any questions, comments or concerns, feel fre

[PHP] PHP/MySQL/XML

2002-04-01 Thread Jay Fitzgerald
\t\t\t\n" echo "\t\t\t"; echo "$home"; echo "\t\t\t\n"; echo "\t\t"; echo "\t"; echo ""; ?> Can this be done and am I going about it the right way? Should you have any questions, comments or concerns, feel free to

[PHP] if variable is equal to 2 through 4

2002-02-06 Thread Jay Fitzgerald
Thank you for your time, Jay Fitzgerald, Design Director - CSBW-A, CPW-A, CWD-A, CEMS-A == Bayou Internet..(888) 30-BAYOUhttp://www.bayou.com Mississippi Internet...(800) MISSISSIPPI.

[PHP] while...if statements???

2001-12-18 Thread Jay Fitzgerald
Does anyone know why this isn't working?? What I am trying to do is display photos from a database based on each month. This part works fine when I set it to the current month of December (today) as that is when I uploaded the photos. However, when I manually set the date to a month that has n