Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>So finally i have managed to found it's solution. Below is the updated code :-</p> <pre><code> &lt;?php /** * * @file $Id: default.php 0.0.2 2012-12-28 00:00:00 Joydeep Banerjee $ * @package School Mangement System * @version 0.0.2 * @description Simple School Management System component for joomla 2.5 * @copyright Copyright © 2012 - All rights reserved. * @license GNU General Public License v2.0 * @author Joydeep Banerjee * @author mail joy@vividtechno.com * @website http://www.indiawebsitedesigndevelopment.com * **/ // No direct access defined( '_JEXEC' ) or die( 'Restricted access' ); $app =&amp; JFactory::getDocument(); $page_title = $app-&gt;getTitle(); echo $name = $_POST['name']; echo $class = $_POST['class']; $db =&amp; JFactory::getDBO(); echo $query = "INSERT INTO `#__jd` (`id`,`name`, `class`) VALUES ('','$name', '$class');"; $db-&gt;setQuery( $query ); $db-&gt;query(); ?&gt; &lt;form action="index.php" method="post" name="adminForm"&gt; &lt;input type="hidden" name="option" value="com_sms" /&gt; &lt;input type="hidden" name="view" value="Sms" /&gt; &lt;input type="hidden" name="task" value="" /&gt; &lt;input type="hidden" name="boxchecked" value="0" /&gt; Name:&amp;nbsp;&lt;input type="text" name="name"&gt; Class:&amp;nbsp;&lt;input type="text" name="class"&gt; &lt;input type="submit" value="Register" name="register"&gt; &lt;/form&gt; </code></pre> <p>The main problem was that i forgot to put ` in name and also '' in $name and $class which was stated by the Nicarus(A Stackoverflow member). Thanks for the reply..:)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload