[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 . 'br /'; } The question is, how would I

[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 -- form method=post name=info enctype=multipart/form-data id=x-form action=add.php input

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 PROTECTED] Sent: Tuesday

RE: [PHP] Date Listing

2003-12-10 Thread Jay Fitzgerald
?php for($i = 0; $i = 31; $i++) { $theday = strtotime(+$i day); echo 'option value=',date('Y-m-d',$theday),'',date('l, F j',$theday),'/option'; } ? Where $i = 31 is the number of days you want looped HTH Jay -Original Message- From: Pablo Zorzoli [mailto:[EMAIL

[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) - Certified E-Commerce Manager

[PHP] To Loop or Not to Loop?

2003-11-17 Thread Jay Fitzgerald
; } ? img src=?= $invfile; ?br / ?php } $myid = mysql_insert_id(); mysql_close($connection); /SNIP Jay Fitzgerald, Design Director - Certified Professional Webmaster (CPW-A) - Certified Professional Web Designer (CPWDS-A) - Certified

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

RE: [PHP] Multiple Image Uploads

2003-11-06 Thread Jay Fitzgerald
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 day :( http

[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

RE: [PHP] Need Help - past deadline

2003-08-27 Thread Jay Fitzgerald
tr td class=rowspacenbsp;/TD td class=space colspan=15nbsp;/td /tr 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 Fitzgerald, Design Director - Certified Professional

RE: [PHP] Need Help - past deadline

2003-08-27 Thread Jay Fitzgerald
tr td class=rowspacenbsp;/TD td class=space colspan=15nbsp;/td /tr 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 Fitzgerald, Design Director - Certified Professional

Re: [PHP] Need help - past deadline

2003-08-27 Thread Jay Fitzgerald
} } } ? [/clip] ?php print $i++; ? prints out the value of $i as well as incrementing it twice. Did you notice in your code that the input type=radio name=seat value={one less than...} ... {this}/td HTH, -Michael Jay Fitzgerald, Design Director

[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, Design

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

[PHP] need help - past deadline

2003-08-26 Thread Jay Fitzgerald
value=?php print $i++; ?nobr /font class=avail?php print $i++; ?/td ?php } } } ? Jay Fitzgerald, Design Director - Certified Professional Webmaster (CPW-A) - Certified Professional Web Designer (CPWDS

[PHP] Need help - past deadline

2003-08-26 Thread Jay Fitzgerald
value=?php print $i++; ?nobr /font class=avail?php print $i++; ?/td ?php } } } ? Jay Fitzgerald, Design Director - Certified Professional Webmaster (CPW-A) - Certified Professional Web Designer (CPWDS

[PHP] Freelance code optimizations

2003-08-12 Thread Jay Fitzgerald
== 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) Bayou

[PHP] Functions in Safe Mode

2003-08-04 Thread Jay Fitzgerald
? 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 Web Consultant

[PHP] Functions in Safe Mode?

2003-08-04 Thread Jay Fitzgerald
/***/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 wrong way? -- Jay

[PHP] echo statements

2003-07-18 Thread Jay Fitzgerald
reasons why to support your opinion. Thanks -- 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

[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(/^[^.]+./, *.,

[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

RE: [PHP] Re: Passing Variables

2003-06-21 Thread Jay Fitzgerald
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 of hours now and cant find anything. I believe that there is a secure way of doing this but I think

[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 P $_SESSION; [/code] [result] Array ( [eventid] = arma2 ) Array [/result] I apologize for the numerous questions, but I am trying to learn...If anyone

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['eventid'] = 'arma2

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

[PHP] preg_match_all

2003-05-27 Thread Jay Fitzgerald
); ? ? echo $result[1][0]; ? 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: bayoujf

[PHP] PHP Auto-Date Select Box

2003-04-04 Thread Jay Fitzgerald
OPTION VALUE=2003-04-08Monday, April 8 OPTION VALUE=2003-04-09Tuesday, April 9 OPTION VALUE=2003-04-10Wednesday, April 10 OPTION VALUE=2003-04-11Thursday, April 11 OPTION VALUE=2003-04-12Friday, April 12 OPTION VALUE=2003-04-05Saturday, April 13 OPTION VALUE=2003-04-05Sunday, April 14 /SELECT Jay

[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 Another time around

2003-04-04 Thread Jay Fitzgerald
; ? /SELECT is there 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

[PHP] PHP preg_match_all()

2003-03-21 Thread Jay Fitzgerald
can anyone fill me 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

[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 usename and use_psswrd in to log in...the form action is this code: SNIP 1== ? session_start(); if ($_REQUEST[use_name] $_REQUEST[use_psswrd]) { $connection = mysql_connect(SERVER,USER,PASS) or

[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

[PHP] RE: PHP/MySQL/XML

2002-04-01 Thread Jay Fitzgerald
($phone_list, /ext\n); } fwrite($phone_list, \t/phone_list\n); fwrite($phone_list, /test); fclose($phone_list); ? 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

[PHP] PHP/MySQL/XML

2002-04-01 Thread Jay Fitzgerald
; echo $home; echo \t\t\t/state\n; echo \t\t/friends; echo \t/contacts; echo /test; ? Can this be done and am I going about it the right way? 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

[PHP] if variable is equal to 2 through 4

2002-02-06 Thread Jay Fitzgerald
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...http

[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