Www@Chinaz@com
当然,有一定基础后,你应该要写成这样:
Chinaz^com
| 以下为引用的内容: $foo = & PHP和MYSQL制作动态网站开发经验之谈作者:凯旋网络来源:凯旋网络
$username = PHP和MYSQL制作动态网站开发经验之谈作者:凯旋网络来源:凯旋网络
PHP和MYSQL制作动态网站开发经验之谈作者:凯旋网络来源:凯旋网络
PHP和MYSQL制作动态网站开发经验之谈作者:凯旋网络来源:凯旋网络
|
中.国站长站
5.编写规范的mysql 语句。 Www~Chinaz~com
字段和表名用"`"引起来,避免保留字的影响。 Chinaz^com
如果看到下面这样的一个sql query,会让人比较头痛: 中.国.站长站
| 以下为引用的内容: $query="select `flash_comment`.`content` , `flash_comment`.`nickname` , `flash_comment`.`date` , `flash_comment`.`ip` , `product`.`p_name` , `sgflash`.`fid` from `flash_comment` left join `product` on ( `flash_comment`.`p_no` = `product`.`p_no` ) left join `sgflash` on ( `product`.`p_name` = `sgflash`.`f_name` ) where `flash_comment`.`p_no` != ’’ order by `flash_comment`.`date`"; Chinaz@com |
同样的一个query,写成这样就令人看得明白得多了: 站.长站
| 以下为引用的内容: $query = "SELECT `flash_comment`.`content` , `flash_comment`.`nickname` , `flash_comment`.`date` , `flash_comment`.`ip` , `product`.`p_name` , `sgflash`.`fid` |
