Developer Area

root/apps/php/trunk/OpenAuth-php/endpoints.php @ 753

Revision 753, 0.6 kB (checked in by nadya, 4 years ago)

OpenAuth Sample Code added

Line 
1<?php
2#       $config = parse_ini_file("oauth-config.ini", true);
3#       print_r($config);
4       
5        //$mysqli = @new mysqli(
6        //      $config['database']['host'],
7        //      $config['database']['username'],
8        //      $config['database']['password'],
9        //      $config['database']['db']
10        //);
11       
12#       print_r($mysqli);
13       
14        $result = $mysqli->query('SELECT * from endpoints');
15        while ( $endpoint = $result->fetch_object() ) {
16?>
17                                                <option name="'.<?= $endpoint->id ?>" value="<?= $endpoint->endpoint ?>"<?= $_POST['endpoint']==$endpoint->endpoint?' selected':'' ?>><?= $endpoint->endpoint ?></option>
18<?php   
19        }
20?>
Note: See TracBrowser for help on using the browser.
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us