table

Firefox displays 3 columns in a table, IE8 only 2

Would love some help here... firefox displays the last column in the table (an image they click on to edit their email address, it's a link), and IE8 displays nothing for the last column (doesn't even appear to display a column!) I've left out other rows in the table, but similar stuff happens. Anyone know why? <table class="profile-d...

How do i set the inner table size to the size of the outer column when it is using percentage?

My 'anothertablebody' will increase in size depending on what the user enters, it can increase till it exceed the outer table, i don't want it like this. I want the width to be fixed not by pixels, but according to the outer table. For eg col1 i want it 10% of the outer column, col2 30% of the outer column n col3 60% of the outer column....

PHP: Get primary key of table?

Hello! Is there a way to get the name of primary key field from mysql-database? For example: I have a table like this: +----+------+ | id | name | +----+------+ | 1 | Foo1 | | 2 | Foo2 | | 3 | Foo3 | +----+------+ Where the field id is primary key (it has auto increment but I can't use that). How can I retrieve fields name "id" i...

How to retrieve mapping table name for an entity in JPA in runtime?

Is it possible to determine the native table name of an entity? If Table annotation is present it's easy: entityClass.getAnnotation(Table.class).name() But is it possible to get the table name, if no Table annotation is present? Hibernate provides the information via Configuration https://www.hibernate.org/hib_docs/v3/api/org/hibern...

Getting checkbox-selected data from Table A inserted into Table B

[Status: Learner] I have a Table A with thousands of records. On each displayed page, only 20 rows are showing, with the following fields: check last_name first_name gr eth sex id_num (a unique value) reason start_date The "check" field indicates a checkbox that the user can tick. At the bottom of each page of 20 records is t...

JavaScript Traverse Table Issue

Why does this script bail out (IE) or stick (FF) at the first table cell containing text that it finds? <!html> <head> <script type="text/javascript"> function CheckChildren(obj) { alert(obj.id + ' ' + obj.tagName + ' ' + obj.childNodes.length); for ( i = 0; i < obj.childNodes.length; i++) { Check...

Comparing integers in sqlite table?

I have a high scores table in my game. When the game is over, the score is shown on the screen and it gets inserted into the high scores table. I want to know how to compare the new score to the highest score in the table so I can let the user know if they achieved a high score. Below I included the code I use to update and insert the ...

Using Perl to select 1 from@db_link where db_link comes from each entries of a lookup table

I want to read a table in oracle which contains database links for checking availabilty of each database link and return only the bad results for each database link and error message. I want to fetch this lookup table into an array, and pass the entries of db_link to a select from dualQdb_link, test all the entries of lookup to test fo...

MySQL says table is there, then says it's not

check the database-generating sql (looks fine): CREATE TABLE `HourOfDay` ( `id` int(11) NOT NULL, `hourString` varchar(2) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; check the file system (it's there): # ls -al Mycomp_test | grep -i hour -rw-rw---- 1 _mysql wheel 0 Mar 1 08:13 HourOfDay.MYD -r...

Why is this flowdocument table always printing 2 columns

I have a ListView in my WPF app that is bound to a collection of tasks to perform (A to-do list). I want the user to be able to print their list and have created the following code based on the MSDN guidelines. (This my first foray into printing) public FlowDocument GetPrintDocument() { FlowDocument flowDoc = new FlowDocument(); ...

MYSQL: Private messaging system, large single table versus many small tables

I'm considering a design for a private messaging system and I need some input here, basically I have several questions regarding this. I've read most of the related questions and they've given me some thought already. All of the basic messaging systems I've thus far looked into use a single table for all of the users' messages. With ind...

Hiding HTML Table rows when using Sorttable

Hi, I have a large table (4000 rows, 17 columns) with which I use Sorttable. It's somewhat usable in Chrome (not so much in IE). I'd like to add some checkboxes (not on each row, just in a control panel besides the table) to show/hide groups of rows, using javascript. I'm not (so far) using JQuery or anything other than Sorttable (which...

CREATE TABLE new_table_name LIKE old_table_name with old_table_name's AUTO_INCREMENT values

Hello! Can I create a new table with an old table's autoincriment status in mysql client? I think, that ALTER TABLE new_table_name AUTO_INCREMENT=@my_autoincr_iment helps me, but this construction must use with a constant value. I don't wanna use a difficult script. Drochite na carmu! ...

jQuery dynamically create table/tr/td or etc and append attributes

Hello, In an example I am having this structure (small example): <table id=example> <tr class="blah test example"><td>Test1</td><td><a href="url">LINK</a>Test11</td></tr> <tr class="blah test example"><td>Test2</td><td><a href="url">LINK</a>Test22</td></tr> <tr class="blah test example"><td>Test3</td><td><a href="url">LINK</a>Test33</td...

Which Oracle table uses a sequence?

Having a sequence, I need to find out which table.column gets its values. As far as I know, Oracle doesn't keep track of this relationship. So, looking up for the sequence in source code would be the only way. Is that right? Anyone knows of some way to find out this sequence-table relationship? ...

jquery table count rows always returns value of 1

For some reason every time I try to count the number of rows in a table it always returns 1. I am dynamically adding and removing rows to the table, so I'm starting to think it is just counting the number of rows initially configured in the table. here is the code I'm using. $(".elementDelRowButton").live ('click', function (event) { ...

MS SQL: One Large, Multi-Column dbo.Person table or Multiple Subsets With Multiple Joins?

Hi, I am thinking through the layout of my "Person" table in my MSSQL DB. Is it better to have all columns in dbo.Person as such: Person ( personid first last email confirmcode isconfirmed homeaddress homecity homestate homezip session ipaddress workaddress workcity workstate workzip etc... ) OR, is it better to partition the tabl...

I need a tool to parse Lua tables, preferrably in Ruby or Java.

Hello guys, I need a tool to parse Lua table expressions. If all else fails, I will eventually just code a small Lua module to convert tables to XML, but for the time being, I am interested in a Ruby library doing that, but failing that, I would accept tool in any language, provided I can look at its source. Here is an example snippet (...

HTML input textbox with a width of 100% overflows table cells

Does anyone know why the input elements with a width of 100% go over the table's cells border. In the simple example below input box go over the table's cells border, the result is horrible. This was testet and it happens in the same way on: FF, IE7 and Safari. Does it make sense for you? Am I missing something, do you know about a possi...

Linkage Table: Technical name given to table storeing assoications?

Title pretty much sums it up. Is there a technical name given to a table that stores primary key from two separate tables to create a linkage. i.e. car ( id, manufacturer, model, year, vin), passenger ( id, name ), linkage_table ( car, passenger ) Where car stores value of the id column from the car table and passenger stores the val...