MySQL Performance Tuning: Top 10 Tips intended for PHP, Ruby and Java developers on performance tuning and optimization of MySQL. We will cover the deadly mista
Tuesday, September 13, 2011
MySQL Performance Tuning: Top 10 Tips
MySQL Performance Tuning: Top 10 Tips intended for PHP, Ruby and Java developers on performance tuning and optimization of MySQL. We will cover the deadly mista
Design Patterns in software development.
http://sourcemaking.com/design _patterns
sourcemaking.com
In software engineering, a design pattern is a general repeatable solution to a commonly occurring problem in software design. A design pattern isn't a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many diff...
MySQL Data Types: Quick Reference Table
http://kimbriggs.com/computers /computer-notes/mysql-notes/my sql-data-types-50.file
The latest MySQL documentation is at the MySQL Web Site, but I highly recommend getting the book "MySQL" by Paul DuBois for a very readable and thorough book on the subject. There is a sample database that you can download to follow along with the examples in the book. Good Stuff. These notes are ...
Saturday, September 3, 2011
Tuesday, April 19, 2011
CODE FOR PHP CAPTCHA
http://www.white-hat-web-design.co.uk/articles/php-captcha.php
[1:37:18 PM] yogesh Bajpai: CODE FOR PHP CAPTCHA
<form method="post" action="reg.php">
<b>Name</b><br/>
<input type="text" name="name" /><br/>
<b>Message</b><br/>
<textarea name="message"></textarea><br/>
<img src="captcha.php" id="captcha" /><br/>
<a href="#" onclick="
document.getElementById('captcha').src='captcha.php?'+Math.random();
document.getElementById('captcha-form').focus();"
id="change-image">Not readable? Change text.</a><br/><br/>
<b>Human Test</b><br/>
<input type="text" name="captcha" id="captcha-form" /><br/>
<input type="submit" />
</form>
======================================
<?php
session_start();
if (!empty($_REQUEST['captcha']))
{
if (empty($_SESSION['captcha']) || trim(strtolower($_REQUEST
['captcha'])) != $_SESSION['captcha'])
{
$note= 'Please enter correct text code';
}
else
{
if($_SERVER["REQUEST_METHOD"] == "POST")
{
$name=htmlentities($_POST['name']);
$message=htmlentities($_POST['message']);
// Insert SQL Statement
$note= 'Values Inserted Successfully';
}
}
unset($_SESSION['captcha']);
}
?>
Subscribe to:
Posts (Atom)