Jump to content

gecekule

Members
  • Posts

    11
  • Joined

  • Last visited

gecekule's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. No need to prolong this thread Instead of such a message Two words were enough code I'm a beginner If you do not want to help myself, you could write
  2. I'm beginner, I do not know how to do it Could you help?
  3. Hello again, The rule : The amount of products can be max 21(sample). This Javascript gives a warning about rule above for one value. I want that; The Javascript must give a warning for total choosing values. 1. value="5" 2. value="10" 3. value="8" =23 are great than 21. (It must give a warning) Thanks
  4. Hello, maximum the receiver does not work What could be the problem? Could you help me? Video: http://www.teklif.uzayforum.com/swf.html <script type="text/javascript"> function baslangic(status) { status=!status; textler=document.getElementsByName("secilen_receiver_sayisi[]"); for(x=0;x<textler.length;x++){ textler[x].disabled = status; } } function isaretle(){ marka=document.getElementsByName("secilenreceivermarka_id[]"); sayi=document.getElementsByName("secilen_receiver_sayisi[]"); for(x=0;x<marka.length;x++){ sayi[x].disabled=!marka[x].checked; } } function kontrol(){ marka=document.getElementsByName("secilenreceivermarka_id[]"); sayi=document.getElementsByName("secilen_receiver_sayisi[]"); for(x=0;x<marka.length;x++){ if(marka[x].checked==true&&(sayi[x].value><?=$maximum_receiver?>||sayi[x].value==""||sayi[x].value<1||sayi[x].value.search(/\d/g)<0)){ alert("Receiver seçme isteğe bağlıdır.\n\nEğer bir marka seçtiniz ise miktarıda seçmelisiniz ve toplam daire sayınız olan <?=$maximum_receiver?> adet geçmemeniz gerekiyor."); return false; } } return true; } </script> Thanks
  5. Parse error: syntax error, unexpected '.' in D:\www\8.php on line 77 I guess the problem here: .implode('), (', $_REQUEST
  6. Change yes, This code does not work for the new table. I wonder what this error code? $query = 'INSERT INTO table_name (`id`, `receiver_id`, `receiver_adet`) VALUES (5, (' .implode('), (', $_REQUEST['secilenreceivermarka_id']). .implode(')', '(', $_REQUEST['secilen_receiver_sayisi']) . '))'; $result = mysql_query($query) or die('Could not execute INSERT query'); Thanks
  7. Helo, Here is the error? $query = 'INSERT INTO table_name (`id`, `receiver_id`, `receiver_adet`) VALUES (5, (' .implode('), (', $_REQUEST['secilenreceivermarka_id']). .implode(')', '(', $_REQUEST['secilen_receiver_sayisi']) . '))'; $result = mysql_query($query) or die('Could not execute INSERT query'); Thanks
  8. OR How do I write to the database? Insert multi row? id table2_id amount 5 1 12 5 3 3 5 5 7 source: $id=5; name="produc_id[]" name="amount[]" implode(", ", $_REQUEST['produc_id'] // 2, 4, 6, 7 like implode(", ", $_REQUEST['amount'] // 5, 8, 12, 20 like
  9. Thank you for your answer Tables of have to be like in the picture Continues to Tables This picture is an example The first table resource based, I have to make query, but how?
  10. Hello, I'm sorry, my English is bad I'm beginner include "./includes/config.php"; sql connection to the existing The help of two-table query? Best Regards Thanks
×
×
  • 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.