How do I get two tables of their values to add up into one table record, e.g.
Item table:
ID - Autonumber
OrderID - Number
Price - Currency
Details - Text
Order table:
ID - Autonumber
CustomerID - Number
Date - Date
TotalPrice - Currency
The TotalPrice should add up all the items and the total price of adding them up into the ...
Hello,
I have this code which will include "template.php" file from inside each of these folders: "content/templates/id1", "content/templates/id2", "content/templates/id3" etc. etc.
$page_file = basename(__FILE__, ".php");
require("content/" . $page_file . "/content.php");
$iterator = new RecursiveIteratorIterator(
new ...
On the iPhone, when you add a sub layer to a visible view's layer, using either -addSublayer: or -removeFromSuperlayer, shouldn't that sub layer appear or disappear in an animated manner (ie. fade in or fade out gradually)? My program animates using layers (not views). When I change a property of a layer like position or image content, t...
Basically I can't get it right.
I need something like this:
if($p == 1)
{
$start = 0;
$limit = 16;
}
The numbers must add on depending on the value of the $p, e.g. if $p is 5 then the values of $start and $limit would be:
if($p == 5)
{
$start = 64;
$limit = 80;
}
The math is to add 16, depending on the value of $p....
i'd like to know how i can make my custom function in tinymce. assumed that my function named as A.
The function is inserting form html tag such as ", etc". From this function (button) people who dont know even any tag of HTML, can insert the tag without editing the text mannualy.
i want A appear as a button in tinymce toolbar.My functi...
In the following C++ code, 32767 + 1 = -32768.
#include <iostream>
int main(){
short var = 32767;
var++;
std::cout << var;
std::cin.get();
}
Is there any way to just leave "var" as 32767, without errors?
...
Hi...
I'm trying to add the input values of several text boxes using javascript and display the total number below. How can I add and keep the sum for displaying after the computation. I'm not an expert in javascript.
Thanks...
...
Hello.
I'm a student in an introductory C++ course. For one of our past assignments we have had to create a simple program to add fractions. Each new lab is just an application of new skills learned to making the same program. Now I need to make one using objects from a class definition.
After tooling with a multiplying example my pro...
Hello,
i have problem with simpleXml and adding new items. This is my xml:
<?xml version="1.0" encoding="utf-8"?>
<root>
<items>
<item>abc</item>
<item>def</item>
<item>ghi</item>
</items>
</root>
Im using this php code:
$xml = simplexml_load_file("myxml.xml");
$sxe = new SimpleXMLElement($xml->asXML());...
I need to add my picture as a popup to google maps specific address may be in latitude,longitude OR specific to my address in Google Maps. is it possible or any
google maps api json like parameter configuration. pls let me know.
...
I want to following xml file output:
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <T0020 xsi:schemaLocation="http://www.safersys.org/namespaces/T0020V1 T0020V1.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.safersys.org/namespaces/T0020V1">
- <INTERFACE>
<NAME>SAFER</NAME>
<VERSION>04.02</VERSION...
Hello!
im processing link click events with mootools.
in my html i have a links with the id of this pattern: toggle_NUMBER e.g. toggle_1
now i get the id with this peace of code
var id = $(this.get('id').replace(togglePrefix,emptyPrefix));
my problem starts now:
i remove the prefix this way
var togglePrefix = 'toggle_', boxP...
I am facing a problem due to that i'm newbie to grails
i'm doing a website for reading stories and my goal now is to do save the content of the story into several pages to get a list and then paginate it easily .. so i did the following.
in the domain i created two domains one called story and have this :
class Story {
String title
...
Hi all,
I wonder if anyone could help me.
I have a web page where there are some text boxes (dynamic amount, could be 3, could be 30) and each one a user can enter a number and I have a total count at the bottom.
At present I have this:
$('input.qty').change(function() {
// Get the current total value
var total = $('#total');
// Upda...
I am using a TMemo to hold received characters from a serial port for viewing. As they arrive I am doing:
Memo1.Text := Memo1.Text + sReceivedChars;
This works fine but I presume it is rather inefficient, having to get the existing text before concatenating my few characters and then writing it back. I would really like a 'SendChars()...
The folder resides within my solution physical location but I can not find a command to add existing folder to the project from right-clicking. All I can see is "Add existing files". Trying to create the folder is denied since it already exists!
I tried to move the folder out of the solution folder on the hard disk, and add it again. Th...
I have an odd scenario (see this answer for more details), where I need to add two bytes of data together. Obviously this is not normal adding. Here is the scenario:
I am trying to get a coordinate out of a control. When the control is less that 256 in width then the x coordinate takes one byte, otherwise it takes two bites.
So, I n...
Am attemtping to populate a dropdown menu with the results of my SQL query. The script functions, however I just am unsure of the syntax to add the results into the html dropdown menu. Currently it populates a table with the results. Here is my code:
<?php require_once('Connections/database.php'); ?>
<?php
$q=$_GET["q"];
mysql_select_d...
Hi guys,
How have I to add a product into Magento using a php function? I have used the API but it is very slow. I have to import about 100.000 records and check the stock everynight.
Regards
...
Hi guys,
I need to add about 100.000 records in my Magento Store. I have already the function that helps me to add a product but I need to improve it using the collections of products.
This is my custom function:
public function Products($data){
try{
foreach($data as $record){
$product = Mage::getSingleton('c...