5 Useful PHP Functions You might need while doing PHP Coding
Posted on Jun 26, 2010 | Leave a Comment
Sending email using PHP mail function:
function phpmail($mailto,$mailsubject,$mailbody,$mailfrom,$mailformat="",$bcc="")
{
if($mailformat=="html")
{
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $mailfrom\r\n";
}
else { $headers...
How to generate drop down of US states with PHP MySQL
Posted on Jun 15, 2010 | 1 Comment
In this article I’ll show you how to create a drop down having US state list quickly. This is a quick solution when you need to generate drop down list having all US states using PHP and MySQL. Just copy the below code in your php file and execute the SQL to populate the state data and you sre done. Since the state list will be coming from database so we can change the database at any point of time if we need any change....
Page 1 of 11
You can subscribe by e-mail to receive news updates and breaking stories.