Okay, first off, is it possible to add zeros before a number? I want to do it for a hit counter script, but it just keeps adding zero to the number itself
.
Example:
000002 instead of 2
And for MySQL, how the heck can I make it update values correctly? It won't seem to work right...
When I run this through a mysql_query, it doesn't update it at all
.
If anyone can help me with this, I'd really appreciate it.
Example:
000002 instead of 2
And for MySQL, how the heck can I make it update values correctly? It won't seem to work right...
| Code: |
|
$query1 = "UPDATE counters SET page_hits=$curhits WHERE page_id=$pg_id"; |
When I run this through a mysql_query, it doesn't update it at all
If anyone can help me with this, I'd really appreciate it.
