Create PHP table grid help, please


Posted on 16th Feb 2014 07:03 pm by admin

I have a MySQL database setup, now it's time for the table (gridview) design in php. Here's the problem i'm having. I have about 22 colms, but from colm 10 to 16 I want to place in one colm from 1 up to 6 rows. 10 through 16 are allegation. Can someone make a simple php table so that I can learn from the source code. The only problem I have is understanding how to get (if) only 1 allegation is inputed into the database, compare to if 2 or 3 or 4 or 5 or 6 allegation will fit into only colm. Here are my headers

Officer
Date
LastName
FirstName
SID#
InstantOffense
DischargeDate
ArrestDate
Booking#
Allegation1, Allegation2, Allegation3, Allegation4, Allegation5, Allegation6
Type
CourtDate
InterviewDate
HearingDate
HearingType
BoardDate
BoardDecesion

As you can tell there are 6 type of allegation, there might and might now be up to 6 allegation, but how would i do a php table like this? I do have a simple HTML table at http://tdcj.homeip.net if you would like to view what i'm talking about..

251 Like 30 Dislike
Previous php-forum Next php-forum
Other php-forum

User input in to variable
Hi all,

I'm sure this is very easy but I'm having another brain freeze!

At the end of

eregi to preg
Im converting my regex for php 5.3 and I am stuck on the following

Code: [Select]if((eregi(&q

Multiple Do / While Statements?
I'm still very new to PHP, and running in to a problem when trying to execute a do/while loop inside

Weird MySQL error, why am I recieving this?
PHP Code:


<?php require "global_settings.php"; ?>
<titl

Warning: session_start() headers already sent error - Driving me Nuts!
I am trying my sister in laws site and I keep getting an error with my coding. I am more of a design

How to show next and prev records
Hi all,

Sorry if this is simple, i'm very new to php, well, any programming language actually

tell csv import script to ignore blank rows?
Hi i have the below script but i get an error if a row is blank ie a return in the csv file at the e

How to show a complete textarea ??
I enter Client Case Notes notes in a textarea field on a PHP form. The field is 5 rows deep and 70 c

urldecode question
How would I format this line of code properly?

<?php echo urldecode($_GET['Title']); ?

Cron Job and Output
I have php codes running under a cron job.
But everytime i output (echo) , it comes out as comple

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash