Other Software > Developer's Corner
Data not being written to MySQL DB
kyrathaba:
Note: the following line of code never gets executed:
echo "Your data was successfully added to the database.";
--- End quote ---
rgdot:
Pretty sure it's just the path to the dll that's not /usr/local/lib/php/extensions/no-debug-non-zts-20100525/php_xslt.dll
wraith808:
I removed the php_xslt.dll from the php config as I don't use it in any case. Not sure why you happened across this error as I'm using php with database access all across the server, but try again.
kyrathaba:
Charles Little, one of the support staff, is helping me sort it. I'll post back the solution we arrive at.
Stoic Joker:
Its been awhile since I've done any PHP, but shouldn't:
$query = "INSERT INTO proofreading_sought (firstname, lastname, email) " .
"VALUES ($first, $last, $theMail)";
Be:
$query = "INSERT INTO proofreading_sought (firstname, lastname, email) ";
$query.= "VALUES ($first, $last, $theMail)";
other thing that looked odd was:
$dbc = @mysqli_connect($mysql_host,$mysql_user,$mysql_password,$mysql_database)
or die("Failed to connect to the database...");
or should be || as in:
$dbc = @mysqli_connect($mysql_host,$mysql_user,$mysql_password,$mysql_database)
|| die("Failed to connect to the database...");
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version