[PHP] Problems to log into my application as an Admin

2003-03-04 Thread Ricardo Fitzgerald
Hi to all,

I designed an application for managing mailing lists, but something
really strange happened, I logged in as an admin only once and then it
only allows me to log as a regular user, if I try to use the admin user
it keeps returning the error messages.

I used sessions to distinguish between regular and administrators, but
because I'm not hosting in house, my host provider didn't bring any logs
so I don't know where the error might be.

Any Ideas ?

Rick Fitzgerald

Off Price Closeouts
1700 W 8 Ave
Miami, FL 33010
(305) 888 2555
FAX (305) 884 1761




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Problems to log into my application as an Admin

2003-03-04 Thread Ricardo Fitzgerald
I'm hosting at a hosting provider, that's not my ISP which is Bellsouth.
They are ezoshosting.com.

Thank you

Rick


Off Price Closeouts
1700 W 8 Ave
Miami, FL 33010
(305) 888 2555
FAX (305) 884 1761


-Mensaje original-
De: Denis L. Menezes [mailto:[EMAIL PROTECTED] 
Enviado el: Tuesday, March 04, 2003 11:14 AM
Para: Ricardo Fitzgerald
Asunto: Re: [PHP] Problems to log into my application as an Admin

Ricardo,

Are you hosting the server yourself or at an ISP?

Denis
- Original Message - 
From: Ricardo Fitzgerald [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 12:00 AM
Subject: [PHP] Problems to log into my application as an Admin


 Hi to all,
 
 I designed an application for managing mailing lists, but something
 really strange happened, I logged in as an admin only once and then it
 only allows me to log as a regular user, if I try to use the admin
user
 it keeps returning the error messages.
 
 I used sessions to distinguish between regular and administrators, but
 because I'm not hosting in house, my host provider didn't bring any
logs
 so I don't know where the error might be.
 
 Any Ideas ?
 
 Rick Fitzgerald
 
 Off Price Closeouts
 1700 W 8 Ave
 Miami, FL 33010
 (305) 888 2555
 FAX (305) 884 1761
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Mail (), BBC: recipients not receiving my Newsletter

2003-02-27 Thread Ricardo Fitzgerald
I'll Try that instead :)
Thnx!

Rick

Off Price Closeouts
1700 W 8 Ave
Miami, FL 33010
(305) 888 2555
FAX (305) 884 1761


-Mensaje original-
De: Jason k Larson [mailto:[EMAIL PROTECTED] 
Enviado el: Wednesday, February 26, 2003 5:59 PM
Para: Ricardo Fitzgerald
CC: [EMAIL PROTECTED]
Asunto: Re: [PHP] Mail (), BBC: recipients not receiving my Newsletter

What about using a ';' semicolon seperated list.

Ricardo Fitzgerald wrote:
 Hi to all,
 
 I wrote a small form which dumps data to a php script that uses mail
()
 to send an html newsletter, so far is working except
 that it's not sending to BCC: headers, in my form I have a field to
 enter a comma delimited email list, after submiting the form this list
 is stored under one variable $emaillist, and in my php script I used
 $headers .= Bcc: .$emaillist.\r\n;
 
 then I call 
 
 mail($to, $subject, $message, $headers);
 
 I don't receive an error message but my email list is not being sent,
 what I'm doing wrong ?
 
 Rick Fitzgerald
 
 Off Price Closeouts
 1700 W 8 Ave
 Miami, FL 33010
 (305) 888 2555
 FAX (305) 884 1761
 
 
 
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Mail (), BCC: recipients not receiving my Newsletter

2003-02-27 Thread Ricardo Fitzgerald
It's not working either ...

Rick

Off Price Closeouts
1700 W 8 Ave
Miami, FL 33010
(305) 888 2555
FAX (305) 884 1761


-Mensaje original-
De: Jason k Larson [mailto:[EMAIL PROTECTED] 
Enviado el: Wednesday, February 26, 2003 5:59 PM
Para: Ricardo Fitzgerald
CC: [EMAIL PROTECTED]
Asunto: Re: [PHP] Mail (), BBC: recipients not receiving my Newsletter

What about using a ';' semicolon seperated list.

Ricardo Fitzgerald wrote:
 Hi to all,
 
 I wrote a small form which dumps data to a php script that uses mail
()
 to send an html newsletter, so far is working except
 that it's not sending to BCC: headers, in my form I have a field to
 enter a comma delimited email list, after submiting the form this list
 is stored under one variable $emaillist, and in my php script I used
 $headers .= Bcc: .$emaillist.\r\n;
 
 then I call 
 
 mail($to, $subject, $message, $headers);
 
 I don't receive an error message but my email list is not being sent,
 what I'm doing wrong ?
 
 Rick Fitzgerald
 
 Off Price Closeouts
 1700 W 8 Ave
 Miami, FL 33010
 (305) 888 2555
 FAX (305) 884 1761
 
 
 
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Mail (), BBC: recipients not receiving my Newsletter

2003-02-27 Thread Ricardo Fitzgerald
Hi Manuel,

I've dl your class and read some of your test scripts, but it's not
working at all 
I tested using test_personalized_bulk_mail.php
And I got :'Error: it was not possible to send email message'

Thank you,

Rick

Off Price Closeouts
1700 W 8 Ave
Miami, FL 33010
(305) 888 2555
FAX (305) 884 1761


-Mensaje original-
De: Manuel Lemos [mailto:[EMAIL PROTECTED] 
Enviado el: Wednesday, February 26, 2003 11:35 PM
Para: [EMAIL PROTECTED]
Asunto: [PHP] Re: Mail (), BBC: recipients not receiving my Newsletter

Hello,

On 02/26/2003 07:40 PM, Ricardo Fitzgerald wrote:
 I wrote a small form which dumps data to a php script that uses mail
()
 to send an html newsletter, so far is working except
 that it's not sending to BCC: headers, in my form I have a field to
 enter a comma delimited email list, after submiting the form this list
 is stored under one variable $emaillist, and in my php script I used
 $headers .= Bcc: .$emaillist.\r\n;
 
 then I call 
 
 mail($to, $subject, $message, $headers);
 
 I don't receive an error message but my email list is not being sent,
 what I'm doing wrong ?

It sounds like one of those bugs of the mail function but it is hard to 
tell what can it be with so little information.

Anyway, you may want to try this class for composing and sending e-mail 
messages that comes with workaround for many problems of the mail() 
function:

http://www.phpclasses.org/mimemessage


-- 

Regards,
Manuel Lemos


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Mail (), BBC: recipients not receiving my Newsletter

2003-02-26 Thread Ricardo Fitzgerald
Hi to all,

I wrote a small form which dumps data to a php script that uses mail ()
to send an html newsletter, so far is working except
that it's not sending to BCC: headers, in my form I have a field to
enter a comma delimited email list, after submiting the form this list
is stored under one variable $emaillist, and in my php script I used
$headers .= Bcc: .$emaillist.\r\n;

then I call 

mail($to, $subject, $message, $headers);

I don't receive an error message but my email list is not being sent,
what I'm doing wrong ?

Rick Fitzgerald

Off Price Closeouts
1700 W 8 Ave
Miami, FL 33010
(305) 888 2555
FAX (305) 884 1761




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Bar Codes

2002-11-05 Thread Ricardo Fitzgerald
Hi,

I'm developing a php application to display and print discount coupons, with
a barcode in them, my problem is the server where php is, doesn't have gd
compiled with the ttf option it does have the t1, this is the first time I'm
developing this kind of application using php and I'm not sure which font I
should upload to the server (it must be free) and if there is one.

BTW this application will run under  PostNuke CMS.

Thanks

Rick



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Date formatting from a mySQL timestamp

2002-10-16 Thread Ricardo Fitzgerald

Hi,

I have the following query :
for($i = 0; $i =$num_results; $i++)
{
$row = mysql_fetch_object($result);
echo table width =\100%\ border =\0\ cellpadding = \3\\n
   .tr\n
   .td bgcolor = \#ee\ align = \left\$row-id/td\n
   .td bgcolor = \#ee\ align = \left\$row-Nombre/td\n
   .td bgcolor = \#ee\ align = \left\$row-Apellido/td\n
   .td bgcolor = \#ee\ align = \left\$row-Direccion/td\n
   .td bgcolor = \#ee\ align = \left\$row-Ciudad/td\n
   .td bgcolor = \#ee\ align = \left\$row-Telefono/td\n
   .td bgcolor = \#ee\ align = \left\$row-Mail/td\n
   .td bgcolor = \#ee\ align = \left\$row-Pais/td\n
   .td bgcolor = \#ee\ align = \left\.date(r,
$row-date).td\n
// My problem is it's getting the wrong date no matter what I do, every line
displays Jan 2038 !!!
   ./tr\n
   ./table\n;
If I try another strings i got errors the row $date is in MYSQL unix
timestamp. and i would like to format it.
BTW I would like a better alignment and format also ...

TIA

Regards,

Rick


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP and ORACLE

2002-07-12 Thread Ricardo Fitzgerald

Hi,

I started with PHP and MYSQL a while ago and now I've been involved in
a huge database project with ORACLE. 
My point is I never used it nor develop with ORACLE, so I want to know
where and what kind of information I need to port my web application
developed with php and mysql to port it to ORACLE, and where can I
find information regarding HUGE database applications design using
php.

So far I only have the book Designing Web Applications using PHP and
MySQL by Luke Wellington, and MySQL by Paul Dubois.

And i don't have any kind of experience with Oracle, so I would
appreciate any recommendations from experienced developers.

TIA,
Regards,
Ricardo Fitzgerald



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: (OT) Our Spam Friend ;))))))))))))))))) 8PPP

2002-07-10 Thread Ricardo Fitzgerald

heheheehhee
;))


 Serves our spam friend right... now we can get on with our lives.
 
 Chris Shiflett [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  I just thought this was worth sharing. :-)
 
  - The following addresses had permanent fatal errors -
  [EMAIL PROTECTED]
 
  - Transcript of session follows -
  RECIPIENTS MAILBOX IS FULL
  554 [EMAIL PROTECTED]... Service unavailable
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Logic -- conditional statements

2002-06-04 Thread Ricardo Fitzgerald

Hi to all,

I'm trying to echo a neat table with values from a form, depending on
the values it echoes a table with one row with two or with three:
Then I have conditional nested statements, to validate these variables
and wrote the table with the proper values in each case, the problem
is the table is displayed 3 times instead of 1 each time it finds a
value TRUE!

I need it to display only once, I mean in the first instance the
table, has 1 row, the second 2 rows, the third 3 rows, and they are
independent.

The code is something like:
//Value1 is always 1 
if ($value1 == 0)
{
exit
}
if ($value2 ==0)
{
echo // echoes the table
.
.  
.td ... $variable1 ... 
.td ... $variable2... 
.td ... $variable3 ... 
.td ... $variable4 ... 

}
if($value2 == 0)
{

.
.  
echo // echoes the table
.
.  
.td ... $variable1 ... 
.td ... $variable2... 
.td ... $variable3 ... 
.td ... $variable4 ... 

.tr  /next row
.  
.td ... $variable5 ... 
.td ... $variable6... 
.td ... $variable7 ... 
.td ... $variable8 ... 
./tr
.
.
}
if($value3 == 3)
{
  
.
.  
echo // echoes the table
.
.  
.td ... $variable1 ... 
.td ... $variable2... 
.td ... $variable3 ... 
.td ... $variable4 ... 

.tr  /next row
.  
.td ... $variable5 ... 
.td ... $variable6... 
.td ... $variable7 ... 
.td ... $variable8 ... 
./tr
.
.  
.td ... $variable9 ... 
.td ... $variable10... 
.td ... $variable11 ... 
.td ... $variable12 ... 
./tr
.
.
//and then closes the php script, 

TIA

Regards,

Rick

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Code dilema -- '.NULL.' or '.NULL.' or ...

2002-06-02 Thread Ricardo Fitzgerald

Hi,

I'm having troubles trying to insert form data into a mysql db, the
thing is my client wants table data to be splitted, I mean some data 
comes from the first form, and the rest from another form.
Then this is a portion of the php script.

// Add together proper fields to enter birth date
$fecha_nac = $ano_nac  + - + $mes_nac + - + $dia_nac;

// Open mysql db
mysql_select_db(intertur);

// SQL query insert all data into a table
$query = insert into RegistroPersonas values
('.NULL.','.$nombre.', '.$apellido.', '.NULL.', 
'.$direccion.', 
'.$ciudad.', '.NULL.',   '.NULL.', '.$pais.', '.$telefono.', 
'.$fax.', '.$email.', '.$login_usuario.', '.$clave.', 
'.$fecha_nac.',  '.NULL.',  '.NULL.' '.$sexo.',  '.NULL.',  
'.NULL.', '.NULL.', '.NULL.' );
 My problem is NOTHING gets inserted !!! 
 I filled all empty fields with NULL values
 It connects to the db but does nothing else
// Do query  
$result = mysql_query($query);

// this script has a form at the end, where the remaining fields are
// filled
// and calls the next script, where the tables are altered
// there and the empty fields filled with the values retrieved

I suppose to use Update in the next script , to enter remaining
data, but I'm not sure because the first field auto increments, 
and is the primary key.

TIA

Rick
AXIS Computers

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Postnuke Anyone ?

2002-05-05 Thread Ricardo Fitzgerald

Kirk,

Thanx for your help, I've tried with another script and it worked, I
successfully retrieved variable content after issueing a POST, I had
to add my code after the heather code --- 
?php header code ?
?php my code ?
? footer code ?

This code simply posts the form and uses javascript to validate form
contents before submit. But I still couldn't make my prior code to
work, because variable data is not outputed to mysql db, and I'm
getting parsing errors.

BTW is there a way to know the type of error code is producing ?

TIA 

Cheers,

Rick



Thanks for your help 


 Ricardo,
 I have noticed several things from just a quick look at your code:
 
  1. If your not able to post any data/receive any variables from your form
 when the submit button is clicked, you could have register_globals set to
 Off.  Here is a example form used for that situation:
 
 form name=form1 method=post action='?php $_SERVER['PHP_SELF'] ?'
   centerinput type=submit name=register value=REGISTER
 
 Please note that I used $_SERVER instead of PHP_SELF alone, and note the use
 of the single quotes.  This is done when register_globals is turned off,
 which I have learned is the best way to write your scripts (thanks to the
 other guys  gals on this discussion board).
 
 2. Using
 if (isset($submit)) { stuff..}
 
 is another thing i've been taught to do, rather than if($submit).
 
 3. You haven't given a variable name to your submit button:
 input type=submit value=Enviar/form
 
 give the submit button a name=submit and you will actually have a variable
 which your script can pick up.  Otherwise nothing will happen.
 
 HTH,
 
 -Kirk
 
 Ricardo Fitzgerald [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi,
 
  I've been unsuccesfully trying to add a php script to a postnuke menu.
  What I did is a simple form, that connects to a mysql database, and
  inserts data, then some data is retrieved to generate a page with
  Welcome $name $lastname ... and so on
  The problem is the script must be in the center and must include the
  header, the footer and the left block, I don't understand many things
  from the way postnuke works, and I couldn't display any variable
  entered in the form, neither insert data into the db ...
  I've tried with action=some.php and action=?php PHP_SELF?;
  so far I only got parsing errors.
 
  Any ideas ?
 
  Regards,
 
  Rick
 
 
 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Postnuke Anyone ?

2002-05-04 Thread Ricardo Fitzgerald

 How about some code?
 
 
 Here is the code
?php

include 'includes/pnAPI.php';
pnInit();
include 'includes/legacy.php';
pnThemeLoad();

# includes the mainfile functions and the header junk
if (!isset($mainfile)) { include(mainfile.php); }
include(header.php);
# When submit starts db connection and inserts data from the form

if ($submit) {
$db=mysql_connect(localhost, mysql, 10987654321);
mysql_select_db(intertur,$db);
$sql=INSERT INTO RegistroPersonas (nombre,apellido,pais,email,login_usuario,clave) 
VALUES ('$nombre','$apellido','$pais','$email','$login_usuario','$clave');
$result=mysql_query($sql);
echo Bienvenido $nombre $apellido.\n;
} else {

#Otherwise starts form input

 ?

pnbsp;nbsp;bINTEGRACION REGIONALbrnbsp;nbsp;LA HACE QUIEN 
TRABAJAbrbrbrstrongnbsp;nbsp;nbsp;nbsp;TEXTO/strongbr/p
brbrbrpnbsp;nbsp;UNIDOS E INTEGRADOSbrnbsp;nbsp;ELEGIMOS NUESTRO 
DESTINObrbrbrstrongnbsp;nbsp;nbsp;nbsp;TEXTO/b/strongbr/p
bh3nbsp;nbsp;Registrarse/h3/bnbsp;
table cellpadding=2 cellspacing=1 align=right width=400 style=font-family: 
tahoma, verdana, arial, helvetica, sans-serif; tr
form  method=POST action=php? echo $PHP_SELF?
tdstrongNombre/strong/td
tdstrongApellido/strong/td
tdstrongPaiacute;s/strong/td
/tr
tr
tdinput type=text name=nombre size=20 maxlength=25 /td
tdinput type=text name=apellido size=20 maxlength=25 /td
tdselect name=paisoption value=1Argentina/optionoption 
value=2Brasil/optionoption value=3Bolivia/optionoption 
value=4Chile/optionoption value=5Paraguay/optionoption 
value=6Uruguay/option/select/td
/tr
tr
tdstrongEmail/strong/td
tdinput type=text name=email size=20 maxlength=25 /td
tdstrongAlias/strong/td
/tr
tr
tdstrongClave/strong/td
tdinput type=text name=login_usuario size=20 maxlength=25 /td
tdinput type=text name=clave size=20 maxlength=25 /td
/tr
tr
tdstrongRepita la Clave/strong/td
tdinput type=text name=repclave size=20 maxlength=25 /td
td/td
/tr
tr
tdstrongSexo/strong/td
tdinput type=radio name=sexo value=masculino masculinobr
input type=radio name=sexo value=femenino femenino/td
tdstrongFecha de Nacimiento/strong/td
/tr
tr
tdnbsp;/td
tdnbsp;input type=submit value=Enviar/form/td
tdnbsp;/td
/tr

/table
?php
}
?

?php
// include footer junk
include(footer.php);
?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Postnuke Anyone ?

2002-05-03 Thread Ricardo Fitzgerald

Hi,

I've been unsuccesfully trying to add a php script to a postnuke menu.
What I did is a simple form, that connects to a mysql database, and
inserts data, then some data is retrieved to generate a page with
Welcome $name $lastname ... and so on
The problem is the script must be in the center and must include the
header, the footer and the left block, I don't understand many things
from the way postnuke works, and I couldn't display any variable
entered in the form, neither insert data into the db ...
I've tried with action=some.php and action=?php PHP_SELF?;
so far I only got parsing errors.

Any ideas ?

Regards,

Rick



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Print statements , syntax , usage, etc

2001-10-22 Thread Ricardo Fitzgerald

Hi,

ยก'm new to php, but not to programming, I'm having problems using a simple print 
statement :


*print 'td width=25% bgcolor=#FcaF00bfont face=Tahoma, Verdana, Arial, Sans 
SerifRef:/fontb//td';*
*print 'td width=25% bgcolor=#00bfont face=Tahoma, Verdana, Arial, Sans 
Serif$reference/fontb//td';*

the problem is with the output, the table is fine but the variable $reference otputs 
it's name $reference instead of it's value i.e. 345. I'm getting mad because I know 
this has to be some kind of syntax error but I tried exchanging quotes for double 
quotes, adding parenthesis and stuff like that and I couldn't figure out what the prob 
is ...

Regards,
Rick

Right the output shows Ref:$reference 




--
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 administrators, e-mail: [EMAIL PROTECTED]