I'm trying to keep a cell on the top left side of a table a constant size. Unfortunately in IE with the method I'm using, the two cells that are spanned by a td with rowspan=2 become the same size. If you render the blow code in firefox, it behaves the way I want and expect, but not in IE...
I'm running a php flash content server, and if I'm not mistaken, users viewing my files fall into the "Other" permissions group.
I was wondering if through my php code (or any other way really) I could allow users to fall into the "Group" or "Owner" permissions group.
The problem is that I...
I'm serving up flash content through an IE browser that I really don't want stolen. I've been able to stop it from caching, or being accessed directly with file permissions.
However, there are all sorts of obnoxious programs like "Sothink SWF Catcher" and "Flash Catcher" that have no problem...
I'm having some issues testing a login system. I log in a one user, then open a new browser window. If I then call session_destroy, the user who is allready logged in will have his session destroyed. Also, if I log in with a user while another user is logged into the system allready, the user...
Is it possible to select all non-null values from a table row and update another table row with them? For example, the table before the statement is run:
Id Val1 Val2 Val3
1 3 4 1
2 NULL NULL 5
And after:
Id Val1 Val2 Val3
1 3 4 5
2...
How would I go about replacing a string in an existing text file? For example, the file example.txt contains:
Item1
Item2
Item3
I have no problem iterating through the file and getting each line value, but is there some way to say, replace the value "Item2" with "newItem2" without touching...
When trying to construct a class object containing another class object, I get the error:
"no matching function call to "PlaneId::PlaneId
candidates are: pLaneId::PlaneId(const PlaneId&)
PlaneId::PlaneId(const std::string&, int)"
Here are my two class files:
// File: Planes.h
#ifndef...
I'm trying to create a map of two different classes, but can't seem to set a value to a key. Here's my code:
#include <map>
#include <string>
#include <vector>
#include <iostream>
using namespace std;
class Student {
public:
Student(const string& si, const vector <string>& c) ...
I'm trying to excecute a command in dos from within my Java program, something like ("java " + commandline), but I can't get it to work.
This lcode is in Driver.java:
String commandline = "Cat file.txt";
Runtime rt1 = Runtime.getRuntime();
Process pr1 = rt1.exec("java " + commandline);
And...
I have an update trigger that records to an audit table. The problem is that an update could affect multiple rows, and this code only returns the first row affected in the lab_batch table. Is there some way to insert multiple records into the aud_lab_batch table?
Here's the code:
CREATE...
I have a temporary table #result that looks basically like this:
unit_number deferral_days
1 50
2 20
3 102
And a table lab_unit that has the same fields. I want to update lab_unit for each unit_number...
I have a database that I often delete all values from and populate with new ones for test data. The scripts I run to populate the database often include tables with foreign key relations that force me to run part of the script, see what kind of keys are generated, and manually add values to...
I have a stored procedure that has to return values for particular product_ids. The problem here is that one result must be returned for each product_id, and there's no way of telling how many results are going to be returned. I'm trying to come up with a way to dynamically concatenate the...
I have two tables:
#result - has fields unit_number, rule_id
tesr - has field rule_id
In both tables, the rule_id can be duplicate. What I need to do is determine if table #result has as many occurences of the same rule_id as appear in table tesr for a particular unit number. If it does not...
I have a stored procedure (SP1) that calls another stored procedure (SP2). In SP2, a variable (@test_codes) is declared and assigned a comma-delimited list of values. SP1 wants to get this string from SP2 and store it in a variable, but I'm not sure how to make that work.
Is there some way to...
I have a temporary table with these values:
product_id status_datetime status_code
45 1/3/1999 12:30 P
45 9/9/2000 10:20 S
45 6/6/2002 11:10 S
50 3/3/2003 09:30 S
67...
I have a confirm dialogue bound to the onUnload() handler asking the user if s/he wants to leave the current page. If cancel is pressed, the document stops on the current page, as it is supposed to. However, if after this happens, the user clicks on a link to another page again, the dialogue...
I have some javascript on my page that looks like this:
window.onunload=warn_form_data_loss();
form_dirty = true;
function warn_form_data_loss ()
{
if ( form_dirty = true)
{
var answer = (confirm("WARNING: You are about to navigate away from the current page, which may result in data loss...
I'm trying to build a comma-delimited list of test codes from some tables in my database. I don't think the details of the tables are important, because I think there's something wrong with my concatenation statement. test_code is of type char(5), but my variable (@code_list) seems to end up...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.