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

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.

主站蜘蛛池模板: 三门峡市| 沽源县| 镇安县| 温州市| 崇明县| 武山县| 娄底市| 侯马市| 京山县| 台北县| 怀集县| 汉源县| 和静县| 木里| 五华县| 忻城县| 庆阳市| 贡觉县| 闽清县| 岑巩县| 泾源县| 农安县| 彰武县| 乐安县| 恩平市| 绍兴市| 罗源县| 西平县| 桂林市| 鹤山市| 永丰县| 齐齐哈尔市| 栾城县| 永济市| 隆德县| 当阳市| 蕲春县| 新绛县| 玉林市| 应用必备| 疏勒县|