官术网_书友最值得收藏!

Introduction

One of the common requests I receive from clients is the option to send surveys via SMS. This chapter is based on the survey builders I've built for my clients.

Surveys are handy for seeing what features users want to build into a web app next, running contests, and generally gathering opinions.

In the first section, you'll have a way to let your users subscribe to your surveys. Then you'll build a survey builder that lets you view stats on sent surveys and also send new surveys. We'll include tracking here so that you can see what responses people send back and also give users the ability to unsubscribe from surveys.

Finally, we'll add some handy charting so that we can view the survey results on a nice chart.

This chapter will involve some SQL; you can find the sql file in the Chapter3/ folder.

We're also going to use a class to use PHP's PDO library for database handling. This file is called pdo.class.php and can be found in the Chapter3/ folder.

There are many ways to connect to databases in PHP, but I prefer the PDO driver because you can actually quickly tell it to connect to MySQL, SQLite, or PostgreSQL. In this book, we'll be using MySQL when we use databases.

主站蜘蛛池模板: 读书| 大英县| 濮阳市| 兰坪| 大邑县| 白银市| 奇台县| 永善县| 龙山县| 额尔古纳市| 尚志市| 岑溪市| 张家界市| 阿尔山市| 察雅县| 珠海市| 格尔木市| 东阿县| 平谷区| 贵溪市| 通海县| 孟村| 寿阳县| 繁昌县| 寿宁县| 大新县| 台州市| 祁阳县| 清镇市| 汽车| 元朗区| 镇雄县| 恩施市| 永德县| 甘洛县| 东莞市| 瑞金市| 曲周县| 宕昌县| 鹤山市| 永定县|