[PHP] How do I ...

2006-03-02 Thread Anthony Rodriguez

Hi!

How do I un-subscribe to this list?

Thank you!

Anthony (Tony) Rodriguez
([EMAIL PROTECTED])

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



[PHP] How do I ...

2006-03-02 Thread Anthony Rodriguez

Hi!

How do I un-subscribe to this list?

Thank you!

Anthony (Tony) Rodriguez
([EMAIL PROTECTED]) 


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



[PHP] Video clip

2003-03-08 Thread Anthony Rodriguez
Hi!

In PHP, does anyone know how I would display a video clip (.avi?) on a 
specific spot on a Web page?

Thanks!

Tony



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


[PHP] Downloading files

2003-02-23 Thread Anthony Rodriguez
Hi!

In PHP, is there a way to allow the user to download a file (e.g.: 
sample.txt) to their computer? And, then, automatically return to the 
PHP-generated Web page.

How can the file be stored in C:\sample.txt, for example?

Thanks!

Tony





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


[PHP] Downloading files - Plz hlp

2003-02-23 Thread Anthony Rodriguez
Hi!

In PHP, is there a way to allow the user to download a demo file (e.g.: 
sample.exe) to their computer? And, then, automatically return to the Web site?

Thanks!

Tony





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


[PHP] Disable pic copy/save?

2003-01-23 Thread Anthony Rodriguez
Hi!

A client wants to test market two versions of an advertising but wants to 
disable the users' ability to copy/save the ads (right click, copy/save).

How can this be done in PHP?

Thanks!

Anthony F. Rodriguez
([EMAIL PROTECTED])




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



[PHP] PHP vs. ASP

2003-01-04 Thread Anthony Rodriguez
Hi!
How does PHP differs from ASP?

Are there any advantages in using PHP over ASP? Or the other way around?

Thanks!



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




[PHP] Authentication

2002-07-08 Thread Anthony Rodriguez

Dear Richard,

Again thank you for your reply. I'm sorry to keep bothering you. Please 
tell me when to stop.

Let me explain what I'm trying to do and maybe you'll point me in the right 
direction.

I'm developing a paid Web site for business courses. Some pages will be 
available to all visitors (e.g. the Home page). Other pages will be 
available to paid visitors. The usernames, passwords, and courses paid 
for will be stored in a MySQL table. One of the pages will be a form to ask 
a user for his/her username, password, and course paid for. The form will 
be sent to a PHP script that validates the responses. I' know how to do 
this. In that PHP script I'd like to create a session variable (i.e.: the 
course #) that would be used to validate each page of the course.

