Posts by Maiky Jonathan • 56 points
3 posts
-
1
votes3
answers558
viewsA: Display only part of the text in an Html page
if(strlen($string) > 100){ $string = substr($string, 0, 100) . " <a href='#'>Leia Mais ...</a>"; echo $string; } else { echo $string; } Change the Variable String for your Variable.…
-
0
votes1
answer52
viewsA: Generate a new array dynamically with php
$array = []; for ($i=0; $i <= 20 ; $i++) { array_push($array,"var" . $i); } Just change the value 20 to the var number you need.
-
3
votes2
answers75
viewsA: I cannot insert the data into the sql table with a form
In select you are named 'pro', but sending by database is 'a problem'. Altere of: select name="prob" id="prob" --> $_POST["problema"] To: select name="problema" id="prob" -->…