mysqli_query not working when called from inside a function

时间:2015-05-08 09:57:01

标签: php mysql web mysqli

Here is my code:

#sidebar-wrapper {
    margin-left: -250px;
    left: 70px;
    width: 250px;
    background: #222;
    position: fixed;
    height: 100%;
    z-index: 10000;
    transition: all .4s ease 0s;
    overflow-y:hidden;  /* NEW ONE */
}

When I run this, the query doesn't seem to execute and nothing shows up on the page. However, if I remove the function and just change the code to this:

overflow-y:auto;

It works, and the patient's name is displayed.

What is going on here?

2 个答案:

答案 0 :(得分:0)

Pass def generate if self[:file] Puppet::Type.type(:file).new({ :name => <whatever the path on the agent is>, :ensure => :present, :source => self[:file], }) end end to the function. It is not working because of the template <class T, int A, int B> using R = OftenUsedType<T,A,B>; of that variable. Try with -

$link

答案 1 :(得分:0)

Pass the $link to function as a parameter. Try this:

App\Http\Requests