|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-23 07:55 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 20:00:01 2025 UTC |
Description: ------------ I have tried to create a script which stores data in to the mysql database but for some reason i am getting this error Fatal error: Method name must be a string in D:\william\xampp\htdocs\personal\classwork\EXAMPLE2\admin\includes\addmenu.inc on line 28 I have tried to research and thought this might be a problem how can i fix this? Reproduce code: --------------- The Changes i have made are by removing it but still doesnt insert the data into the database so how can i fix this? any ideas how this can be fixed? include("../dbconnect.php"); $lQuery="INSERT INTO navmenu VALUES('','".$lname."','".$laddy."')"; echo $lQuery; and under it i have if(!$rs) { echo "Error:".mysqli_error($con); } Expected result: ---------------- i got the error when i click my submit button and didnt do anything i tried to do echo iquery that worked fine but without me going into the database it doesnt do anything. Actual result: -------------- it is suppose to insert the data into the table called navmenu but doesnt do that unless i use the sql query so how can i fix this? if i do put the insert code it works just gives me that error