120 Posted Topics

Member Avatar for Kruptein

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 …

Member Avatar for bumsfeld
0
205
Member Avatar for Kruptein

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

Member Avatar for Kruptein
0
9K
Member Avatar for crackerjacker

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 …

Member Avatar for crackerjacker
0
77
Member Avatar for jrosh
Member Avatar for Kruptein

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 …

Member Avatar for diafol
0
80
Member Avatar for ayen
Member Avatar for dips255

[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]

Member Avatar for Kruptein
0
92
Member Avatar for Kruptein

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 …

Member Avatar for Kruptein
-1
157
Member Avatar for Kruptein

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

Member Avatar for sknake
-1
125
Member Avatar for Gearspro

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.

Member Avatar for Kruptein
0
171
Member Avatar for josjorge

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..)

Member Avatar for SKANK!!!!!
0
144
Member Avatar for shastry
Member Avatar for Xamas
Member Avatar for ssmeshack

Are you sure, you can use the mail function? some servers block it fort spam reasons.

Member Avatar for Kruptein
0
104
Member Avatar for MikeGore

No we use <> instead.. [code]INSERT INTO bookingsA(task,DATE) VALUES ('test','2009-01-01') WHERE DATE <> tableB.DATE;[/code]

Member Avatar for Kruptein
0
50
Member Avatar for mrcb

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, ...

Member Avatar for codejoust
0
88
Member Avatar for coolmind259

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

Member Avatar for cwarn23
0
246
Member Avatar for mr_scooby

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.

Member Avatar for mr_scooby
-1
188
Member Avatar for gavola

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 ... = ... …

Member Avatar for Kruptein
0
803
Member Avatar for rajeesh_rsn

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 …

Member Avatar for rajeesh_rsn
0
96

The End.