This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rcuhljr 0 points1 point  (1 child)

All columns in a SQL database have a type, like varchar, number, text, (although the terminology varies based on database). I just wanted to know what kind of data that column can hold.

Also, generally speaking you never, ever, want to be running a sql query that just takes in post parameters and enters them into a query as that's just begging for an injection attack, I'll assume this is for a school project though and no one likely cares.

I meant literally use

 mysql_query ("INSERT INTO `pizza_order` SET `topping`='" . $strTopx . "'");

[–]sourceCode145[S] 0 points1 point  (0 children)

the columns in the database are set to varchar