PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
elseif($cortval1>0){
$sql = "UPDATE sam_artikel SET $tovalue=$tovalue+$conrtval1";
mysql_query($sql);
}
What output do you expect "$tovalue=$tovalue+$conrtval1" to produce? Are $tovalue and $conrtval1 integers that you want to add? Or are they just chunks of data that you want to place an addition sign between in your sql query?
Both are integers.
So i just want to sum them together.
Yeah the if command was <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> ...-.... excuse me
BUt do you understand what i want to do.
If cortval3 has a value, then i want to add cortval1-3 to toval .. and to val is in a different table.!!!