- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 2
- Interests
- watching movies,reading computer related articles
20 Posted Topics
I cant install cakephp.I had wamp installed me.But when i try to install cakephp i got the following errors CakePHP: the rapid development php framework Release Notes for CakePHP 2.1.1. Read the changelog Notice (1024): Please change the value of 'Security.salt' in app/Config/core.php to a salt value specific to your … | |
I am new to php.I was trying to upload a file but i got an HTML table as result with undefined content type.Here is my code <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="fileuploader.css" rel="stylesheet" type="text/css"> <script src="fileuploader.js" type="text/javascript"></script> <script> function createUploader(){ // alert("hhh"); var uploader = new qq.FileUploader({ … | |
I had a file named start.php in my D:\Wamp folder.I need to upload the file and enter the full path ie D:\Wamp\start.php into my database.I did the code.But I am not getting the full file path in my database the Code is as follows: <tr> <td width="71">Select a file <span … | |
I am new to cakephp.I installed CakePHP.I wnat a simple program so as to know how to use cakephp.I tried everysite but couldnot understand how the MVC works while writing a program.I also want to know how database is created in CAKEPHP> | |
I am new to usage of jquery.I want to show a confirmation facebox while all my input requirements are true.ie when my form fields are validated a simple facebox should appear showing the forms are validated.How can i do it.Itried a lot.But i didnt get the source for facebox.I didnt … | |
I am new to ajax jquey in programming.I had successfully inserted values which i posted via form field(id,name,age) in my xml file.But i am not printing the correct result in my HTML table.I had to insert the datas in xml file and also display the result in an HTML table. … | |
What is the reason for this outputted XML file <?xml version="1.0"?> <table> <order> <id/> <name/> <age/> </order> <order><id>1</id><name>baven</name><age>44</age></order><order><id>1</id><name>baven</name><age>44</age></order></table> this is my database.xml page my full code is: <?php $url='database.xml'; $xml = simplexml_load_file($url); ?> <html> <head> <script type="text/javascript" src="jquery-latest.js"></script> <script type="text/javascript" src="jquery.tablesorter.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} ); … | |
I have a problem while creating an xml file in php.I am not getting th root element.But all other elements are been outputted in the result.What might be the reason????Any help would be appreciated.The code is depicted below.order is my root element. <?php $url='success.xml'; //$xml = simplexml_load_file($url); $name = htmlentities($_POST['name']); … | |
I have a php/html form where certain inputs will be given in the textboxes. Once the submit button is pressed i want to save these data in a xml file in their respective fields. Also i wish to retrieve this data in furthere pages. | |
I dont know how to write to an XML FILE in php.Can anyone help me to let me know by giving a simple example in xml.Any help would be appreciated..An example in xml is shown below <?xml version="1.0" encoding="UTF-8"?> <table> <order> <id>1</id> <name>john</name> <age>23</age> </order> <order> <id>2</id> <name>patrick</name> <age>22</age> </order> … | |
I am new in creating XML file using php..I wrote a code but the code doesnot show xml file on running it..Can anybody figure out what the problem is the code is as follows <?php $dom = new DOMDocument('1.0', 'UTF-8'); $root=$dom->createElement("xml"); $dom->appendChild($root); $title=$dom->createElement("title"); $root->appendChild($title); $path=$dom->createElement("path"); $title->appendChild($path); $title=$dom->createTextNode("pepperoni"); $path->appendChild($title); echo $dom->saveXML(); … | |
I am not redirecting to the respective page.What might be the reason?????Can i get my code correctly.Any help would be appreciated <form action="rollno.php" method="GET"> <table> <tr> <td>username</td> <td><input type="text" id="username" name="username" value="<?php if (isset($_GET['username'])) { echo $_GET['username']; } ?>"><span style="color:red"> <?php if(isset($_GET['username'])&&($_GET['username']=="") ) echo "please enter username" ;?></span></td> </tr> <tr> … | |
Re: [QUOTE=SQLpower;1775317]For example, I have a form that passes the username, the year of birth and the password. Is there anyway I can retrieve information from the database(using an SQL query) if the user is an admin and then convert it to a $_SESSION['admin'];? How can I retrieve additional information about … | |
I am new to php...I wanna to show a loading image when the page is loading something in php...any help would be appreciated ![]() | |
i am a new to php.i am having a trouble that whenever i typed a wrong username in the textfield the field goes blank after its submission...I need the field values there such i need not want to insert the textfield value again.so how can i avoid such problem...i appreciate … | |
I am using php to list out categories for a particular item while making blog.But i am listing out all the categories which are present in database in the list.I created a category table in my database.my code is listed as follows: [CODE] <?php include 'connection.php'; $list ="select name from … ![]() | |
I had a category named movies,gadget.I want to display subcategories of each category in php.movies contain subcategories like new release,upcoming movies,songs and gadget contains subcategories like pc,mobiles.I want to display each category and its subcategories on the same page while clicking on category title.I created databases for each categories.Any help … | |
Can i get a simple php code for knowing the usage of model view controller(MVC) in php.It should also highlight comments also..Any help would be appreciated | |
Re: [QUOTE=Shanti C;1427880]you have to pass $q to the function fetch() not $data.. mysql_fetch_array() function only takes resource returned by mysql_query() function. or change your fetch() like this: [code] function fetch($data) { $q = mysql_query($data); mysql_fetch_array($q); } [/code][/QUOTE] change mysql_fetch_array to mysql_fetch_assoc function fetch($data) { $q = mysql_query($data); mysql_fetch_assoc($q); } | |
I wanna to know the difference between mysql_fetch_Assoc and mysql_fetch_Array..I am a little bit confused at its usage..Kindly provide with a sample example also...Any help would be appreciated |
The End.