DiscoTrio Posted December 10, 2009 Share Posted December 10, 2009 K, I have a user table in place a field named template.... I want to start storing values like 1, 5, 7, 2 But I need a way to write one at a time, say 1, 5, was in the database. I want to add a 7, how would I do that from php? The later I want to get these values back seperately... How can I use a php script to check if a certain number is in a mysql field? Quote Link to comment Share on other sites More sharing options...
will35010 Posted December 10, 2009 Share Posted December 10, 2009 What code are you having a problem with? You need to look at the mysql or mysqli functions to accomplish what you need. http://php.net/manual/en/book.mysql.php http://php.net/manual/en/book.mysqli.php Quote Link to comment Share on other sites More sharing options...
DiscoTrio Posted December 10, 2009 Author Share Posted December 10, 2009 Ive looked at that, but for a first question, how would you check and see if a number (or charecter) is in a mysql field? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.