i have a mysql database which i use to update a soccer league table when i enter in results from a form, works fine, however i would like to be able to enter latest scores and update table based on latest scores entered but i cant work out how to do this as at the moment when i enter an update in the score for a match it will treat it as a new match and allocate points etc all over again
teama 1 teamb 0 would give the following teama goals for 1, teamb goals for 0, goaldifference = teama goals for - teamb goals for which in thiscase would be 1
if it changed to
teama 3 teamb 0 would give the following teama goals for 3, teamb goals for 0, goaldifference = teama goals for - teamb goals for which in thiscase would be 3 but it adds the 3 from this update to the 1 from previous update giving 4.
so i need a way to stop it treating each update as a new result and only update with new data - the previous data so in my example
3 goals - 1 goal from first update = 2 goals , i have other fields like points that need to be treated same way.
hope someone can helpout with this and point me in right direction
Is it possible to access local machine form webpage without IE/ActiveX? For example, can I execute an exe file on a local machine? Or, If viewer's machine hosts a webservice, can i invoke it through webpage?
I am off because my program is not working. I tried to combine the three arrays of gene expression to get single array. Then I tried to get a subset of array from the single combined array. So I wrote the following code:
But the problem is this:
Use of uninitialized value $val in scalar chomp at C:\manoj_bioinform\expression.pl line 33, <DIAMIDE> line 8808.
Please help me what's wrong with my program..........!!!
#Open the three .txt file to the FILEHANDLE
#and create the arrays for all the three file
open (HYPEROSMOTIC, "hyperosmotic.txt")|| die "can't open the hyperosmotic file: $!\n";
@hyperosmotic = <HYPEROSMOTIC>;
open (HEATSHOCK, "heatshock.txt")|| die "can't open the file heatshock: $!\n";
@heatshock = <HEATSHOCK>;
open (DIAMIDE, "diamide.txt")|| die "can't open the file diamide: $!\n";
@diamide = <DIAMIDE>;
#store all the expression data on the three array
#into single @excomb array
@excomb = (@hyperosmotic,@heatshock,@diamide);
#loop to split each line from the @expdata into a new tiny array
#the columns of data in the original file are
#separated by tabs as denoted by the /\t/
#then save only the info from column 0 and 2 as separate variable
#also "chomp" each variable to remove unseen characters
You can look at the page source of codeproject.com and search for favicon:
I recommend to use the whole path to the image like "http://www.codeproject.com/favicon.ico" if you want to work in subdirectories and you want to use .htaccess.
<b> I have an exercise in python but I have any Idea to do it : </b>
It is about the last two exercise of chapter 4 of the book how to think like a computer scientist.
the adress is <a href="http://openbookproject.net/thinkCSpy/ch04.html">http://openbookproject.net/thinkCSpy/ch04.html</a>[<a href="http://openbookproject.net/thinkCSpy/ch04.html" target="_blank" title="New Window">^</a>]
i got an simple code as below, after run once, it results insert twice in mysql database.
I had googled for the whole day struggling for this, I couldnt figured out what happen to this code. It runs perfectly at localhost but after move to server, problem occured. Anyone faced it before? Got some idea on how to resolve this problem?
This is the page where I'm trying to "write" the cookie. The name I'm trying to use for the cookie is thomasEmployee, using the variable I created ($cookie) to hold the value, setting it for a year (though I'm sure it'll get deleted before then), and the domain (part I'm not sure about) is linuxserver. This is for a intranet site, the url for the indexpage is typed linuxserver/index.html so I'm guessing the domain is linuxserver?
What I have right now doesn't seem to be writing anything as when I go to look for it, it's not there and when I try to get to my test page, it brings me right back to the login page.