I have a question. I am using a server at bluehost and I will be creating mysql database on my server. I am also going to be using data in XML format to populate my database. After I create this php document to extract from XML & insert into MySQL where do I save the xml_extract.php file on my server?
Im getting an ERROR Trying to get property of non-object and another ERROR Invalid argument supplied for foreach() both on line 16. PLEASE HELP hers the code *foreach ($xml -> item as $row)
I have an error n my xml_extract.php Notice: Trying to get property of non-object in C:\xampp\htdocs\syllabus\xml_extract.php on line 15 Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\syllabus\xml_extract.php on line 15 what should I do with this
This is looking good. How do I need to change this to work with OAuth? So far I managed to fetch a protected xml resource. Is it even possible to process this response with your script? If you are willing to help I can provide you with the code I got so far.
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\Web__Services\earthquake.php:19 Stack trace: #0 {main} thrown in C:\xampp\htdocs\Web__Services\earthquake.php on line 19 why the duck is it showing me this
I get error "Parse error: syntax error, unexpected '"' on line 23 in .php when write $sql = "INSERT INTO 'test_xml' ('title', 'destination', 'price')" "VALUES ('$title', '$destination', '$price')"; then I fix it $sql = "INSERT INTO 'test_xml' ('title', 'destination', 'price') VALUES ('$title', '$destination', '$price')"; but now I get MYSQL Error. Why can't connect on mysql? Login without password. Thank you
Not Genius try writing test_xml in between back quotes( ` ) i.e `test_xml` or without specifying any quotes at the ends. In the code specified above, test_xml is written between apostrophes.
Excelent info friend! Thank you so much.
I have a question. I am using a server at bluehost and I will be creating mysql database on my server. I am also going to be using data in XML format to populate my database. After I create this php document to extract from XML & insert into MySQL where do I save the xml_extract.php file on my server?
Create new folder at server and save there. For example, new folders name is xml, save here, and execute file->, www.example.com/xml/xml_extract.php
WilxamTv example.com, is name of your domain, xml-new folder, xml_extract.php, php file that extract data from xml and insert into your database
Im getting an ERROR Trying to get property of non-object and another ERROR Invalid argument supplied for foreach() both on line 16. PLEASE HELP hers the code *foreach ($xml -> item as $row)
how to create this xml web format? so that i have url to use.
it's not working for my xml file.
hear is the xml file
AGB
Movies
AGB
Movies
I have an error n my xml_extract.php
Notice: Trying to get property of non-object in C:\xampp\htdocs\syllabus\xml_extract.php on line 15
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\syllabus\xml_extract.php on line 15
what should I do with this
the link is down, can u reupload?
I am also getting "Notice: Trying to get property of non-object" error. What is the fix for this?
I think the problem might be that the XML is failing to load?
How I find the xml file?
This is looking good. How do I need to change this to work with OAuth? So far I managed to fetch a protected xml resource. Is it even possible to process this response with your script? If you are willing to help I can provide you with the code I got so far.
Did you tell me that how to extract xml file in java and send to database
i need the code because it is not visible in the video clearly.
simple_xml_extract funtion.... is throwing an error??? how to resolve it
that is from my video? in what minute?
but did no upload of all data in xml. Note who show erro all time request (30s)
i get this error
Fatal error: Call to undefined function curl_init() in D:\programs1\XAMP\xampp\htdocs\test_xml\index.php on line 4
nice video . how about form php to xml. That is data from a php file into an xml file
How to Work with Multi Dimensional Array in php
i'm not having url ?having xml as file how to do?
simplexml_load_file('abc.xml')
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\Web__Services\earthquake.php:19 Stack trace: #0 {main} thrown in C:\xampp\htdocs\Web__Services\earthquake.php on line 19
why the duck is it showing me this
I get error "Parse error: syntax error, unexpected '"' on line 23 in .php when write
$sql = "INSERT INTO 'test_xml' ('title', 'destination', 'price')"
"VALUES ('$title', '$destination', '$price')";
then I fix it
$sql = "INSERT INTO 'test_xml' ('title', 'destination', 'price')
VALUES ('$title', '$destination', '$price')";
but now I get MYSQL Error.
Why can't connect on mysql? Login without password.
Thank you
Not Genius you can't connect to your database? You use xampp? or another server?
WilxamTv yes I use xampp.
WilxamTv It works with code bellow.
$sql = "INSERT INTO test_xml (title, destination, price)
VALUES ('$title', '$destiantion', '$price')";
Not Genius try writing test_xml in between back quotes( ` ) i.e `test_xml` or without specifying any quotes at the ends. In the code specified above, test_xml is written between apostrophes.
Yes this does work :)
Where is the script?
error miss
Thanks +WilxamTv, #php_extract