Button inside Array

Hi,

I need help. Is it possible to put a button inside an array. Please see the page
@ http://colorlux.biz/test/levelA.list.php

The Data that says “button” should be a real button that can post values in the target page. Thanks.

here is the code:

Display Records <?php //Start session session_start(); //Include database connection details require_once('configlvlA.php'); //Array to store validation errors $errmsg_arr = array(); //Validation error flag $errflag = false; //Connect to mysql server $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if(!$link) { die('Failed to connect to server: ' . mysql_error()); } //Select database $db = mysql_select_db(DB_DATABASE); if(!$db) { die("Unable to select database"); } $result = mysql_query( "SELECT * FROM levelA") or die("SELECT Error: ".mysql_error()); echo ""; while($row = mysql_fetch_array($result) ) { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
View Contract Number Date Ordered By Subject Title Completion Date Area Engineer Contract Amount
Button " . $row['contract_num'] . "" . $row['name'] . "" . $row['ordered_by'] . "" . $row['subject_tit'] . "" . $row['completion_date'] . "" . $row['area_eng'] . "" . $row['contract_amt'] . "
"; ?>

simple, instead of the following line
echo "

Button ";

use

echo “

”;

here, jsFunction() is a javascript function which takes the record id as parameter, u shall create a javascript function with this name and place the view related script.

Sponsor our Newsletter | Privacy Policy | Terms of Service