Jump to content
php.lv forumi

Problemas ar zinu pievienosanu DB


vitao.web

Recommended Posts

Seit ir viss kods

 

 

Notice: Undefined index: news_title in C:\AppServ\www\point\svs\add_news.php on line 9

 

Notice: Undefined index: news_message in C:\AppServ\www\point\svs\add_news.php on line 10

 

Notice: Undefined index: news_category in C:\AppServ\www\point\svs\add_news.php on line 11

 

 

Bet man ir tak nodifinets vai ari tomer ne?

 

Paldies!

 

vitao.web

Link to comment
Share on other sites

9-12 rinda (ieskaitot) jāpārnes uz

else {
if(empty($_POST['news_title']) ||
empty($_POST['news_message']) ||
empty($_POST['news_category'])) {
echo "<p>You did not fill in all the fields,";
echo "please try again</p>\n";
} else {
/////////////Šejieni
$query = "INSERT 

Edited by mickys
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...