Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = "localhost";
- $user = "statistics";
- $pass = "akecbdy6";
- $db = "stats";
- $table = "testing";
- $connection = mysql_connect($host, $user, $pass) or die ("Unable to connect");
- mysql_select_db($db) or die ("Unable to select database");
- $result= "SELECT * FROM $table ORDER BY id;";
- $id = array();
- $company = array();
- $cpa = array();
- if ($result && mysql_num_rows($result)) {
- while (($row = mysql_fetch_assoc($result)) !== false) {
- $id[] = $row['id'];
- $company[] = $row['company'];
- $cpa[] = $row['cpa'];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement