Jump to content

Mohsin

Member
  • Posts

    12
  • Joined

  • Last visited

Everything posted by Mohsin

  1. m working on a task but m stuck at a point that is to make an XML parser using PHP. now my question is in the following: is there any way to make a XML parser at general level so that if i parse any XML file it find out node values of its tags, attributes and also the values of the sub child of the child??? if there is any way to make such parser then please help out me
  2. hi to all i have an assigned task that is to make a xml parser using php at general level so that it can parse every file of extension .xml and show the each tag. i made a lot googling but doesn't find a proper way to made such parser. m here for your help... thanx in advance
  3. I have the following XML tree: <?xml version="1.0" encoding="utf-8"?> <root> <start_info> <info tabindex="1"> <infonumber>1</infonumber> <trees>green</trees> </info> </start_info> <people> <pe> <people_ages> <range number="1"> <age value="1">1</age> <age value="2">2</age> </range> </people_ages> </pe> </people> </root> Firstly I have to display all of the nodes in the checkbox and then their node value have to retrieve on submit of the file. I have to do it using PHP.
  4. Mohsin

    php xml parser

    hi i have the following XML <?xml version="1.0" encoding="UTF-8"?> <products> <product> <name>Any Name</name> <productUrl>www.something.com</productUrl> <imageUrl>www.example.com</imageUrl> <description>new product</description> <price>15</price> <currency>ABC</currency> <TDProductId>1234646487</TDProductId> <TDCategoryID>5</TDCategoryID> <TDCategoryName>Any Name</TDCategoryName> </product> </products> and i have to find out its root node using php. anyboyd is there to help me...!!! thnx in advance
  5. Asslam-u-Alaikum to all m doing a task in which i have to use paging using php anybody is there to help me in this regard Allah Hafiz
  6. Asslam-u-Alikum hi to all i have a template that is made in jquery and now i want to convert it in to PHP so that i can use it for my purpose.. any suggestion or guidance that how can i convert that theme into PHP waiting for the reply thnx in advance Allah Hafiz
  7. i have done it using isset function of php
  8. i have done it in the following manner thnx BEN <?php class abc { public function mine (){ echo "i m private function"; } public function ham (){ $this->mine(); } } $xyz = new abc(); $xyz->ham(); ?>
  9. css will bring some form of designing and beauty in your application. also the css3 have some of the new to make more beautiful application. so in my point of view you also learn css
  10. Mohsin

    edit option in php

    hi to all!!! i have the code in the following: i have index.php <html> <head> </head> <body> <form action="form.php" method="post" name="form"> enter your name<input type="text" name="txt" /> <input type="submit" value="1" name="submit" /> </form> </body> </html> i have form.php <?php class myclass { public function abc(){ $name = $_POST['txt']; echo 'you have enter name:'.$name; echo 'do you want to edit it <a href="edit.php">click here</a>'; } } $obj = new myclass(); $obj1 = $_POST['submit']; if($obj1){ $obj->abc();} ?> and in the end i have edit.php <html> <head> </head> <body> <form action="form.php" method="post" name="form"> enter your name<input type="text" name="txt" value="<?php echo $name;?>" /> <input type="submit" value="1" name="submit" /> </form> </body> </html> the problem is i want to create the edit option if the user have enter the wrong information is there anyone to help me !!!! thnx in advance
  11. hi to all!!! i have a file said "index.php" this file have two anchors one is insert and seconed is delete. the anchor will call two different files "insert.php" and the "delete.php". both of these files have their respective forms. and after submiting the form both calling the same file.. but the prblem is that if i press the button of delete it aces the file but put some error for the value that is comming from insert.php... anybody is there to help me
  12. hi stefan!! m new engaged with oop php and i was trying to do something like following: <?php class abc { public function mine (){ echo "i m private function"; } public function ham (){ mine(); } } $xyz = new abc(); $xyz->ham(); ?> and i got the error "Fatal error: Call to undefined function mine()". plz help out me
×
×
  • Create New...