The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
INSERT variabile
#11
ty, I find other solution to fix my problem.


<pre>
Code:
If(isset($_POST['submit'])){
   // prepare sql and bind parameters
   $cine_post_task = $_POST['cine_post_task'];
    $utilizator = $_POST['utilizator'];
    $titlu = $_POST['titlu'];
    $color = $_POST['color'];
    $descriere = $_POST['descriere'];
    $data_start = $_POST['data_start'];
    $data_end = $_POST['data_end'];
    $post_data = $_POST['post_data'];
    $post_time = $_POST['post_time'];
   $q = "INSERT INTO task (cine_post_task, utilizator, titlu, color, descriere, data_start, data_end, post_data, post_time )
    VALUES (
    :cine_post_task ,
    :utilizator ,
    :titlu,
    :color ,
    :descriere ,
    :data_start ,
    :data_end ,
    :post_data ,
    :post_time
    )";
    $query = $odb->prepare($q);
    $results = $query->execute(array(
    ":cine_post_task" => $cine_post_task ,
    ":utilizator" => $utilizator ,
    ":titlu" => $titlu,
    ":color" => $color ,
    ":descriere" => $descriere ,
    ":data_start" => $data_start ,
    ":data_end" => $data_end ,
    ":post_data" => $post_data ,
    ":post_time" => $post_time
    ));
    header('Location: account.php');
}
</pre>
  Reply


Messages In This Thread
INSERT variabile - by picassoo - 11-27-2016, 07:08 PM
INSERT variabile - by mudmin - 11-27-2016, 08:06 PM
INSERT variabile - by picassoo - 11-29-2016, 08:56 PM
INSERT variabile - by picassoo - 11-29-2016, 08:58 PM
INSERT variabile - by mudmin - 11-30-2016, 01:58 AM
INSERT variabile - by picassoo - 11-30-2016, 10:13 AM
INSERT variabile - by picassoo - 11-30-2016, 12:07 PM
INSERT variabile - by mudmin - 12-01-2016, 01:07 AM
INSERT variabile - by picassoo - 12-01-2016, 09:04 PM
INSERT variabile - by mudmin - 12-01-2016, 09:10 PM
INSERT variabile - by picassoo - 12-02-2016, 04:55 PM
INSERT variabile - by dan - 12-02-2016, 05:05 PM
INSERT variabile - by picassoo - 12-02-2016, 05:32 PM
INSERT variabile - by dan - 12-02-2016, 05:34 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)