Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header('Access-Control-Allow-Origin: *');
- $con = mysql_connect("Mine1.psu-erie.bd.psu.edu","cmpsc497","cmpsc497");
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- mysql_select_db("cmpsc497", $con);
- $result = mysql_query("SELECT (`1`,`2`,`3`,`4`,`5`,`6`) FROM `cpk5040` ");
- if (!$result) {
- die('Invalid query: ' . mysql_error());
- }
- while ($rt = mysql_fetch_array($result)) {
- foreach ($rt as $loc) {
- echo $loc.'<br />';
- }
- }
- mysql_close($con);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement