Getting different problems while trying to write into db

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pHp_n0ob
Forum Commoner
Posts: 35
Joined: Mon Jul 09, 2012 7:30 am
Location: India

Getting different problems while trying to write into db

Post by pHp_n0ob »

Errors,one after another,please help me out...
I am trying to writing into db using a html form,but getting problems one after.

Here's the php page http://topx.3owl.com/add_story.php
Here's the Script
http://topx.3owl.com/add_story.txt
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Getting different problems while trying to write into db

Post by social_experiment »

Could you please explain what problems you are having
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
pHp_n0ob
Forum Commoner
Posts: 35
Joined: Mon Jul 09, 2012 7:30 am
Location: India

Re: Getting different problems while trying to write into db

Post by pHp_n0ob »

social_experiment wrote:Could you please explain what problems you are having
check the first link
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Getting different problems while trying to write into db

Post by social_experiment »

:) Please paste your code here and indicate line number 14.

Code: Select all

<?php
$story=isset(striplslashes($_POST['story']));
// should be stripslashes(); you have an extra 'l' in there.
?>
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply