Skip to content

add column

Shubham Mishra edited this page Jul 22, 2019 · 1 revision

Explanations

This code is the explanation for adding a new column

Code

This code illustrates - how to add data into table row.

<?php

// Requiring JDB Library require_once "JDB/JDB.php";

// Setting up DB directory $jdb = new CYZ_JDB(DIR."/db_directory/");

// Initialize DB $jdb->db_init("db_name");

// Table Name $table_name = "table_name";

// Create Table $jdb->add_table($table_name);

// Row Data $row_data = array("key" => "value");

// Add row to table $jdb->add_row($table_name, $row_data); ?>

DB Content

Latest Records Fetched From DB

No data in DB

JDB ADD DB FORM

Column Name
SUBMIT

Clone this wiki locally