Type: Posts; User:
I see. Well in that case, I withdraw my correction. Thank you for pointing that out to me, as I didn't know that there was an exception for "Dear someone" ;)
* Some random English forum
* Rule 4...
I'm gonna play Grammar Nazi for a second. You should always add a comma before someone's name when addressing them. For example "Dear, John" or "Hello, Sarah."
$body = "Dear, " . $fn . " " ....
Good thinking. I'll definitely keep that in mind for future use. :)
You should also check that $_GET['famType'] is a key in $famTypes before attempting to use them together.
$famTypes = array(
"M01" => "X01 - First family",...
If it happens the next day and not immediately, it could be a cron job or some other scheduled task clearing your table.
I also run most data through htmlspecialchars(). It converts HTML to character codes, so it doesn't effect the page.
I'm a NetBeans user coming from TextWrangler. While all I really "needed" was syntax highlighting, having the automatic error checking made my development go so much faster. And of course the auto...
I'm glad we have NogDog on this forum. It it weren't for his wicked awesome mastery of the PHP language, I'd still be stuck in some nasty holes.
You probably have to download the button images and upload them to your server. There's no domain in the image source, so it's assuming the images are in the same directory as your HTML page.
That's for sure.
I kind of prefer the syntax of languages like Python, where if you don't properly indent code, it simply doesn't work.
if x < y:
One thing that I think is worth mentioning, and I've seen in some examples here already, is that SQL can and should span multiple lines. From what I've seen, a lot, if not most people tend to write...
As I understand it, if you compile the script, there is little or no guarantee that it will work on their web host. Also, it's very unusual to sell someone a closed source script, and you run the...
I used this all the time before I started doing my own graphics.
You could compile it as a CGI script I think. However, when most people buy code modules or websites, they want it to be editable.
You have to call that function BEFORE any other output, including HTML and echoed text.
Are you by chance taking Zend certification?
What he said. And you should also check all the post variables you're using, not just one.
Last I checked, session_start() needs to be called before anything is output, or you'll have errors. Basically you should be doing script work before putting any text or HTML on the page. This takes...
Generally you'd want to use sessions instead of cookies for user login. And if reg_form_detail.php is being included, that means your condition is true. So obviously either $_COOKIE['user_id'] is no...
Usually the way you'd accomplish this would be to put your menu in a separate file and function, and include that file where you need it. For example:
foreach ($seeds as $supercolor)
echo '<option value="', $supercolor, '" SELECTED>', $supercolor, '</option>';
I believe that code would go in the file you wish to disable magic quotes on. Sort of an on the fly option.
You could probably also put the file outside the public_html directory, and use readfile() to get it. That would keep people from accessing it directly, should they guess the url of the file itself.