Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Steven Zhang Posted August 11, 2015 Posted August 11, 2015 I create a my.php and put it on the server's 'public_html' directory. my.php code:<?php require "init.php"; header("content-Type: text/html; charset=Utf-8"); if(!empty($_POST['sub'])){ $name=$_POST['name']; $pass=$_POST['pass']; //$value =array('auth'=> $name,'password'=> $pass); $member = \IPS\Member::load( $name ); $member1 = new \IPS\Member; var_dump($member); ?><br> <?php var_dump($member1); 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="发表"> </form>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 .
Steven Zhang Posted August 11, 2015 Author Posted August 11, 2015 I want to create a login handler use myself php. then I can though this php create accounts or use accounts log into ISP.
Steven Zhang Posted August 11, 2015 Author Posted August 11, 2015 I want to create a login handler use my php ,then I can though this to create accounts or use accounts log into ISP. why I can't access the database use this code : ISP\Member::load();
Recommended Posts
Archived
This topic is now archived and is closed to further replies.