Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Oct 2009
    Posts
    93
    Plugin Contributions
    0

    Default How to write in new database table?

    I have created a new database table with the name 'table'. Now i'm trying the following code to write the data into the fields:

    if (isset ($_POST['request'])) {

    $F1 = $_POST['F1'];
    $F2 = $_POST['F2'];
    $F3 = $_POST['F3'];
    $F4 = $_POST['F4'];

    $sql_data_array = array('F1' => zen_db_prepare_input($_POST['F1']),
    'F2' => zen_db_prepare_input($_POST['F2']));

    zen_db_perform('table', $sql_data_array);

    $db->Execute("insert into requests (F1, F2, F3, F4) values ('".$F1."', '"$F2."', '".$F3."', '".$F4. "')");
    }


    When i press the submit button i get blank page.
    Where is the mistake?
    Last edited by fawad123; 22 Sep 2010 at 08:02 AM.

 

 

Similar Threads

  1. v153 Transferred database to new site, forgot to upload address_book table.
    By joecooper in forum General Questions
    Replies: 2
    Last Post: 3 Jun 2015, 09:26 AM
  2. v151 how can clean table from the database
    By dmagic in forum General Questions
    Replies: 1
    Last Post: 4 Feb 2014, 06:23 AM
  3. v139h database table project version not found after moving to new GoDaddy server
    By soaringeagle in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 2 Apr 2012, 10:18 PM
  4. how to show data from database table?
    By jibon in forum General Questions
    Replies: 1
    Last Post: 20 Oct 2009, 05:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg