O Resultado é nosso cliente na mídia

Jornal / Revista


Notice: Undefined variable: sql in /home/storage/4/51/0b/intermidiariopreto1/public_html/admin/lib/php/class/db_transaction.class.php on line 258
Array
(
    [0] => PDOException Object
        (
            [message:protected] => SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
            [string:private] => 
            [code:protected] => 2002
            [file:protected] => /home/storage/4/51/0b/intermidiariopreto1/public_html/admin/lib/php/class/conexao.class.php
            [line:protected] => 34
            [trace:private] => Array
                (
                    [0] => Array
                        (
                            [file] => /home/storage/4/51/0b/intermidiariopreto1/public_html/admin/lib/php/class/conexao.class.php
                            [line] => 34
                            [function] => __construct
                            [class] => PDO
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => mysql:host=localhost;port=3306;dbname=intermid_intermi;charset=utf8
                                    [1] => intermid_intermi
                                    [2] => MQSh*^076;I@
                                )

                        )

                    [1] => Array
                        (
                            [file] => /home/storage/4/51/0b/intermidiariopreto1/public_html/admin/lib/php/class/transacao.class.php
                            [line] => 20
                            [function] => open
                            [class] => conexao
                            [type] => ::
                            [args] => Array
                                (
                                    [0] => 
                                )

                        )

                    [2] => Array
                        (
                            [file] => /home/storage/4/51/0b/intermidiariopreto1/public_html/admin/lib/php/class/db_transaction.class.php
                            [line] => 197
                            [function] => open
                            [class] => transacao
                            [type] => ::
                            [args] => Array
                                (
                                )

                        )

                    [3] => Array
                        (
                            [file] => /home/storage/4/51/0b/intermidiariopreto1/public_html/admin/lib/php/class/db_transaction.class.php
                            [line] => 188
                            [function] => select_db
                            [class] => db_transaction
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => SELECT id AS 'id', name AS 'name', slug AS 'slug', content AS 'content', summary AS 'summary', category_id AS 'category_id', DATE_FORMAT(date_start, '%d/%m/%Y') AS 'date_start', DATE_FORMAT(date_end, '%d/%m/%Y') AS 'date_end', status_id AS 'status_id', DATE_FORMAT(date_create, '%d/%m/%Y') AS 'date_create', ord AS 'ord', user_id AS 'user_id', cliente_id AS 'cliente_id', (SELECT category.name FROM category WHERE category.id = category_id) AS 'category.name', (SELECT status.name FROM status WHERE status.id = status_id) AS 'status.name', media_url AS 'media_url', youtube_url AS 'youtube_url', (SELECT inter_cliente.name FROM inter_cliente WHERE inter_cliente.id = cliente_id) AS 'cliente_name' FROM article WHERE category_id = NULLIF(:article_category_id1, '') AND status_id = NULLIF(:article_status_id1, '')
                                    [1] => Array
                                        (
                                            [:article_category_id1] => 1
                                            [:article_status_id1] => 1
                                        )

                                    [2] => 
                                    [3] => 
                                )

                        )

                    [4] => Array
                        (
                            [file] => /home/storage/4/51/0b/intermidiariopreto1/public_html/index.php
                            [line] => 70
                            [function] => select_tb
                            [class] => db_transaction
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                            [category_id] => Array
                                                (
                                                    [=] => 1
                                                )

                                            [status_id] => Array
                                                (
                                                    [=] => 1
                                                )

                                        )

                                )

                        )

                )

            [errorInfo] => 
        )

)

    Notice: Uninitialized string offset: 0 in /home/storage/4/51/0b/intermidiariopreto1/public_html/index.php on line 81

    Fatal error: Cannot use string offset as an array in /home/storage/4/51/0b/intermidiariopreto1/public_html/index.php on line 81