PHP AutoCorrect Script

This should be good for Word-like autocorrect in PHP/JavaScript. http://dl.dropbox.com/u/17081650/autocorrect.txt

Comments

Unknown said…
<?php
$con=mysqli_connect("127.0.0.1","root","","evagoras");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

$sql="INSERT INTO student_ellectives (Code, First_Name, Last_Name, ellective_1, ellective_2, ellective_3, ellective_4, ellective_5, language_1, language_2)
VALUES
('$_POST[First_Name]','$_POST[Last_Name]','$_POST[ellective_1]','$_POST[ellective_2]','$_POST[ellective_3]','$_POST[ellective_4]','$_POST[ellective_5]',
'$_POST[language_1]','$_POST[language_2]');

if (!mysqli_query($con,$sql))
{
die('Error: ' . mysqli_error($con));
}
echo 'one record added';

mysqli_close($con);
?>

Popular posts from this blog

Solution to Kindle stuck in USB Drive Mode even when Ejected

Input Numbers with Kindle Keyboard without using the Symbol key

Qubes OS 3.2 and my BCM4313