Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 26th, 2009, 08:19 AM
Authorized User
Join Date: Jun 2009
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default MySQL disconnected

Can you replace your thankstudent.php with this one.
$title = $_POST['title'];
$description = $_POST['description'];
$std_name = $_POST['std_name'];
$total_pages = $_POST['total_pages'];

$sql = "INSERT INTO `text`.`developer` (`id` ,`title` ,`description` ,`year` ,`std_name` ,`total pages` )VALUES ('', '$title', '$description', '', '$std_name', '$total_pages');";
echo $sql;
echo "<br>";
mysql_query($sql) or die(mysql_error());
echo "Done";

Fill your form and submit.

Am interested with the output from the web browser after you submit the form.

Finally, if you can, send me the schema for the database table ;
Do the following
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6 to server version: 4.0.24-nt-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> DESCRIBE text.developer;

Similar Threads
Thread Thread Starter Forum Replies Last Post
Report from disconnected recordset DreamEagl Access VBA 4 January 9th, 2006 04:26 PM
Disconnected data architecture kumar_raj13 ADO.NET 1 December 6th, 2005 12:00 AM
Updating disconnected datasets AgentSmith ADO.NET 7 July 26th, 2004 10:37 AM
The object invoked has disconnected from its clien Ciarano Beginning VB 6 2 March 12th, 2004 11:38 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.