Jump to content

How to access the database

Steven Zhang

Recommended Posts

I create a  my.php  and  put it on the server's  'public_html'  directory.


my.php  code:

require "init.php";
header("content-Type: text/html; charset=Utf-8");
    //$value =array('auth'=> $name,'password'=> $pass);
    $member = \IPS\Member::load( $name );
    $member1 = new \IPS\Member;
    echo ".....................................";
<form action="my.php" accept-charset="utf-8" method="post">
    name: <input type="text" name="name">
    pass: <input type="password" name = "pass">
    <input type="submit" name="sub" value="发表">

why  I'can  access the database ,

$member = \IPS\Member::load( $name );

this  $member  is always  null.

that means I can't access the ddatabase through   \IPS\Member::load($name);

someone tell me why ?  please .




Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...