subscribe in php Home › Forums › Newsletter Plugin Support › subscribe in php This topic has 1 reply, 2 voices, and was last updated 6 years, 11 months ago by Stefano. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts December 16, 2017 at 10:41 am #60405 daggelitoParticipant Hey, is there a way to create a new user in php? I searched you plugin and found $request = array("name": "Username", "email": "user@email.com"); $module = NewsletterUsers::instance(); $request['status'] = 'C'; $request['sex'] = 'n'; unset($request['name']); $user = $module->save_user($request); but this code returns me the “mysqli_real_escape_string() expects parameter 2 to be string, array given” error. Can you help me? Cheers Leo December 16, 2017 at 1:47 pm #60428 StefanoKeymaster Do a var_dump of your $request and check its structure. It must be an associatve arrau with at least the “email” key. Stefano. Author Posts Check out our premium plans with priority support. Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In