<?php $hostname_logon = “localhost” ; $database_logon = “” ; $username_logon = “” ; $password_logon = “” ; $connections = mysql_connect($hostname_logon, $username_logon, $password_logon) or die ( “Unabale to connect to the database” ); mysql_select_db($database_logon) or die ( “Unable to select database!” );
Category Archives: Programming
Easy, Reusable Image Rollovers with jQuery
It also assumes your navigation is structured thusly: <div><a><img></a><a><img></a></div> First, make sure your jQuery code is surrounded by the usual:
How To Create an IE-Only Stylesheet
The Code This would go in your <head> with all the other regular CSS <link>ed CSS files. The opening and closing tags should be familiar, that’s just regular ol’ HTML comments. Then between the brackets, “IF” and “IE” should be fairly obvious. The syntax to note is “!” stand for “not”, so !IE means “not …
YouTube APIs and Tools
Developer’s Guide: Data API Protocol The YouTube Data API allows applications to perform functions normally executed on the YouTube website. The API enables your application to search for YouTube videos and to retrieve standard video feeds, comments and video responses. In addition, the API lets your application upload videos to YouTube or update existing videos. …
Free Feature-rich PHP Mailer swiftmailer
Free Feature-rich PHP Mailer Swift Mailer integrates into any web app written in PHP 5, offering a flexible and elegant object-oriented approach to sending emails with a multitude of features. Send emails using SMTP, sendmail, postfix or a custom Transport implementation of your own Support servers that require username & password and/or encryption Protect from …
htaccess Redirect to Maintenance Page
Redirecting visitors to a maintenance page or other temporary page is an essential tool to have in your tool belt. Using HTAccess, redirecting visitors to a temporary maintenance page is simple and effective. All you need to redirect your visitors is the following code placed in your site’s root HTAccess: