Jump to content

messer

Members
  • Posts

    27
  • Joined

  • Last visited

    Never

About messer

  • Birthday 12/03/1986

Profile Information

  • Gender
    Male

messer's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. oh.... sh...t sorry people... i've done a mistake.... function select();
  2. function select() { include('dbinfo.php'); $Link = mysql_connect ("localhost", $username, $password) or die ('Unlucky'); mysql_select_db($database) or die( "Unable to select database"); $query = mysql_query("SELECT bon.ID,bon.ArtID as Article,bon.total,bon.bonID,bon.klientID,article.ArtID, article.Artdescription, article.ArtNumer FROM bestelboninf, article WHERE ( bon.bonID='".$bonid."' AND bon.klientID='".$klient."' AND bon.ArtID= article.ArtID ) "); $select = '<select name="article[]">'; while ($row = mysql_fetch_array($query)) { $select.= '<option value="'.addentities($row['ArtID']).'">'; $select.= ''.addentities($row['ArtNumer']).' -:- '.addentities($row['Artdescription']).''; $select.= '</option>'; } $select.= '</select>'; return $select; mysql_close (); } Kan somebody help me???? Whats wrong in my code???? it doesn't work when i want to execute <? function bon(); ?>
  3. My question is how to sort,to show only the results of the SUM of those two coloumn 3 and 4 ?
  4. I'm new in SQL,and i don't know how to make to work this query? Any advice would help me... Thanks SELECT table1 . coloum1 , table1 . coloum2 , table1 . coloum3 , table1 . coloum4 , SUM(table1 . coloum3) , SUM(table1 . coloum4) FROM `table1` WHERE ( SUM(table1 . coloum3) >= SUM(table1 . coloum4) ) GROUP BY table1 . coloum1
  5. Sorry for my question: how to make to show correct the result of an mathematical operation?? for example: $total=450.00; $incl_total=($total*2)/3; echo' .$incl_total. ' ; in this example the result will be $incl_total= 300; but I need $incl_total=300.00 How to do so???
  6. Thx, i replaced it and it works, but i'm asking myself, before my function worked fine,no problem... i don't get why today it hapend so??? ???
  7. I've got this error : Warning: htmlentities() expects parameter 1 to be string, array given in /xxx/yyy/domains/wwwcom.com/public_html/some/page.php on line 11 And this is my function: function addentities($data){ if(trim($data) != ''){ $data = htmlentities($data, ENT_QUOTES); <------- line 11---- return str_replace('\\', '&#92;', $data); } else return $data; } Anyone some ideeas???
  8. Maybe there are another ways to do it in php??? anyone,could give me an idea please???
  9. :( :'( :'(:'( I don't know java and ajax the same
  10. .... <tr> <td>$valueX[]</td> <td>$valueY[]</td> <td>$valueZ[]</td> <td>$valueW[]</td> </tr> <tr> <td>$valueX[]</td> <td>$valueY[]</td> <td>$valueZ[]</td> <td>$valueW[]</td> </tr> <tr> <td>$valueX[]</td> <td>$valueY[]</td> <td>$valueZ[]</td> <td>$valueW[]</td> </tr> .... And I want to arrange in such way : for example all values from the 3rd row then values from then 1st row the value from then 2nd row, and each time it can be different, so , to arrange them also dynamicaly, but values to corespond from their original row... Now i hope that you understand me....
  11. Here is my dynamic row: .... <tr> <td>$valueX[]</td> <td>$valueY[]</td> <td>$valueZ[]</td> <td>$valueW[]</td> </tr> <tr> <td>$valueX[]</td> <td>$valueY[]</td> <td>$valueZ[]</td> <td>$valueW[]</td> </tr> <tr> <td>$valueX[]</td> <td>$valueY[]</td> <td>$valueZ[]</td> <td>$valueW[]</td> </tr> .... And after i press NEXT these arrays are goind to under case'rapport':
  12. oh, sorry , just one minute...
  13. Sorry, i don't understand you , could you explain please?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.