Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.php Subject: Re: 500 internal server error Date: Fri, 05 Jun 2015 01:45:06 +0200 Organization: solani.org Lines: 16 Message-ID: References: <572f737e-484d-412e-a32d-88505b0cdafd@googlegroups.com> <4f063ea6-66d9-4c23-a3d3-8ef525559ac9@googlegroups.com> <48m1na97dij5025n5lg040dkqmcdplol39@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1433461497 22722 eJwFwYEBwCAIA7CXFNoyzpkg/59gQtdWBUSBw0HG3SFXkV2d+8M/ygjSzhHKZEu9rK8nAg8H4hAo (4 Jun 2015 23:44:57 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Thu, 4 Jun 2015 23:44:57 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 X-User-ID: eJwNwoERwCAIBLCVUHiUcQD5/Udoc4H68j7mcANBq2Hk3VTe0/ivjWxGy02mrqmaA7EXT1rzAzFCEfE= In-Reply-To: Cancel-Lock: sha1:91QEo7fzxVfz++mEYQO0297bG1c= X-NNTP-Posting-Host: eJwNxUkBwDAIBEBLgcACcsLlX0I7n9ELQplAIbq6mKLq+ePF42qSJ5YH0R2eMctwG084Qsk/ObwRgg== Xref: csiph.com comp.lang.php:15421 jans wrote: Please do not top-post. That makes it hard to follow the discussion, and even harder to reply sensibly. > $db_link = mysqli_connect($db_host, $db_user, $db_password, $db_name) or die ("Unable to connect") . mysqli_error($link); > it works, Lucky you. If it didn't work, you would get no error messages from mysqli_error(), because this function will never be called. Hint: in PHP there is no life after dying. -- Christoph M. Becker