Greetings,
I have been searching through the Squirrelmail source trying to get a handle on php mail handling functions.
I had been using Squirrelmail quite a bit, but realized that I want to have a copy of my sent mail on my computer. My goal is to write a light weight script that will loop...
DISREGARD!!! I see my error. was using a script someone handed me for the project... just saw the striptags and solved it anyway.
THANKS ANYWAY. CODERS should sleep at least 3 hours a night!
Simply trying to put a remove me link in a news letter. The remove me line does not contain the link.
I have a variable with the string for the link:
$remove=" \n \n Click <a href='removeme.php?email='" . $recipient . "'>Here</a> to unsubscribe.";
Then I have the function:
function...
Thanks to All.
vbkris Concise complete answere! I figured out the line breaks saved in the table when I dropped the data back into a textarea for editing they were magicly there!
Another project or to like this and I'll no longer be a "rusty" programmer!
Charlie
So I've been out of programming for a year and when I was in it it was a different language!
My question is simple. I have a textarea on a form. I want to be able to store the linebreaks with the text in a text feild on a mySQL.
I have a distant memory about looping throught the text lines...
I can find a longer way around my problem, but when I was doing a lot of asp/MS SQL stuff I sued to do write some pretty specific queries. I tried this through phpMyAdmin and received syntax errors. I guess what I want to know more than anything is, is it possible in php/mysql?
SELECT...
Actually I found the problem:
WHERE (email ='$email' OR username='user_name')";
was missing the $ at ='user_name')
I was getting results somehow anyway!
Not only that I found some flaws in my logic. If the e-mail already exists, it doesn't matter if the username was taken by someone else, the...
kenrbnsn,
Good thought for the error reporting, but the query was going through.
Woody,
The error reporting didn't snag the query until I put in th brackets! But I am going to look for a list of resever words to avoid that in the future.
This is going to be a fun one!
Charlie
Greetings all. I'll admit I'm far more comfortable with asp/sql than php. I know exactly how to acheive the result I'm looking for there.
Anyhow I'm getting a "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /blabla/update_user.php on line 54" error...
Thank you both for the info. I should have posted rather than just use the thank user function.
WoodyRoundUp's answer got me where I needed to be. The display name has no commas ansd is not likely to change, but I will try to remember it for the future just in case. That is the sort of thing...
I am trying to make a display name show up in an email:
$headers = "From: test name\r\n";
mail($to,$sub,$mess,$headers);
My email shows:
test@xxxx.xxxx.com, name@xxxx.xxxx.com
I know there has to be a way to get "test name" to come through by itself!
Thanks,
Charles
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.