Jump to content

shazly

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Contact Methods

  • MSN
    webmaster@shazly.net
  • Website URL
    http://www.shazly.net

Profile Information

  • Gender
    Not Telling
  • Location
    the glob

shazly's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i have this table "my_points" in my database. it has two cloumns, 1- points_id 2- points i have 20 entries in this table, in the second col. i have numbers in each entry (just plain numbers), i.e 232 now how do i calculate the total allover the 20 entries? i wrote code below but it didn't work out with me [code] //after connection $totalsize = mysql_query("SELECT * FROM my_points"); $totalsizenum = mysql_num_rows($totalsize); while($totalsizerow = mysql_fetch_array($totalsize)){ $allofit = print("$totalsizerow[size] + 1"); } [/code]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.