vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I'd like to store a struct Foo, which is defined as: ,---- | struct Foo{ | int a, b; | }; `---- as a varbinary type field into database. How can I read/write this varbinary type? I'm afraid I didn't find out much from the mysql references. -- William http://williamxu.net9.org *阵* 晏殊 燕*来时新社,梨花落后清明。 *上碧苔三四点,叶底黄鹂一两声, 长飞絮轻。 巧笑东邻女伴,采桑径里逢迎。 疑怪昨宵春梦好,元是今朝斗草赢, 从双脸生。 |
| ||||
| Got it, should quote it with mysql_escape_string first. -- William http://williamxu.net9.org 临江仙 晏*道 梦后楼台高锁,酒醒帘幕低垂。 去年春恨却来时。 落花人独立,微雨燕双飞。 记得小苹初见,两重心*罗衣。 琵琶弦上说相思。 当时明月在,曾照彩云归。 |