Posts by Lucas Keller • 56 points
4 posts
-
0
votes2
answers70
viewsA: can use variable php within the functions
Most PHP variables have only local scope. If you want to use a variable defined outside a function, the easiest way is to pass it via parameter, as in the example below: $a = 'ola!'; function…
phpanswered Lucas Keller 56 -
0
votes2
answers193
viewsA: How to take the value of POST and save to the bank
You are setting an array at this point in the code: $parcelaplano[''] = trim($_POST['parcelaplano']); $porcentagem[] = trim($_POST['porcentagem']); Try to modify these two lines above, by these…
-
1
votes4
answers306
viewsA: How to link to table?
The link cannot be left out of Td. it has to be inside td. Involving only the text. echo "<td><a href='".$link."'>" . $row['id'] . "</a></td>";…
-
3
votes1
answer107
viewsA: Counties in codeigniter with DB data
Do not use constants for dynamic values. These discount rules should be set within a database table, just as you are doing now. Eventually even a screen for the user to set the discount values. The…