Is it correct? Somethig doesn't work here

Hi, i’ve got some trivial problem.

I made some charity website which have buttons for clicking and helping in this way people (sponsors give for eg. 5cents for one click for hungry children). I have cliks counters on this page and they don’t work correctly. Once awhile general click counter (all clicks for button) do not count well and it’s making so big numbers.

Here is php code for one button, could you tell me is it correct? I’m absolutely php newer, i’m good in xhtm/css, not in php programming.

[php]



Dzisiaj: <?php $liczba_d1 = mysql_fetch_array(mysql_query("SELECT number_dzisiaj FROM liczniki WHERE name = 'pajacyk'")); ?><?php echo $liczba_d1['number_dzisiaj']*0.05; ?> zł

W tym miesiącu: <?php $liczba_m1 = mysql_fetch_array(mysql_query("SELECT number_miesiac FROM liczniki WHERE name = 'pajacyk'")); ?><?php echo $liczba_m1['number_miesiac']*0.05; ?>zł

Ogółem: <?php $liczba_o1 = mysql_fetch_array(mysql_query("SELECT number FROM liczniki WHERE name = 'pajacyk'")); ?><?php echo $liczba_o1['number']*0.05; ?> zł


[/php]

Website adress here: www.codzienniepomagam.pl

Could you help me? :slight_smile:

Sponsor our Newsletter | Privacy Policy | Terms of Service