Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #15152

Re: Why do I get error when same code works elsewhere?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.php
Subject Re: Why do I get error when same code works elsewhere?
Date Tue, 31 Mar 2015 14:24:11 +0200
Organization solani.org
Lines 15
Message-ID <mfe3l5$3hm$1@solani.org> (permalink)
References <18bbb34ftm658$.1tgigatbgo67j$.dlg@40tude.net> <mfe2t4$md2$1@speranza.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace solani.org 1427804645 3638 eJwNwoERACEIA7CZirToOAKy/wj/uXAJqnBRzuGc9bpfUEOHYm5U7ERbUy/NtmBudf8nQXwg3hEC (31 Mar 2015 12:24:05 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Tue, 31 Mar 2015 12:24:05 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
X-User-ID eJwFwQkBwDAIA0BL/DRyGjr8S9hdemlNR2VFbq5iryVhgjETTneAouJ+MgSiw+/chT/yHfwFphCa
In-Reply-To <mfe2t4$md2$1@speranza.aioe.org>
Cancel-Lock sha1:3i/5NuldxvOw0i2PFEnqnEDlUg0=
X-NNTP-Posting-Host eJwFwQkBwDAIA0BLPCEFObBS/xJ2F07ld8Ag4sUzVhfdh8urC1edBJJjaJmTK361RAzB5vwC0hAG
Xref csiph.com comp.lang.php:15152

Show key headers only | View raw


bill wrote:

> On 3/29/2015 9:47 PM, richard wrote:                                                                                                                                                                
>
>> $result = $mysqli->query($sql);<<<<<<<<<<< error here
>>
>> Fatal error: Call to a member function query() on a non-object
>
> Now, your task is to read the introductory chapters about PDO
> http://us1.php.net/manual/en/class.pdo.php

Err, why PDO?  Apparently, richard is using mysqli, what would be fine.

-- 
Christoph M. Becker

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Why do I get error when same code works elsewhere? richard <noreply@example.com> - 2015-03-29 21:47 -0400
  Re: Why do I get error when same code works elsewhere? Doug Miller <doug_at_milmac_dot_com@example.com> - 2015-03-30 02:14 +0000
  Re: Why do I get error when same code works elsewhere? Denis McMahon <denismfmcmahon@gmail.com> - 2015-03-30 03:21 +0000
  Re: Why do I get error when same code works elsewhere? Richard Yates <richard@yatesguitar.com> - 2015-03-29 20:35 -0700
    Re: Why do I get error when same code works elsewhere? richard <noreply@example.com> - 2015-03-29 23:53 -0400
      Re: Why do I get error when same code works elsewhere? Richard Yates <richard@yatesguitar.com> - 2015-03-29 21:12 -0700
        Re: Why do I get error when same code works elsewhere? richard <noreply@example.com> - 2015-03-31 12:01 -0400
    Re: Why do I get error when same code works elsewhere? Jerry Stuckle <jstucklex@attglobal.net> - 2015-03-30 08:21 -0400
      Re: Why do I get error when same code works elsewhere? "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2015-03-30 13:17 +0000
      Re: Why do I get error when same code works elsewhere? Denis McMahon <denismfmcmahon@gmail.com> - 2015-03-30 17:06 +0000
      Re: Why do I get error when same code works elsewhere? richard <noreply@example.com> - 2015-03-31 12:02 -0400
  Re: Why do I get error when same code works elsewhere? bill <william@TechServSys.com> - 2015-03-31 08:11 -0400
    Re: Why do I get error when same code works elsewhere? "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-03-31 14:24 +0200
      Re: Why do I get error when same code works elsewhere? bill <william@TechServSys.com> - 2015-04-01 08:27 -0400
        Re: Why do I get error when same code works elsewhere? ꧁꧂ <vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvva@hotmail.com> - 2023-05-14 08:53 -0700
    Re: Why do I get error when same code works elsewhere? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-03-31 22:38 +0200
      Re: Why do I get error when same code works elsewhere? "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-03-31 22:55 +0200
        Re: Why do I get error when same code works elsewhere? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-03-31 23:23 +0200

csiph-web