Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $db_host = '67.23.2.219';
- $db_user = 'user1';
- $db_pwd = '';
- $database = 'test';
- $table = 'faq_questions';
- if (!mysql_connect($db_host, $db_user, $db_pwd))
- die("Can't connect to database");
- if (!mysql_select_db($database))
- die("Can't select database");
- // sending query
- $result = mysql_query("SELECT question, detailed_question FROM faq_questions");
- while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
- printf("Question: %s Answer: %s<br></table>", $row["question"], $row["detailed_question"]);
- }
- mysql_free_result($result);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement