18.02.2013, 06:45
You put single-quote tags around your variable replacement specifiers (i.e. you're doing '%d' or '%f'). You ONLY need to do this for strings (or '%s'), for integer values and floats, you should be receiving a syntax error. So, where you have '%d' and/or '%f', change it to %d and/or %f.