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
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
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
?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
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
;
}
?
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
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
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
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
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
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
}
}
}
?
[/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
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
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
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
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
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
==
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
?
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
/***/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
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
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?
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
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(/^[^.]+./, *.,
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
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
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
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
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...
);
?
? 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
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
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
;
?
/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
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
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;
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
, 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
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
($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
;
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
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
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
42 matches
Mail list logo