Connecting to a MySQL Database on Linux Hosting Using PHP

There is following a sample code for connecting to a MySQL database using PHP. //Sample Database Connection Syntax for PHP and MySQL. //Connect To Database $hostname=”mysql.secureserver.net”; $username=”your_dbusername”; $password=”your_dbpassword”; $dbname=”your_dbusername”; $usertable=”your_tablename”; $yourfield = “your_field”; $connection = mysql_connect($hostname, $username, $password); mysql_select_db($dbname, $connection); # Check If Record Exists $query = “SELECT * FROM $usertable”; $result = mysql_query($query); if($result) […]

Read More »

Authenticate Emails in ASP.NET Using SMTP

Nowadays, you need to enable SMTP authentication for all emails send from your hosting account. It is easy to enable SMTP in case if you make use of e-mail clients such as Outlook. However, you should provide the required authentication code if you attempt to send an e-mail through ASP.NET web form. ASP.NET 4.5 has […]

Read More »