EDIT: Thanks for all the replies, everyone. tongue.gif But I posted this on a different forum and figured it out.

OK, here's the code:

CODE
<?php
error_reporting(E_ALL);

include("********");

$connect = mysqli_connect($host,$account,$password);
$db = mysqli_select_db($connect,$dbname);

$testa = 3;
$testb = 7;
$sql = "INSERT INTO testTable (testa,testb) VALUES ($testa,$testb)";
$result = mysqli_query($sql);

mysql_close($connect);
?>

Include has been starred out for security reasons, because I will be using this database, but $host contains the server hosting the database, $account is my account name, $password is the password to the database, and $dbname is the name of the specific database I'm trying to access.

I'm sure, because of tests I put in place, that it's connecting to the server and the database successfully, but it won't insert the information. To prove it, here's the file with the tests in place and the code for it:

http://mechhelp.net/database/


Spoiler: Click to Toggle the Spoiler.
CODE
<?php
error_reporting(E_ALL);

include("********");
$connect = mysqli_connect($host,$account,$password);

if ($connect) {
echo "Connected to server<br>";
} else {
echo "Server connection error<br>";
}

$db = mysqli_select_db($connect,$dbname);

if ($db) {
echo "Connected to database<br>";
} else {
echo "Database connection error<br>";
}

$testa = 3;
$testb = 7;
$sql = "INSERT INTO testTable (testa,testb) VALUES ($testa,$testb)";
$result = mysqli_query($sql);

if ($result) {
echo "Insert successful";
} else {
echo "Insert error";
}

mysql_close($connect);
?>


[Close]


Both fields are set up to receive integers, and they're the only two fields in that table. I really don't know what other information you might need, but ask and I'll give it to you, unless you're asking for something like the password to my database...that's just not cool. tongue.gif