How to insert data into MySQL Database using PHP

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 55

  • @garygarcia05
    @garygarcia05 4 года назад

    Why you go a step back in your path if you already are in the folder you have the file you are including? It would be the same '.\connect.php;', isn't it?

  • @ronnybanerjee6020
    @ronnybanerjee6020 8 лет назад +1

    Fantastic tutorials....its like really getting the clear concepts watching your tutorials!! I have 1 question....
    Is it necessary to give "../php/connect.php" in case of including it or we can directly write include(connect.php)??

    • @SolutionConeOfficial
      @SolutionConeOfficial  8 лет назад

      It depends on where you place the connection file, then link it inside include ('demoPath/connect.php ')

  • @139jordan
    @139jordan 7 лет назад +1

    Very nicely explained and easy to follow! Thank you :)

  • @krishnakantsinghBundela
    @krishnakantsinghBundela 8 лет назад +1

    excellent tutorials....moreover in hindi its much understandable..ty for this.....I have one query ...I am making a web page for students to see solution of questions. I have takes all questions and answers in png form seperately. Now i want them to fill a scrollable form with option to get there desired question and answer. For ex, they will choose fst class, then subject, then chapter, then exercise, and then question. then after clicking submit button both pics must be displayed in a panel. Please tell me how to do this.

    • @SolutionConeOfficial
      @SolutionConeOfficial  8 лет назад

      I think you are making A Question and Answer Forum for specific categories. Where Students will select some category then subcategories for that category and finally the questions in that category. ?
      Am i Correct ?

    • @krishnakantsinghBundela
      @krishnakantsinghBundela 8 лет назад

      yes you can say that. Please tell me how its possible. What should i learn for it. Or any video i have to see.

    • @SolutionConeOfficial
      @SolutionConeOfficial  8 лет назад

      It can be Made using PHP very easily..

    • @krishnakantsinghBundela
      @krishnakantsinghBundela 8 лет назад +1

      ok...how do i make database for images.

    • @SolutionConeOfficial
      @SolutionConeOfficial  8 лет назад

      You have to upload the Images to server and store the links for it into Database.
      Here are the videos for you : ruclips.net/video/fMD--Uv1k1k/видео.html

  • @srilekhatulluri3766
    @srilekhatulluri3766 7 лет назад

    Am getting the output but my values were not getting inserted. Please help. Thank You in advance.

  • @HEMANTBISHT1000
    @HEMANTBISHT1000 7 лет назад

    Parse error: syntax error, unexpected '"..\NewPHPCODE.php"' (T_CONSTANT_ENCAPSED_STRING) in C:\xampp\htdocs\insert.php on line 2
    I m getting this error.
    My code is
    of file "INSERT.php"
    The file name is "NewPHPCODE.php" from which i m connecting
    What is the issue?????
    I have completed your first video

  • @renukateli60
    @renukateli60 6 лет назад +1

    nice

  • @RD-wr1vj
    @RD-wr1vj 8 лет назад

    i followed the steps that shown in the video "How to insert data into MySQL Database using PHP" , even i'm getting the output as shown in the browser, but the value are not getting inserted in the table.............
    plsss help if it's possible.......

  • @divyashri438
    @divyashri438 7 лет назад +1

    Hello,
    Warning: mysql_query(): Access denied for user ''@'localhost' (using password: NO) in F:\xampp\htdocs
    ew2.php on line 5
    Warning: mysql_query(): A link to the server could not be established in F:\xampp\htdocs
    ew2.php on line 5.
    this is the error im getting when i try to inset a row into a database.
    why there is an error from mysql_query()?

  • @andrey.deocampo
    @andrey.deocampo 6 лет назад

    Parse error: syntax error, unexpected '"..\testdb\manexinsert.php"' (T_CONSTANT_ENCAPSED_STRING) in C:\xampp\htdocs\testdb\manexinsert.php on line 3
    Why i have an error like this?

  • @parkkeonjay736
    @parkkeonjay736 8 лет назад +1

    I followed your program all of it neither dots doesn't left but still its not working ...i think its all about the SUBLIME i used

    • @milanjamari7128
      @milanjamari7128 3 года назад

      a trick : you can watch series at Kaldrostream. I've been using it for watching a lot of movies recently.

    • @bowenpeyton4087
      @bowenpeyton4087 3 года назад

      @Milan Jamari yup, I've been watching on KaldroStream for years myself =)

    • @aaronmaximus6806
      @aaronmaximus6806 3 года назад

      @Milan Jamari Yea, have been using kaldrostream for months myself :)

  • @makrambenamor1737
    @makrambenamor1737 6 лет назад +1

    thnx a lot great work

  • @tusharbhoumik3415
    @tusharbhoumik3415 6 лет назад +1

    Thank you. Its helpful

  • @ahmedinhodasilva1143
    @ahmedinhodasilva1143 7 лет назад +2

    Hy my problem is the connection.. any help please.

  • @poojagarudkar322
    @poojagarudkar322 6 лет назад +1

    Warning: mysqli_query() expects at least 2 parameters, 1 given in E:\XAMPP\htdocs\php\insert.php on line 5
    plz help me

  • @thabogodfreygqeba2782
    @thabogodfreygqeba2782 8 лет назад +1

    Moreover, thanks a mil sir......adios

  • @sharrifhussain2784
    @sharrifhussain2784 6 лет назад +1

    Notice: Undefined variable: connection_variable_name in C:\xampp\htdocs\Project\insert.php on line 5
    Warning: mysqli_query() expects parameter 1 to be mysqli, null given in C:\xampp\htdocs\Project\insert.php on line 5

    • @SolutionConeOfficial
      @SolutionConeOfficial  6 лет назад

      Check two things
      1) Include file exists in same location
      2) name of connection variable is same as you mentioned

    • @sharrifhussain2784
      @sharrifhussain2784 6 лет назад

      #solutioncone include file exists in same location and connected to DB and name of connection variable is same so you tell me resolve my error

    • @TRE23able
      @TRE23able 6 лет назад

      $con = mysqli_connect("$dbhost", "$username", "$password");
      mysqli_select_db($con, "$db");
      //echo "connected to db";
      $query = "INSERT INTO table_my(Name, School, Major, Status)
      VALUES(' ', ' ', ' ', ' ');
      ";
      $result = mysqli_query($con, $query);

  • @lgx22
    @lgx22 5 лет назад

    why is so blurry

  • @sharrifhussain2784
    @sharrifhussain2784 6 лет назад

    Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\xampp\htdocs\Project\insert3.php on line 5

    • @SolutionConeOfficial
      @SolutionConeOfficial  6 лет назад

      FOLLOW the video properly again... you are making same mistake of including a file again and again...
      Also check your connection.php... follow video step by step and try to replicate all the steps...