8,966 Posted Topics
Re: Your question should be split. The popup part is Javascript, the storing part requires a server side script. | |
Re: Single quotes around your column names is wrong, replace them with backticks. Also remove the brackets, as that is used in MSSQL, not MySQL. | |
Re: Actually, you do know what company it belongs to. Your results are ordered by the company name. So you could do something like this (within the while loop): [CODE] //before while: $totals = array (); //inside while: if (!isset($totals[$row['Customer_Company_Name']])) { $totals[$row['Customer_Company_Name']] = 0; } $totals[$row['Customer_Company_Name']] += $row['CleaningRow_Customer_Total_Price']; // after the … | |
Re: Can you provide an URL, so we can see? | |
Re: [CODE] $your_string = preg_replace('/\{\$\w+\}/', '', $your_string); [/CODE] | |
Re: If you mean just HTML, then no. You'll need a server side script to create your dynamic HTML. | |
Re: [url]http://php.net/manual/en/function.mail.php[/url] See example #4 | |
Re: Create an account and get the documentation. | |
Re: For GUI perhaps Telerik, don't know anything for the math part. | |
Re: Give credit/attribution means you have to state who's picture it is clearly. Royalty free means you do not have to pay for them. | |
Re: 1. Use code tags. 2. What is not working? Explain what happens? 3. Running on local or remote server? 4. Running on *nix or windows? | |
Re: How about a cloud storage, like Amazon S3, or Windows Azure? | |
Re: Why can't you install it? Do you get errors? Clarify. | |
Re: You can try to achieve this, but there are so many ways around this, that it is impossible to solve. | |
Re: You can only send email from your local system if you have a mail server installed. WAMPServer does not include it. If you do not have one, I suggest using a tool like PHPMailer, so you can use an external account for sending (e.g. gmail). Creating a web server is … | |
Re: What do you mean by required? You can check your input fields with Javascript and/or PHP and act accordingly. | |
Re: See the [URL="http://php.net/readfile"]example in the manual[/URL]. | |
Re: Sounds like an error in your query. We can probably help you if you post some code. (remember to use code tags.) | |
Re: You have to provide ?url= in the address bar. If that is missing, you get the index error. You can change it to this: [CODE] $url = isset($_GET['url']) ? $_GET['url'] : '<no url set>'; echo $url; [/CODE] | |
Re: You can fix it by giving those variables a default value at the top of your script. (Remember to use CODE TAGS) | |
Re: The user you specified appears not to have administrative rights. | |
Re: If your current page has the IsOpenPage attribute set to 1, then this XSLT should work just fine. | |
Re: If that is your file, then close the assembly and trustInfo tag correctly. Other than that, no idea. | |
Re: [CODE] <?php $url='success.xml'; $name = 'pritaeas'; $age = '38'; $doc = new DOMDocument(); $root=$doc->createElement("order"); $doc->appendChild($root); $textareaNode = $doc->createElement("name"); $textNode = $doc->createTextNode($name); $textareaNode->appendChild($textNode); $root->appendChild($textareaNode); // use $root, not $doc $textareaNode = $doc->createElement("age"); $textNode = $doc->createTextNode($age); $textareaNode->appendChild($textNode); $root->appendChild($textareaNode); // use $root, not $doc echo $doc->save($url); ?> [/CODE] | |
Re: If your file is valid XML then you could use DOMDocument and [URL="http://php.net/manual/en/domxpath.query.php"]DOMXPath[/URL] to read your values. | |
Re: If I was using this on my blog, I would choose to do this server-side. All my pages would be cached, so generating the files would only be done once every N days. The pages would look good, even if Js is disabled. | |
Re: Later versions of Windows automatically recognize the default zip format as a compressed folder. So, zip it. | |
Re: When you switch from page 1 to page 2, then your $_POST variables are gone. If you need them on all pages, I suggest you store them in $_SESSION variables. | |
Re: How do you empty the table, with a tool, or with a query? Your tool should have an option to do that, for the query: [CODE] ALTER TABLE `table` AUTO_INCREMENT = 1; [/CODE] | |
Re: On line 12 there is no variable $row yet, so $id is undefined. | |
Re: The posted msg may not exist. You can use isset to check if it does. If you change line 13 to the following: [CODE] $message = isset($_POST['msg']) ? $_POST['msg'] : ''; [/CODE] It will use the posted variable if it exists, or an empty string if it does not. | |
Re: You can use an ODBC connection. Then use a DELETE query to remove those records you want deleted. | |
Re: There is an error in your query, use: [CODE] $rsbooks = mysql_query( $booksSQL ) or die ( mysql_error() ); [/CODE] and show what error message you get. | |
Re: Look at the generated HTML to see if your ID's are correct. Can we see your example online somewhere ? | |
Re: Can you give an example of what you want to achieve? | |
Re: So what is the question? You have the code to save the XML. | |
Re: [url]http://stackoverflow.com/questions/486757/how-to-generate-xml-file-dynamically-using-php[/url] | |
Re: If you have a script to generate the pages, it should be easy to change it a little, so it outputs every report to a html file. Then you can just select them all and print them at once. | |
Re: If you use graph components, then you will have to format your data the way the component expects it. Usually, one on one usage of your data is not possible, unless you are using some generic method. If you explain what your data looks like, and what component you are … | |
| |
Re: Why not make two samples, make screenshots, and show it. Very hard to comment on colours if you can't see how they are used. | |
Re: [url]http://www.imdbapi.com/[/url] | |
Re: If you change it, you will have to extend the "inbetween" code. Now it aliases between the two colours (line and fill). If you want add a third colour, you'll have to adapt the code depending on which side/colour is closest. I'll have a go at it later, but I … | |
Re: It is probably just a logic error in your code. Perhaps if you show some code, we can provide a fix (use code tags, and indicate where the error is). |
The End.