hello there, im beginner in php programming.
when i run this script the error appear is "Fatal error: Cannot create references to/from string offsets nor overloaded objects in core24.php on line 296.
what is the possible solution for this script?
function save_orderinfo(&$frm) {
global $USER;
$order = new Object();
$order->customer = $frm["customer"];
$order->email = $frm["email"]; //MADE ADDITIONAL BY JDJ
$order->contact = $frm["contact"];
$order->cellno = $frm["cellno"];
$order->address = $frm["address"];
$order->city = $frm["city"];
$USER["orderinfo"] = &$order;
}
Fatal error: Cannot create references to/from string offsets
Moderator: General Moderators
-
james_madrid
- Forum Newbie
- Posts: 1
- Joined: Mon Nov 29, 2004 10:10 pm