Search Help Board

PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help

C# Help

?displaying mysql database
Date:???05-03-04 04:02

hello, i am displaying mysql database results with php. one of my rows displays an email address. I would like to display these email addresses as a link AND have each link have the same subject line.

example: display [email protected], [email protected] etc.. and have the subject for both say "please email me"

Is there a way to do this, and if so please tell me how :)

thank you

?Re: displaying mysql database
Date:???05-03-04 05:43

Sure is, are you looking to use the MAILTO: attribute in the href (to use the clients email program?) or are you going to pass this to a custom email script that you are going to write?

The below is to use the client email program (ie Outlook)

echo "".$rows['email']."";

?Re: displaying mysql database
Date:???05-03-04 16:00

bastien, or anyone else...can u tell me what i am doing wrong with this code, i tried to insert your code, but i am getting a parse error. here is the code, i am displaying the rows in alternating colors... can u insert your portion of coding for the email into this the correct way, i can't get it. thanks agian!!!!

echo "\n";
echo "\n";
for($i = 0; $i < $numofrows; $i++) {
$row = mysql_fetch_array($result); //get a row from our result set
if($i % 2) { //this means if there is a remainder
echo "\n";
} else { //if there isn't a remainder we will do the else
echo "\n";
echo "\n";
echo "\n";
//now let's close the table and be done with it
echo "
Last NameFirst NameEmail AddressYear Graduated

?Re: displaying mysql database

Date:???05-04-04 05:13

echo "
Go to Top??|??Go to Topic??|??Threaded View??|??Search?
New Topic
?Reply To This Message
?Your Name:
?Your Email:
Email replies to this thread, to the address above.

Provided By