120 Posted Topics
okay I tried to make a reverse of finding the num value of a letter bu it returns in an error :f [quote]Traceback (most recent call last): File "/home/darragh/Bureaublad/t.py", line 15, in <module> numtolet('A') File "/home/darragh/Bureaublad/t.py", line 6, in numtolet letters['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'] TypeError: list indices must be integers, not tuple[/quote] [code=python]def … | |
Is there a built-in function to give the value of a letter? what I mean is a=1 b=2 c=3 d=4 e=5 f=6 ... something like letval(a) would give me 1 | |
Re: You can simply do this with php, and include some ajax to make everything easier for the user, I don't know anything about ajax :p with php you will have to make a html form like this: [code=html]<form action='example.php' method='post'>//or an other page or get <input type='text' name='txt'></form>[/code] [u]example.php[/u] Here … | |
I got a table that is made up as followed: [icode=table]region_id,...nation_id[/icode] the regions are countries, the nations are names users choose. I want to have a world map showing which nation has which region, Is this possible? I'm not sure how to do this, but maybe something with <map> and … ![]() | |
Re: [url=http://lmgtfy.com/?q=mysql+tutorial]First this one[/url] [url=http://dev.mysql.com/doc/refman/5.1/en/tutorial.html]A good one if you already know a bit of queries[/url] | |
Can someone help me with this, if I run ftp, the page is downloaded and showed well, but the progress bar only shows 100% and doesn't progress at all.. [code] def progress_timeout(pbobj): # Calculate the value of the progress bar using the # value range set in the adjustment object … | |
What am I doing wrong? [code=bash]for filename in /home/darragh/public_html/test/* do sed -i 's/..\/config/.\/config/g' done;[/code] It just gives me: sed: No input files | |
Re: Mysql can't do an action on itself. It needs an instruction. You can though, solve this by using a php cron script. a cron script is a script that auto loads each x minutes/hours/days/months ... You can choose when. | |
Re: in one query: [code] UPDATE table SET field3 = field1-field2 [/code] I think this should work. (everytime you update/change a value of field1/field2 you will have to do this query, mysql can't do this automatic..) | |
| |
Re: try [php]if($_POST['save_msg'])[/php] | |
Re: Are you sure, you can use the mail function? some servers block it fort spam reasons. | |
Re: No we use <> instead.. [code]INSERT INTO bookingsA(task,DATE) VALUES ('test','2009-01-01') WHERE DATE <> tableB.DATE;[/code] | |
Re: I would use sessions instead actually, they are more secure as cookies in my opinion, you can read all data cookies send in your browser, but sessions are a bit harder to read becuase they are encoded. They are actually encoded cookies, ... | |
Re: Did you check the optimization site almostbob gave you? [url='http://www.websiteoptimization.com/services/analyze/']the site[/url] It is really handy, I used it for mine too | |
Re: I had once the same problem, in FF everything was messed up. I've solved it by instead of using: width: 150px doing width: 145px Try to do some pixels of the width, heigth and say if it still occurs. | |
Re: You can actualy doing multiple inner joins after each other: [code] SELECT P.post_id, P.post_content, P.post_date, sum(T.vote_tally) as total_vote FROM votes as T INNER JOIN ( SELECT * FROM posts tp GROUP BY tp.post_id ) as P on P.post_id = T.post_id INNER JOIN (SELECT ...) as ... on ... = ... … | |
Re: It's sure that google doesn't read iframes, but I can't say they think it are viruses, I also used iframes a lot, but people told me it was a bad habbit. Solution: Use require(_once) or include(_once) instead of iframes, google will read those! and you don't see the difference. I … |
The End.