Search found 99 matches
- Thu Nov 17, 2005 9:52 pm
- Forum: PHP - Code
- Topic: two table update
- Replies: 4
- Views: 332
two table update
I want to have a IF after my update command that looks like this: if($cortval1>0,$cortval2>0,$cortval3>0){ $tovalue='$tovalue+$cortval1+$cortval2+$cortval3'; } elseif($cortval1>0,$cortval2>0){ $tovalue='$tovalue+$cortval1+$cortval2'; } elseif($cortval1>0){ $tovalue='$tovalue+$cortval1'; } But $toval...
- Thu Nov 17, 2005 2:38 am
- Forum: PHP - Code
- Topic: error in my IF
- Replies: 2
- Views: 299
error in my IF
my code is supposed to unly change a field if there is a value in it. i dont know what the error is ... i get the parse: T_CONSTANT_ENCAPSED_STRING for the line: $sql = "WHERE eqdes ='" .$_POST['eqdes']."'"; $params = array(); if ($_POST['groupp'] != '') { $params['groupp'] = $_P...
- Sun Nov 13, 2005 8:54 pm
- Forum: PHP - Code
- Topic: constantly updating field in dataset !?!
- Replies: 3
- Views: 586
- Sun Nov 13, 2005 7:38 pm
- Forum: PHP - Code
- Topic: constantly updating field in dataset !?!
- Replies: 3
- Views: 586
constantly updating field in dataset !?!
Hey my problem is, i need to have one field in my database that is constantly updating. This field has to be a sum from several fields in the same table. I dont know if it ispossible, to have a field that includes an insert command and is constantly running this command. If that is the way to solve ...
- Fri Nov 11, 2005 2:04 am
- Forum: PHP - Code
- Topic: array echo
- Replies: 16
- Views: 1123
- Thu Nov 10, 2005 9:32 pm
- Forum: PHP - Code
- Topic: array echo
- Replies: 16
- Views: 1123
hi but this just works if there are just some words and hml tags in between the array output. because i tried to enter a hole html page (with many quotes and dots andsoon) and its not showing anything but parse errors. the thing is i have to make a scipt that automaticly prints out a order confirmat...
- Thu Nov 10, 2005 8:20 pm
- Forum: PHP - Code
- Topic: array echo
- Replies: 16
- Views: 1123
- Thu Nov 10, 2005 7:01 pm
- Forum: PHP - Code
- Topic: array echo
- Replies: 16
- Views: 1123
Okey nice nor i have the array printout. So - my next question now i would like to know how i can print the array in different parts of a html document. I can write like this: $zeile['customernr'].' xyzxyzxyz blah blah </br> '.$zeile['hull'].' - and its still working, but as soon as I do it like thi...
- Thu Nov 10, 2005 3:06 am
- Forum: PHP - Code
- Topic: array echo
- Replies: 16
- Views: 1123
- Thu Nov 10, 2005 2:02 am
- Forum: PHP - Code
- Topic: array echo
- Replies: 16
- Views: 1123
- Thu Nov 10, 2005 1:34 am
- Forum: PHP - Code
- Topic: array echo
- Replies: 16
- Views: 1123
array echo
i made this script that has to print out an array i know the SELECT looks strage .. but i tried it in phpmyadmin and its working. so insted of the array i get this! Parse error: parse error, unexpected $ in C:\Server\xampp\htdocs\inword.php on line 15 <?php $db = @mysql_connect('localhost','root',''...
- Tue Nov 08, 2005 7:41 pm
- Forum: PHP - Code
- Topic: change it!!?!
- Replies: 12
- Views: 390
- Tue Nov 08, 2005 12:03 am
- Forum: PHP - Code
- Topic: change it!!?!
- Replies: 12
- Views: 390
- Mon Nov 07, 2005 11:12 pm
- Forum: PHP - Code
- Topic: change it!!?!
- Replies: 12
- Views: 390
- Mon Nov 07, 2005 9:01 pm
- Forum: PHP - Code
- Topic: change it!!?!
- Replies: 12
- Views: 390