Tylko , że tych pól formularza ma być koniecznie 37.
I właśnie skrypt nie działa zaczynając od 32 pola
jak jest 31 to chodzi czyli zwraca komunikat
'Rekord został dodany poprawnie' , a jak juz mam 32 pola w skrypcie ustalone do przekazania bazie sql to zamiast tego komunikatu pojawia się białe pole nie wiem jakiś ogranicznik ? coś się nie wyrabia ?
<?php $1 = $_POST['1']; $2 = $_POST['2']; $3 = $_POST['3']; $4 = $_POST['4']; $5 = $_POST['5']; $6 = $_POST['6']; $7 = $_POST['7']; $8 = $_POST['8']; $9 = $_POST['9']; $10 = $_POST['10']; $11 = $_POST['11']; $12 = $_POST['12']; $13 = $_POST['13']; $14 = $_POST['14']; $15 = $_POST['15']; $16 = $_POST['16']; $17 = $_POST['17']; $18 = $_POST['18']; $19 = $_POST['19']; $20 = $_POST['20']; $21 = $_POST['21']; $22 = $_POST['22']; $23 = $_POST['23']; $24 = $_POST['24']; $25 = $_POST['25']; $26 = $_POST['26']; $27 = $_POST['27']; $28 = $_POST['28']; $29 = $_POST['29']; $30 = $_POST['30']; $31 = $_POST['31']; if($1 and $2 and $3 and $4 and $5 and $6 and $7 and $8 and $9 and $10 and $11 and $
12 and $13 and $14 and $15 and $16 and $17 and $18 and $19 and $20 and $21 and $2
2 and $23 and $24 and $25 and $26 and $27 and $28 and $29 and $30 and $31) { $query = "INSERT INTO formularz (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
22, 23, 24, 25, 26, 27, 28, 29, 30, 31) VALUES ('$1', '$2', '$3', '$4', '$5', '$6', '$7', '$8', '$9', '$10', '$11, '$12', '$13', '$14', '$15', '$16', '$17', '$18', '$19', '$20', '$21, '$22', '$j23', '$24', '$25', '$26', '$27', '$28', '$29', '$30', '$31')"; } ?>
Zamiast tych liczb Są Litery i Cyfry i czasem znak _
Przewiduje , że skrypt jest bardzo newbie , ale jak na razie lepszego mi się nie udało sklecić ..
Prosił bym o jak najszybszą odpowiedź ! na dziś to potrzebuje zrobić ;/