Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
steelersfan
New Member
New Member



Joined: Jun 12, 2004
Posts: 5

PostPosted: Thu Oct 14, 2004 11:58 am Reply with quote

i am running php with mysql as my database, here is my problem. When i try to report a game score and one team has 0 , my script will record the 0 into the database but when i try to read it and compare it to a number it doesn't seem to know that the 0 is there, sortive returns a null field. But if i go to the database and edit the record without doing anything to the field and save it then my script will read the 0 fine. Anyone have any idea how to fix this problem, thanks.
 
View user's profile Send private message
djmaze
Subject Matter Expert



Joined: May 15, 2004
Posts: 727
Location: http://tinyurl.com/5z8dmv

PostPosted: Fri Oct 15, 2004 10:01 am Reply with quote

intval(score)
 
View user's profile Send private message Visit poster's website
steelersfan







PostPosted: Sat Oct 16, 2004 6:07 am Reply with quote

already tried that, doesn't work
 
ecvej
Hangin' Around



Joined: Oct 10, 2004
Posts: 45
Location: Northampton, UK

PostPosted: Wed Oct 20, 2004 3:19 pm Reply with quote

post the code you're using to store the score in the database and code to retrieve it + comapare it to another number
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©