seco Posted January 5, 2008 Share Posted January 5, 2008 Hi i try to write the following code $doc = domxml_new_doc("1.0"); $node = $doc->create_element("para"); $newnode = $doc->append_child($node); // this line 71 $newnode->set_attribute("align", "left"); // this line is 72 it gives me error says:- Warning: domnode::append_child() expects parameter 1 to be object, null given in C:\wamp\www\test.php on line 71 Fatal error: Call to a member function set_attribute() on a non-object in C:\wamp\www\test.php on line 72 any help? thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/84611-domnodeappend_child-expects-parameter-1-to-be-object/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.