How to insert data from _POST |
[eluser]jabga[/eluser]
Hi there. This is my addnews.php Code: <?php This is insertnews.php Code: <html> There are following errors occuring when I click on the submit button Code: A PHP Error was encountered Code: A PHP Error was encountered Code: A PHP Error was encountered How can I add news from insert form easily? Please tell me
[eluser]jabga[/eluser]
Should I use helper or class or model ? I am trying to create a small website for practice. Here is my html design http://download.idiotsheep.com/Dulaanurguu Static.zip ok ok I hAve found it http://www.phpeveryday.com/articles/Code...-P228.html
[eluser]jabga[/eluser]
Tnx, I have got it. i have finished watching CI tutorial and also this tutorial is very useful http://www.phpeveryday.com/articles/Code...-P228.html Tnx
[eluser]Zack Kitzmiller[/eluser]
You were missing 's anyway. $_POST['title']
[eluser]richfearless[/eluser]
Try this Code: <?php $sql="INSERT INTO news (title, content, category)
[eluser]InsiteFX[/eluser]
Data access should be done in your model! Like n0xie stated above. Enjoy InsiteFX |
Welcome Guest, Not a member yet? Register Sign In |