table

Correct table layout generation with CSS: unexpected cells shift

I'm trying to generate a dynamic table using CSS: <html> <head> <style> div.el1, div.el2 { color:white; width:70px;height:70px; border:0px; padding:0px; font-size: 10px; font-family: "Courier"; } div.el1 { background-color: green; } div.el2 { backgro...

cross referenced tables from multi-dimensional arrays php?

how do it turn a multidimensional array like: $fruits['apples']['blue'] = 24; $fruits['bananas']['blue'] = 12; $fruits['apple']['red'] = 34; $fruits['gooseberries']['orange'] = 4; $fruits['oranges']['red'] = 12; into a cross referenced table like: Thanks! ...

Is there a (simple) way to get the memory usage of a lua table?

I'd like to find out how much memory a lua table is using - without iterating through the table contents and counting up the usage. Is there a lua 5.1 function or 3rd party library that could help with this. Thanks! ...

HTML table manipulation using jQuery

I'm building a site using CakePHP and am currently working on adding data to two separate tables at the same time.. not a problem. The problem I have is that I'm looking to dynamically alter the form that accepts the input values, allowing the click of a button/link to add an additional row of form fields. At the moment I have a table ...

Output a php multi-dimensional array to a html table

I have been banging my head against the wall with this one for nearly a week now, and am no closer than I was the first day. I have a form that has 8 columns and a variable number of rows which I need to email to the client in a nicely formatted email. The form submits the needed fields as a multidimensional array. Rough example is belo...

How I can change prefixes in all tables in my MySQL DB?

My provider installed to my site Drupal CMS. Now I need copy all my data from old site. I have tables without prefixes in my old DB, but in new DB all tables have "dp_[table_name]" prefix. ...

Update table using cursor but also update records in another table

I'm updating the IDs with new IDs, but I need to retain the same ID for the master record in table A and its dependents in table B. The chunk bracketed by comments is the part I can't figure out. I need to update all the records in table B that share the same ID with the current record I'm looking at for table A. DECLARE CURSOR_A CUR...

Generating a table from a PHP array

Hey, I'm not sure how difficult this but I have an array and would like to put it into and html table. I need to have two array strings per row, so if this were the array: $array1 = array( 1 => 'one', 2 => 'two', 3 => 'three', 4 => 'four', 5 => "five", 6 => 'six', ); And I need the html table to lo...

how to print data in a table from mysql

hello, i want to extract the last eight entries from my database and print them into a 2 columns table!like this: |1|2| |3|4| |5|6| |7|8| is that possible? this is my code: $db = new Database(DB_SERVER, DB_USER, DB_PASS, DB_DATABASE); $db->connect(); $sql = "SELECT ID, movieno FROM movies ORDER BY ID D...

How to retrieve items from a database c#

I have 3 tables "pics", "shows", "showpics" I want to be able to edit the table "shows". In order to do this i need to retrive the pictures that the show contains (the pictures are stored in the table "pics") the "showpics" table acts as a link does anyone have any ideas as im completely lost and have no idea where to even start Than...

Vaadin table hide columns and container customization

Hello I am testing a project, using Vaadin and Hibernate. I am trying to use the HbnContainer class to show data into table. The problem is that I do not want to show all the properties of the two classes in the table. For example: @Entity @Table(name="users") class User { @Id @GeneratedValue(strategy=GenerationType.AUTO) private Long...

Sqlite + Java: table not updating

I'm using a Java wrapper for SQLite called SQLiteJDBC - this may have some bearing on any answers... I have a table which I've displayed in a GUI, within that UI I have a button for the fields for an individual row of that table. When I save my changes I do this... Statement stmt = connection.createStatement(); stmt.execute("update 'ta...

Internet Explorer percent based layout issue

Heya, My goal is to make a layout that is 200% width and height, with four containers of equal height and width (100% each), using no javascript as the bear minimum (or preferably no hacks). Right now I am using HTML5, and CSS display:table. It works fine in Safari 4, Firefox 3.5, and Chrome 5. I haven't tested it yet on older versions...

Problem with changing td's html in JQuery.

I want to change text in table td from 1,1,1 to 1,2,3 with jQuery But it not seem to work. what is wrong in my code? This is my JavaScript function. function reorder(targetId){ var i = 1; jQuery.find(targetId).each(function(){ jQuery(this).attr("innerHTML", i); i ++; }); } My ht...

Multiple labels in a table cell view

hi all, i want to add 3 labels into a cell dynamically, cell is created dynamically as well. but i don't know how to create labels and add it into the cell in objective c (iphone). can anybody help me? ...

latex table reference

Hi, I wrote a long table with a label in a tex file and \input it into my main tex file. The reference in the main tex file to the table, however, does not show the numbering of the table but the one of the next table that are written directly in the main tex file. All long tables that are written directly in the main tex file have corr...

jQuery click event on td row not firing.

i have a simple bit of jQuery which displays the row below the current one if selected. What I want if for all the <td> elements but one to fire this method. Works on whole <tr> row $(document).ready(function(){ $("#report > tbody > tr.odd").click(function(){ $(this).next("#report tr").fadeToggle(600); ...

Problem with table resizing after automatically removing from jquery one column (this only happens in Internet explorer)

Hi. I have a table with some columns. Something like this: <>div id="outer"> <table> <tr> <td>remove button</td> <td>remove button</td> </tr> <tr> ... </tr> </table> <>/div>' The table has the size of the div#outer When I click remove button I remove with jquery the entire col...

Add to a table with javascript

I have a table which looks like this: <table id='t'> <thead> .... </thead> <tbody id='t_tbody'> </tbody> </table> thead is filled with content tbody is empty I want to use javascript to add this (for example) to t_tbody: <tr> <td>Name</td> <td>Points</td> <td>Information</td> </tr> How can I d...

Matching up text in 2 different columns in a table?

Hey guys, I have recently been working on a pastebin script (for fun) and I've come across a problem that I can't seem to solve in CSS. I have a table with 2 columns. 1 column is used to display the line numbers and the 2nd column is used to display the code. I can't seem to get the numbers match up with the lines in the code so it looks...