At the top of each course page (PHP script) there would be an if statement 
(if course # equals session variable display page, else go elsewhere).

Can you help?

Thank you!

Tony



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




[PHP] Passing variables

2002-07-08 Thread Anthony Rodriguez

Dear Justin,

After reading Kevin Yank's Managing Users ... at www.sitepoint.com, I 
tried the following 2 scripts. Unfortunately, the variable $course is NOT 
being passed to the 2nd script. Thus, per the script, the Home page is 
displayed. Why?

--- 1st script ---

?php
// file: root/reg_users_2.php, updated: 07/08/02
set_time_limit(300);
session_start();
session_register(course);
$course=stats_101;
header (location:estadisticas/contents.php);
flush();
exit;
?

--- 2nd script ---

?php
// file: root/estadisticas/contents.php, updated: 07/06/02
set_time_limit(300);
if ($course!=stats_101)
{
header(location:../index.htm); // Home page
flush();
exit;
}
else
{
echo 
html

--- HTML code here ---

/html

;
};
flush();
exit;
?

Thanks!

Tony



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




[PHP] Plz help w/ global variables

2002-07-07 Thread Anthony Rodriguez

To test global variables, I wrote the following PHP script:

(1)?php
(2)session_start();
(3)session_register(counter);
(4)$counter++;
(5)echo $counter;
(6)// header (location:statistics/contents.php);
(7)?

When the script is called several times, the variable is increased 
accordingly.  Thus, it exists globally.

But when I un-comment line (6), the Web page (contents.php) is displayed 
but I cannot echo the variable.

Why?

Thanks!

Tony

PS: Richard, thank you for your reply, but I still don't understand why is 
not passed.



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




[PHP] Help w/ sessionl variables plz!

2002-07-06 Thread Anthony Rodriguez

The following PHP script doesn't pass $course (statistics) to the next 
script.  Why?

?php
// file: root/reg_users_2.php, updated: 07/06/02
set_time_limit(300);
session_start();
session_register(course);
$course=statistics;
header (location:estadisticas/contents.php);
flush();
exit;
?

Thanks!

Tony



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




[PHP] User generated Web pages?

2002-07-04 Thread Anthony Rodriguez

I'm trying to develop a software package for end users with no knowledge of 
PHP.  The package would allow these users to generate Web pages displaying 
a custom questionnaire to be used by consumers to answer questions online.

I thought of writing a PHP script that asks the end users the type of 
questions to be displayed, the questions themselves to be displayed, and, 
if required, the responses to be displayed.  This information would be 
stored in a MySQL database.

I then would write another PHP script that would dynamically generate the 
questionnaire based on the information stored in the MySQL database.

The types of questions include text fields, radio buttons, check boxes, 
menu selections, and text areas.

Is this the right approach or is there another way?

Thanks!

Anthony Rodriguez
([EMAIL PROTECTED])







  to be 



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




[PHP] mail() source code

2002-05-28 Thread Anthony Rodriguez

When mail() sends, via sendmail,  an e-mail to an invalid address, it's 
returned to the envelope-sender (e.g.: the ISP), NOT returned to the 
from address, or the return-path address, etc. that are included with 
mail()'s 4th parameter.

I'm planning to write a modified mail() to include the true 
return-path. In order to do so, I need to communicate directly with 
sendmail  and, in my newbie's opinion,  a good start would be to review the 
source code of the mail().

Where can I find it?

Thank you!

Anthony F. Rodriguez
([EMAIL PROTECTED])



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




[PHP] Query/Error

2002-05-17 Thread Anthony Rodriguez

I've a php script that creates (inserts) a new record in a MySQL table. It 
executes, goes to the next page, but it doesn update the db

The db name and table name are OK.  I've printed the values passed to the 
script and it's OK too.

What code can I add to the script to find out the error of the query?

Here's the script:

?php

$connection=@mysql_connect(localhost,wagner,xyz) or die (No 
connection!);

$db=@mysql_select_db(sbwresearch_com,$connection) or die (No database!);

$qry_1=insert into scr_149
(
username,
e_mail,
q01a,
...
q07a,
date_done
)
values
(
'$username',
'$e_mail',
'$q01a',
...
'$q07a',
'$date_done'
)
or die (No query #1!);

$result_1=@mysql_query($qry_1,$connection);

mysql_close($connection);
header (location:scr_6.htm);
flush();
exit;
?



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




[PHP] No takers?

2002-05-06 Thread Anthony Rodriguez


Please HELP!

PROBLEM

When a php script uses mail() and sendmail, if the e-mail address is not 
right, the e-mail is returned to the envelope sender (the hosting 
provider), NOT to the From, Reply-To, Return-Path, or any other 
additional headers included in mail().

Apparently, this problem is faced by any user who utilizes a hosting provider.

SOLUTION

I've found 2 php classes (developed by Manuel Lemo) that address this problem.

The first, email_message.php was built to send MIME-encoded messages.

The second, sendmail_message.php extends the first by addressing the 
return-path problem.

Unfortunately, the first parses the message to allow sending MIME-encoded 
messages. For many who are only sending plain text messages, this is 
unnecessary processing.

HELP NEEDED

I would like to consolidate these 2 classes and eliminate the parsing. 
Unfortunately, I'm a newbie and need help from the pros.

If anyone is interested in participating in this project, please e-mail me 
directly at [EMAIL PROTECTED]

After completion this new class would be submitted to www.phpclasses.org 
for everyone to use.

Thanks!

Anthony F. Rodriguez
([EMAIL PROTECTED])


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




[PHP] F/U on sendmail return-path (not 4 newbies)

2002-05-05 Thread Anthony Rodriguez

I've tried the From header (4th parameter) in mail().  It doesn't work.

My ISP does run Apache but I have no access to their files.

Thanks!
At 06:56 PM 5/3/2002 +0100, you wrote:
On 3 May 2002 at 12:48, Anthony Rodriguez wrote:
  PROBLEM
 
  When a php script uses mail() and sendmail, if the e-mail address is
  not right, the e-mail is returned to the envelope sender (the hosting
  provider), NOT to the From, Reply-To,  Return-Path, or any other
  additional headers included in mail().
 
  Apparently, this problem is faced by any user who utilizes a hosting
  provider.

The envelope address can be set on a per script basis by setting the 
sendmail_from value
using ini_set(). Alternatively, if you are using Apache, you can set it in 
a .htaccess file.

--
Stuart


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




[PHP] sendmail return-path (not 4 newbies)

2002-05-03 Thread Anthony Rodriguez

PROBLEM

When a php script uses mail() and sendmail, if the e-mail address is not 
right, the e-mail is returned to the envelope sender (the hosting 
provider), NOT to the From, Reply-To,  Return-Path, or any other 
additional headers included in mail().

Apparently, this problem is faced by any user who utilizes a hosting provider.

SOLUTION

I've found 2 php classes (developed by Manuel Lemo) that address this problem.

The first, email_message.php was built to send MIME-encoded messages.

The second, sendmail_message extends the first by addressing the 
return-path problem.

Unfortunately, the first parses the message to allow sending MIME-encoded 
messages.  For many who are only sending plain text messages, this is 
unnecessary processing.

HELP NEEDED

I would like to consolidate these 2 classes and eliminate the 
parsing.  Unfortunately, I'm a newbie and need help from the pros.

If anyone is interested in participating in this project, please e-mail me 
directly at [EMAIL PROTECTED]

After completion this new class would be submitted to www.phpclasses.org 
for everyone to use.

Thanks!

Anthony F. Rodriguez
([EMAIL PROTECTED])


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




[PHP] Changing field size

2002-04-28 Thread Anthony Rodriguez

I've a VARCHAR(4) field that I want to change to a VARCHAR(6) field.

What would happen to the existing data in MySQL db?

Thanks!

Tony
([EMAIL PROTECTED])


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




[PHP] Return path (php/sendmail)

2002-04-12 Thread Anthony Rodriguez

Does Reply-To works for you?

My Web hosting provider runs php (4.1.1) / sendmail (8.10.2) / apache 
(1.3.20) / linux red hat (6.2) and I don't get bounced e-mails.

Any suggestions?

Tony
([EMAIL PROTECTED])


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




[PHP] Sendmail 8.10.2 headers

2002-04-08 Thread Anthony Rodriguez

As you may know, headers included in the 4th argument of PHP's mail() are 
sent to the outgoing mail server.

What header(s) can I send to sendmail 8.10.2 (running under Linux Redhat 
6.2) in order for invalid e-mails be returned to my e-mail address rather 
than my hosting provider's default address?

Thank you!

Tony Rodriguez
([EMAIL PROTECTED])



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




[PHP] F/U on Returned Mail

2002-04-06 Thread Anthony Rodriguez

In line 6 (below) I tried both Return_Path:[EMAIL PROTECTED] and 
[EMAIL PROTECTED]. I still don't get back the e-mail sent to a 
non-existent address.

Can you help?

Thank you!

Anthony Rodriguez
([EMAIL PROTECTED])

--- PHP script ---

(1) ?php
(2) mail([EMAIL PROTECTED],
(3) Test,
(4) Test,
(5) From:SBW Research [EMAIL PROTECTED]\r\n.
(6) [EMAIL PROTECTED]\r\n);
(7) exit;
(8) ?


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




[PHP] Return-Path

2002-04-05 Thread Anthony Rodriguez

Can you help me?

When I call the following script:

(1) ?php
(2) mail([EMAIL PROTECTED],
(3)  Test,
(4)  Test,
(5)  From:SBW Research [EMAIL PROTECTED]\r\n,
(6)  Return-Path:[EMAIL PROTECTED]\r\n);
(7) exit;
(8) ?

I get the following error message:

Warning: Wrong parameter count for mail() in ... (file_name) ... on line 6.

By the way, I tried it with and w/o the \r.

Any suggestions?

Thanks!

Anthony F. Rodriguez
([EMAIL PROTECTED])


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




[PHP] Returned e-mail (PHP mail function)

2002-04-04 Thread Anthony Rodriguez

I just send my ISP the following question:

One of my PHP scripts automatically sends a Thank You e-mail to users who 
just registered. I use PHP's mail function.

If, during registration, the user enters the wrong e-mail address the 
e-mail would, of course, be returned.

Who is the e-mail returned to? PHP's mail function, as far as I know, 
doesn't have a From field.

Any comments?

Thanks!

Anthony F. Rodriguez
([EMAIL PROTECTED])




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




[PHP] Help w/ join syntax

2002-03-11 Thread Anthony Rodriguez

When I call the following script, $qry_1 doesn't work (No Query # 1!).

?php
set_time_limit(300);
$connection=mysql_connect(localhost,wagner,???) or die (No 
connection!);
$db=mysql_select_db(sbwresearch,$connection) or die (No database!);

$qry_1=select
first_name.con_inf,
...
zip.con_inf,
label.svy_149
from con_inf, svy_149 where con_inf.username=svy_149.username;
$result_1=mysql_query($qry_1,$connection) or die (No query # 1!);
while ($row_1=mysql_fetch_array($result_1, MYSQL_ASSOC))
{
   $first_name=$row_1[first_name];
   ...
   $zip=$row_1[zip];
   $label=$row_1[label];
   if ($label==n)
   {
   $qry_2=insert into address_149
   (
   first_name,
   ...,
   zip)
   values (
   \$first_name\,
   ...,
   \$zip\
   );
   $result_2=mysql_query($qry_2,$connection);
   };
};

mysql_free_result($result_1);
mysql_close($connection);
echo bDONE/b;
flush();
exit;
?

Thanks!

Anthony F. Rodriguez
([EMAIL PROTECTED])


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




[PHP] Changed localhost?

2002-02-27 Thread Anthony Rodriguez

All of a sudden Apache is nor running correctly under Windows 98.

It appears that somehow localhost was changed from 127.0.0.1 to something else.

Does the fact that I now have a 24/7cable connection to the Net cause the 
problem?

Thanks!

Anthony Rodriguez
([EMAIL PROTECTED])



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




[PHP] Mail () problems - Need help!

2002-02-18 Thread Anthony Rodriguez

I''ve a php script that gets e-mail addresses from a MySQL db and then 
using the mail() sends the same message to 100+ recipients.

I tested the script twice.

FIRST TEST.

(1) I commented out the mail() routine.
(2) I looped to get the e-mail addresses.
(3) I echoed the e-mail addresses on the screen.

It worked fine (displayed 136 e-mail addresses) and fast!

SECOND TEST.

(1) I uncommented out the mail() routine.
(2) I used my own e-mail address as the recipient in the mail().

It was supposed to loop to get the e-mail addresses, display them on the 
screen, and send me an e-mail every time (136 times).

It loaded very slow (loading indicator). Finally it displayed url not 
found with the name of the script file. And, I got no e-mails.

Is there a conflict between php mail() and the mail server when multiple 
e-mails are involved?

Thanks!

Anthony F. Rodriguez
([EMAIL PROTECTED])


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




[PHP] Duplicate e-mails

2002-02-17 Thread Anthony Rodriguez

I've a php script that gets e-mail addresses from a MySQL database and then 
sends the same e-mail message to about 100+ addressees. There are no 
duplicate addresses in the db.

When I call the script the e-mails do get send but in duplicate and, 
instead of linking to a Task Done page,  it shows url not found.  There 
is no duplication within the script and the url called is there in the same 
folder as the script.

Is there a problem with php's mail function when it's used for multiple 
messages?  Or is there a processing time limit that makes the script to be 
processed twice?

Scripts are run using Apache under Unix.

Thank you!

Anthony F. Rodriguez
([EMAIL PROTECTED])


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




[PHP] Duplicate e-mails

2002-02-05 Thread Anthony Rodriguez

The following php script sends two (2) e-mails to each addressee.  Why?

?php

$connection=mysql_connect(localhost,wagner,XXX) or die (No 
connection!);

$db=mysql_select_db(sbwresearch,$connection) or die (No database!);

$message= Dear consumer,\n
The following are the online surveys ...  etc.\n;

$qry_1=select * from con_inf;

$result_1=mysql_query($qry_1,$connection) or die (No query # 1!);

while ($row_1=mysql_fetch_array($result_1, MYSQL_ASSOC))

{
$e_mail=$row_1[e_mail];
mail($e_mail,
  News from SBW Research,
  $message,
  From:SBW Research [EMAIL PROTECTED]\n);
};

mysql_free_result($result_1);

mysql_close($connection);

header (location:done.htm);

exit;

?

Anthony Rodriguez
([EMAIL PROTECTED])


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




[PHP] Plz help w/ query

2002-01-31 Thread Anthony Rodriguez

The following query displays 0 e-mails.  Why?

Tbl con_inf holds 51 records w/  51 usernames.  Tbl scr_149 holds 37 
records with 37 equivalent usernames of which 14 show date_done=0.

?php

$connection=mysql_connect(localhost,wagner,xxx) or die (No 
connection!);

$db=mysql_select_db(sbwresearch,$connection) or die (No database!);

$qry_1=select con_inf.e_mail from con_inf, scr_149 where 
scr_149.date_done=\0\ AND con_inf.username=scr_149.username;

$result_1=mysql_query($qry_1,$connection) or die (No query # 1!);
while ($row_1=mysql_fetch_array($result_1, MYSQL_ASSOC))
{
$e_mail=$row_1[e_mail];
echo $e_mail\n;
};

mysql_free_result($result_1);
mysql_close($connection);
exit;
?

Thanks!

Anthony F. Rodriguez
([EMAIL PROTECTED])


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




[PHP] Why while doesn't work?

2002-01-24 Thread Anthony Rodriguez

Although the table con_inf in db sbwresearch contains 3 records with 
username as the first column,  the following short script generates a blank 
page:

?php
$connection=mysql_connect(localhost,wagner,xyz) or die (No 
connection!);
$db=mysql_select_db(sbwresearch,$connection) or die (No database!);
$qry_1=select * from con_inf;
$result_1=mysql_query($qry_1,$connection) or die (No query # 1!);
while ($row_1=mysql_fetch_array($result_1,mysql_assoc))
{
   $username=$row_1[username];
   echo $username;
};
mysql_free_result($result_1);
mysql_close($connection);
exit;
?

Why?  I've use the statement in other scripts and it works!

Thanks!


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




[PHP] Plz help w/ php/MySQL

2002-01-05 Thread Anthony Rodriguez

The following php script successfully e-mails both messages but it doesn't 
update in the table scr_149 the column notified.  Why?

?php
$connection=mysql_connect(localhost,wagner,123) or die (No 
connection!);

$db=mysql_select_db(sbwresearch_com,$connection) or die (No database!);

$message_1=

Congratulations!\n\n
You've qualified to take the online survey # 149.\n\n
To take the survey, go to www.sbwresearch.com and click on Survey / Tests.\n\n

;

$message_2=

Sorry!\n\n
You've not qualified to take the online survey # 149.\n\n
We'll notify you by e-mail of upcoming screeners.

;
$qry_1=select * from scr_149 where q05a!=\0\  notified=\n\;
$qry_2=update scr_149 set notified='y' where username='$username';
$result_1=mysql_query($qry_1,$connection) or die (No query # 1!);
while ($row_1=mysql_fetch_array($result_1, MYSQL_ASSOC))
{
$username=$row_1[username];
$e_mail=$row_1[e_mail];
mail($e_mail,
  News from SBW Research,
  $message_1,
  From:SBW Research [EMAIL PROTECTED]\n);
$result_2=mysql_query($qry_2,$connection) or die (No query # 2!);
};

mysql_free_result($result_1);

$qry_3=select * from scr_149 where q05a=\0\  notified=\n\;
$qry_4=update scr_149 set notified=\y\ where username='$username';
$result_3=mysql_query($qry_3,$connection) or die (No query # 3!);
while ($row_2=mysql_fetch_array($result_3, MYSQL_ASSOC))
{
$username=$row_2[username];
$e_mail=$row_2[e_mail];
mail($e_mail,
  News from SBW Research,
  $message_2,
  From:SBW Research [EMAIL PROTECTED]\n);
$result_4=mysql_query($qry_4,$connection) or die (No query # 4!);
};

@mysql_free_result($result_3);
@mysql_close($connection);
header (location:done.htm);
exit;
?

Thanks!

Anthony F. Rodriguez
([EMAIL PROTECTED])


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




[PHP] Going blind? Plz hlp w/ parse error

2001-09-19 Thread Anthony Rodriguez

Please help! There is a parse error in like 10:

?php

// file: root/reg/add_2.php, updated: 08/25/01

$connection=@mysql_connect(localhost,afrodriguez,xxx) or die (No 
connection!);

$db=@mysql_select_db(sbwresearch,$connection) or die (No database!);

$qry_1=select * from cust_info where username=\$username\;

$result=@mysql_query($qry_1,$connection) or die (No query # 1!);

$row_1=@mysql_affected_rows();

if ($row_1==0)

{

   $qry_2=insert into cust_info (username,password,mother) values 
($username,$password,$mother) or die (No query #2!);

   $result=@mysql_query($qry_2,$connection);

   @mysql_free_result($result);

   @mysql_close($connection);

   echo 

   html

   etc.

Thank you!


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




[PHP] Help w/ sprintf

2001-03-03 Thread Anthony Rodriguez

What are the directives for the sprintf function to format an integer with 
commas (e.g.: 1,250,560)?

Thanks!


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