Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8980665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:08:39+00:00 2026-06-15T20:08:39+00:00

I am super confused why this does not work, since it works on my

  • 0

I am super confused why this does not work, since it works on my other table.

Here is procedure:

CREATE PROCEDURE dodaj_ubezpieczenie
         (do_nazwa_ubezpieczenia     VARCHAR(30),
 do_wysokosc_ubezpieczenia   decimal(4,2)
 )
MODIFIES SQL DATA
BEGIN
INSERT INTO ubezpieczenia
(nazwa_ubezpieczenia,wysokosc_ubezpieczenia)
VALUES
(do_nazwa_ubezpieczenia,do_wysokosc_ubezpieczenia);
END$$

Procedure works with example:

call dodaj_ubezpieczenie('lol',5);

here is script:

<?php
error_reporting(E_ALL|E_NOTICE);
$nazwabazydanych = "projekt";

$nazwa_ubezpieczenia = mysql_real_escape_string($_POST['nazwa_ubezpieczenia']);
$wysokosc_ubezpieczenia = mysql_real_escape_string($_POST['wysokosc_ubezpieczenia']);  


if (!$nazwa_ubezpieczenia || !$wysokosc_ubezpieczenia)

 {
        print "Nie zostały wypełnione wszystkie pola";
        exit;
 }


$db = mysql_pconnect("localhost", "root", "");
if (!$db)  
        {  
        print "Nie można nawiązać połączenia z bazą danych";
        exit;
        }

mysql_select_db("$nazwabazydanych");

$query = mysql_query("CALL dodaj_ubezpieczenie ('$nazwa_ubezpieczenia','$wysokosc_ubezpieczenia')"); 

?>

The use of it:

<form action="ubezp.php" method="post">
Nazwa ubezpieczenia: <input type="text" name="nazwa_ubezpieczenia" maxlength=30 size=31><br><br> 
Wysokość ubezpieczenia: <input type="text" name="wartosc_ubezpieczenia" maxlength=6 size=8><br><br>
<input type="submit" value="Dodaj ubezpieczenie">
</form>

And finally the error:

Notice: Undefined index: wysokosc_ubezpieczenia in C:\xampp\htdocs\proj\ubezp.php on line 6
Nie zostały wypełnione wszystkie pola

I am really, really confused what is wrong here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:08:41+00:00Added an answer on June 15, 2026 at 8:08 pm

    Seems to be just a spelling mistake?

    $wysokosc_ubezpieczenia = mysql_real_escape_string($_POST['wysokosc_ubezpieczenia']);

    Should be

    $wysokosc_ubezpieczenia = mysql_real_escape_string($_POST['wartosc_ubezpieczenia']);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am confused about why this code does not display any image: In the
This feels like a super newb question, so apologizes in advance. How does one
This should be super simple. The first code block works, but when I wrap
this might sounds silly but I am super confused. I want to install drupal
I'm really confused with this whole measuring thing that android does for layouts. Basically,
I'm totally confused with this small out of scope thing. So here is some
since I have not been using generics for some time, I'm quite confused at
Painting some particles stored in an ArrayList. This code works fine: super.paintComponent(g); for (Particle
I'm super confused about field access JPA-annotated POJOs. How are you supposed to set
Super weird problem here. I'm having trouble getting jQuery to bind any selectors except

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.