Posts by Cayo Henrique Rodrigues • 144 points
7 posts
-
1
votes1
answer180
viewsA: Relationship of tables (Laravel API)
Hello, When you return an object with the Loginusers records, if your relationship is well done, you can use something like this: $loginusers[0]->behavior And I would specifically use Eloquent’s…
-
0
votes1
answer53
viewsA: Warn when the file is changed using PHP or Javascript
What Voce can do is use a Linux Cron and arrow it to run every x minutes or seconds and then Voce is checking the file. You can do this manually or use some component like this:…
-
0
votes1
answer21
viewsA: How to pull the Option value from the select HTML property that is saved in MYSQL
You would need to add some conditions in your select for this. Example: <option <?php if($sda['aspect'] == '16:9') echo 'selected' ?> value="16:9">16:9</option>…
-
3
votes1
answer349
viewsA: PHP - Receiving the ID of a value via select option $_POST
In that part: <option value="<?=$tipo['nomeConteudo']?>"> <?=$tipo['nomeConteudo']; ?> </option> Why are you passing 'dateName' in value? Why don’t you pass the ID?…
-
2
votes2
answers518
viewsA: Fill in second input when typing in first
You can do this with jquery using something like this: $(document).on('keyup', '#razao-social', function() { $('#nome-fantasia').val($(this).val()); });
inputanswered Cayo Henrique Rodrigues 144 -
1
votes3
answers1096
viewsA: How to find out the PHP version of a standard project?
To visualize quickly, you can edit your index.php file inside the public folder by starting this: <?php phpinfo(); It’s simple but solved your problem!…
-
-1
votes1
answer59
viewsA: Aligns the posting system
Hello, in your foreach, Voce can take the index and divide it by 3, if the division has 0 rest, you add a Thus <?php foreach ($posts as $index => $post): if($index % 3 == 0) { ?> <br…