8,966 Posted Topics

Member Avatar for jacob21

Your question should be split. The popup part is Javascript, the storing part requires a server side script.

Member Avatar for pritaeas
0
99
Member Avatar for aianne

Single quotes around your column names is wrong, replace them with backticks. Also remove the brackets, as that is used in MSSQL, not MySQL.

Member Avatar for rajeevphp2011
0
320
Member Avatar for dioz20

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 …

Member Avatar for dioz20
0
110
Member Avatar for adityamadhira
Member Avatar for Jack_1978
Member Avatar for Danny159

[CODE] $your_string = preg_replace('/\{\$\w+\}/', '', $your_string); [/CODE]

Member Avatar for pritaeas
0
105
Member Avatar for jonsman

If you mean just HTML, then no. You'll need a server side script to create your dynamic HTML.

Member Avatar for stultuske
0
96
Member Avatar for Albert Pinto
Member Avatar for Albert Pinto
0
196
Member Avatar for ganesh641
Member Avatar for getnit
Member Avatar for pritaeas
0
105
Member Avatar for torbatt

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.

Member Avatar for cpchc
0
276
Member Avatar for Gaurav Bindal

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?

Member Avatar for Biiim
0
247
Member Avatar for kevindougans
Member Avatar for sjparida
Member Avatar for newbie26

You can try to achieve this, but there are so many ways around this, that it is impossible to solve.

Member Avatar for Biiim
0
2K
Member Avatar for Gaurav Bindal

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 …

Member Avatar for pritaeas
0
43
Member Avatar for singularity~
Member Avatar for skilly
Member Avatar for Verean

What do you mean by required? You can check your input fields with Javascript and/or PHP and act accordingly.

Member Avatar for Verean
0
196
Member Avatar for adityamadhira
Member Avatar for adityamadhira
0
141
Member Avatar for mmnewbee

Sounds like an error in your query. We can probably help you if you post some code. (remember to use code tags.)

Member Avatar for mmnewbee
0
123
Member Avatar for moroccanplaya

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]

Member Avatar for moroccanplaya
0
262
Member Avatar for heshanm

You can fix it by giving those variables a default value at the top of your script. (Remember to use CODE TAGS)

Member Avatar for heshanm
0
114
Member Avatar for danielbala
Member Avatar for subrata_ushasi
Member Avatar for subrata_ushasi
0
1K
Member Avatar for jelly46

If your current page has the IsOpenPage attribute set to 1, then this XSLT should work just fine.

Member Avatar for jelly46
0
217
Member Avatar for DesignGhosts

If that is your file, then close the assembly and trustInfo tag correctly. Other than that, no idea.

Member Avatar for DesignGhosts
0
2K
Member Avatar for bavenbabu

[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]

Member Avatar for bavenbabu
0
173
Member Avatar for danielsikes

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.

Member Avatar for pritaeas
0
244
Member Avatar for mlhazan

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.

Member Avatar for pritaeas
0
124
Member Avatar for GordonUK

Later versions of Windows automatically recognize the default zip format as a compressed folder. So, zip it.

Member Avatar for pritaeas
0
139
Member Avatar for jdgieschen

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.

Member Avatar for jdgieschen
0
909
Member Avatar for manaila

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]

Member Avatar for hericles
0
156
Member Avatar for kischi
Member Avatar for kischi
0
123
Member Avatar for heshanm

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.

Member Avatar for heshanm
0
233
Member Avatar for mackyflores
Member Avatar for Cyre

You can use an ODBC connection. Then use a DELETE query to remove those records you want deleted.

Member Avatar for Cyre
0
97
Member Avatar for dtidmas1

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.

Member Avatar for dtidmas1
0
214
Member Avatar for rotemorb

Look at the generated HTML to see if your ID's are correct. Can we see your example online somewhere ?

Member Avatar for pritaeas
0
482
Member Avatar for Cyre
Member Avatar for bavenbabu
Member Avatar for pritaeas
0
54
Member Avatar for bavenbabu
Re: XML

[url]http://stackoverflow.com/questions/486757/how-to-generate-xml-file-dynamically-using-php[/url]

Member Avatar for bavenbabu
0
117
Member Avatar for showman13

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.

Member Avatar for showman13
0
162
Member Avatar for garden4ork

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 …

Member Avatar for pritaeas
0
269
Member Avatar for shandow
Member Avatar for shandow
0
99
Member Avatar for kaosjon

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.

Member Avatar for JorgeM
0
100
Member Avatar for Persi
Member Avatar for cr7489
Member Avatar for DelphiGuy

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 …

Member Avatar for DelphiGuy
0
226
Member Avatar for garden4ork

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).

Member Avatar for garden4ork
0
132

The End.