Path: csiph.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.php Subject: Re: Problem validating user and hashed value in db Date: Wed, 11 Jan 2017 23:18:04 +0100 Organization: PointedEars Software (PES) Lines: 29 Message-ID: <1637589.atdPhlSkOF@PointedEars.de> References: <59dee77f-3973-468a-bc21-2cbfd2fe4d7a@googlegroups.com> <04c4b8b6-9fba-4306-b241-72458fbbd917@googlegroups.com> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: solani.org 1484173086 29631 eJwFwQkBACAIA8BKKuOLM0H6R/BOxbaVw9Sgo5NBuYVL6YrSJSdXY2umOyp85AzhwTfWTX4boxFt (11 Jan 2017 22:18:06 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Wed, 11 Jan 2017 22:18:06 +0000 (UTC) User-Agent: KNode/4.14.2 X-NNTP-Posting-Host: eJwFwYENAEAEA8CVXkrVOCLsP8LfBWicdAY9Li5VDp9OK+Gwek9CsYkny+xbmGZ3AjFnH/v3EFo= Cancel-Lock: sha1:xv9bZnRXMVYYVMiVoj6q3pp93Ik= X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. On 11.01.2017 at 15:07, Jerry Stuckle wrote: >> On 1/11/2017 6:47 AM, Christoph M. Becker wrote: >>> On 11.01.2017 at 07:32, wart2ww wrote: >>>> On Tuesday, January 10, 2017 at 8:28:10 PM UTC-8, Jerry Stuckle wrote: >>>>> So, what does print_r($pw) actually show? That is critical to the >>>>> rest of the code. >>>> Just ran the print_r and got nothing. In my attempts, at one point I >>>> did get the db table value but I am not now. Sorry for the confusion. >>> Don't use print_r(), but rather var_dump(). >> Either one works, Christoph. They just show the information in a >> slightly different way. > > print_r(false) produces no output, while var_dump(false) does. That is also true for the string of zero length and the NULL value, because that is their string representation (the result of converting them to the string type). PHP 101. With Xdebug so configured and loaded, var_dump() also has the advantage over print_r() that it prints colored output, prepends '
' and appends 
'
', and limits by default the output for nested arrays. -- PointedEars Zend Certified PHP Engineer | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.