I think I just encountered the strangest 'bug' I've ever encountered in my short developer life. It seems like I just can't assign the value eight to any variable. For exemple:
<?php
$seven = 07;
$eight = 08; //what's wrong here?
$sevenB = 7;
$eightB = 8;
echo $seven;
echo $eight;
echo $sevenB;
echo $eightB;
?>
The output is:
7078
...
CREATE OR REPLACE TRIGGER update_quant
AFTER INSERT ON sales
FOR EACH ROW
DECLARE
v_prod_name product.prod_name%TYPE;
BEGIN
UPDATE despatch
SET quantity = quantity + :new.quantity
WHERE prod_name = v_prod_name;
END;
/
5/28 PLS-00049: bad bind variable 'NEW.QUANTITY'
How do you suggest I go about this error?
I am trying ...
I have a workspace with several projects, that may be deployed in several configurations.
When exporting to WAR from within Eclipse, i would like to specify the configuration, and have several properties in some configuration files exported to change according to that configuration - the context path attribute of the context.xml, the na...
So I am experiencing an issue with an .aspx page and some server side code, where I am getting unexpected results.
The goal of this page is simple, there are 5 radio buttons and a button with a server side onclick function. The idea is the user picks 1 of the 5 radio buttons, and then clicks the button. Upon clicking the button I verif...
I wrote a small python program to iterate over data file (*input_file*) and perform calculations. If calculation result reaches certain states (stateA or stateB), information (hits) are extracted from the results. The hits to extract depend on parameters from three parameter sets.
I used a dictionary of dictionaries to store my parameter...
UPDATED Scroll down to see the question re-asked more clearly....
If I had the name of a particular UIImageView (IBOutlet) stored in a variable, how can I use it to change the image that is displayed. I tried this, but it does not work.
I'm still new to iphone programming, so any help would be appreciated.
NSString *TmpImage = @"0.p...
Here are the problem scripts:
This is from the HTML file:
<script type="text/javascript">
var devices_record = "some string";
</script>
<script type="text/javascript" src="/js/foo.js"></script>
This is from foo.js:
function bar () {
devices_record = "assign new string";
}
The error report by HttpFox is that devices_ record...
I have a bunch of images on the screen.... UIImageView *s1, s2 ,s3 etc up to *s10
Now suppose I want to update the image each displays to the same image.
Rather than doing
s1.image = sampleimage;
s2.image = sampleimage;
:
s10.image = sampleimage;
How could i write a for loop to go from 1 to 10 and then use the loop var as part of the l...
This is probably a really simple problem, but I can't figure out how to do it.
I have a GUI class with a listener which takes variables from comboboxes and sliders. I need it to pass these variables into a method in another class which will run on an object in that class.
How can I do this?
...
Hello,
How does gettext translate string variables? It doesn't seem to want to do it.. lets say I have $sentence = "Hello World"; and then I want to echo ($sentence); ... how can I do that so that I can translate what's inside $sentence in Poedit?I can use -> echo sprintf(("%s test"), $sentence) and this will print "Hello World test" in...
I am attempting to enhance a internal web application we use. I am using a custom favelet to autopopulate certain fields. The javascript variables I need to populate a form exist on a different HTML page internally. Is it possible to access vars from another html page? They would be embedded in the external pages document element.
I do ...
I've posted a question yesterday but I just realized that the answer doesn't seem to be working for a certain situation. The post was http://stackoverflow.com/questions/1349159/php-string-variables-in-gettext/1349209#1349209 and here is what I asked about:
Hello,
How does gettext translate string
variables? It doesn't seem to...
How can you make a javascript variable and use it with jQuery?
I use the following command unsuccessfully in trying to get the POST data out of the var answer. I can access the variable in HTML by $_POST['answer'].
var answer = $('#answer').val();
I use this variable in this code
jQuery('div.answer_' + $answer + ' a.delete_answer')
...
The following favelet in IE is causing something similar to a document.write which is displaying [object]?
I am attempting to dynamically add a frame to get javascript variables from another page to autopopulate a form. I cannot edit the source this must execute from a favorite or bookmark.
javascript:
var newFrame = document.createEl...
Hi,
A simple but relevant question: Is « my » overwriting memory when called in a loop?
For instance, is it "better" (in terms of memory leaks, performance, speed) to declare it outside of the loop:
my $variable;
for my $number ( @array ) {
$variable = $number * 5;
_sub($variable);
}
Or should I declare it inside the loo...
I'm trying to retrieve a variable from an extended class. This is how my main class looks:
class SS {
public $NONE = NULL;
public $NUMBERS = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "0");
public $OPERATORS = array("=", "&&", ">", "<", "+", "-", "/", "*", "^");
public $DBLQUOTES = '"$1"';
public $SNGQUOTES = "'$1'";
publi...
When a user click a link, it would redirect them to a page, something like:
www.domain.com/index.php?var=string
Is it possible in AS3 to grab the variable (var)??
(I know there are alot of ways to get the variable, for example, php $_GET, but my website is purely flash based, I dont want to use php to get the value and store it in se...
According to the class ElementType in the API, you can annotate local variables and method parameters.
How is that done?
...
I am testing some db layer functions. In one, I am similating the user passing in the id (a GUID). I have hardcoded the guid for testign purposes but can't seem to assign it to a variable , as rediculous as that sounds. In C# for a .NET 2.0 app. I have tried several ways, all failed. What is the proper way to set a guid to a variable. He...
Hi
I'm trying to make a table who's columns and rows highlight on hover (I realise there are jquery plugins out there that will do this, but I'm trying to learn, so thought I'd have a stab at doing it for myself.)
Here's what I've got so far:
$('th:not(.features), td:not(.features)').hover(highlight);
function highlight(){
$('t...