Hi,
I am very new to influxdb and i wanted to display data from influxdb using 
php.
kindly suggest me the full script for the same....
i will great thankful to you....

On Wednesday, October 7, 2015 at 2:29:39 PM UTC+5:30, [email protected] 
wrote:
>
> Hello Everyone,
>
> First of all I like to Thank Paul and all the developers who have worked 
> hard in bring the wonderful InfluxDB. I am using it from quite a number of 
> days and i am really glad that it existed and is open source.
>
> Coming to the point, i am trying to connect influxDB with PHP and i can 
> say i was successful all thanks to Corley for developing PHP api. I am 
> finding difficult in setting Database on which my query has to be applied 
> on.
>
> Below i have mentioned my sample PHP code i am working on, Kindly let me 
> know how to choose the specific database from the available list of 
> databases.?  
>
>
> <!DOCTYPE html>
> <html>
> <body>
>
> <h1>My first PHP page</h1>
>
> <?php
> use DateTime;
> use DateTimeZone;
> use InfluxDB\Options;
> use InfluxDB\Client;
> use InfluxDB\Adapter\GuzzleAdapter;
> use GuzzleHttp\Client as GuzzleHttpClient;
> use InfluxDB\Integration\Framework\TestCase as InfluxDBTestCase;
> require 'composertest/vendor/autoload.php';
> error_reporting(E_ALL);
> ini_set('display_errors', 'on');
> $http = new \GuzzleHttp\Client();
>
> $options = new Options();
> $options->setUsername("abhi");
> $options->setPassword("1234");
>
> $adapter = new GuzzleAdapter($http, $options);
> $client = new Client($adapter);
>
>
> //I need to select database "Test"
>
> var_dump($client->query('select * from "app-search"'));
> ?>
>
> </body>
> </html>
>
>

-- 
Remember to include the InfluxDB version number with all issue reports
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/fdfa0133-a0cb-4994-a4a1-9daf8cae7e7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to