String Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mirana
Forum Newbie
Posts: 9
Joined: Wed Dec 08, 2010 11:56 pm

String Help

Post by mirana »

Does anyone know is * is a string?
if I define a variable ad `package` text collate latin1_general_ci NOT NULL, ; Can I assign * to that package?

if I can't then How do I need to initialize in SQL?

Thank you
User avatar
Apollo
Forum Regular
Posts: 794
Joined: Wed Apr 30, 2008 2:34 am

Re: String Help

Post by Apollo »

Sure, as long as you quote it.

Code: Select all

INSERT INTO your_table (package) VALUES ('*')
mirana
Forum Newbie
Posts: 9
Joined: Wed Dec 08, 2010 11:56 pm

Re: String Help

Post by mirana »

Thanks :)
Post Reply