Posts by Eduardo Paludo • 733 points
35 posts
-
0
votes1
answer242
viewsQ: How to consume data from the Restful API?
I watched some video lessons about Restful and did one in Laravel 5.4. Now I would like to use a template I have done in HTML5 + Bootstrap 3 to consume this data, where do I start? What do I need to…
-
3
votes1
answer282
viewsQ: Migrations Laravel 5.4
I’m having trouble trying to run my Migrations, when I run: php Artisan migrate:refresh --Seed Error occurs below: [Illuminate\Database\QueryException] SQLSTATE[23000]: Integrity constraint…
-
1
votes2
answers676
viewsQ: Seeder Laravel with 2 relationships
I need a help, I want to create, for each Category, one Local and for each Local, one City, but when running the Eds, the error occurs below: Call to Undefined method Illuminate Database Query…
laravelasked Eduardo Paludo 733 -
0
votes2
answers481
viewsQ: Xmlhttprequest (Ionic + Laravel) error
Good morning! I am developing a hybrid application using Ionic, when I try to send a post to my server (Windows) error occurs below: Xmlhttprequest cannot load…
-
0
votes2
answers261
viewsQ: PHP multidimensional array union
I have the following array: Array ( [0] => Array ( [chamado_codigo] => 5 [representante_id] => 1 [data] => 2015-10-08 [razaoSocial] => mineoro [cliente_cidade] => chapeco…
phpasked Eduardo Paludo 733 -
1
votes1
answer323
viewsQ: Compare codeigniter array fields
Good night! I am exporting reports, in my form are sent via $_POST the fields that the user wants to export, I receive and assign to a variable all fields. I need to compare these fields with the…
-
1
votes1
answer1192
viewsQ: Popular second select after selecting the first select
good night! I want to popular the second select with the data depending on the first select, I have the following code View $(document).ready(function(){ $("#relatorio").change(function(){ $.ajax({…
-
4
votes2
answers707
viewsQ: Force fields from selected radio
How do I make for the jquery validate validate only the selected radio input fields? Example: I have 2 input radio (natural person and legal person) I want to validate only the selected radio…
-
1
votes1
answer1094
viewsQ: Capture data from email
Good night. I need some help, I’ll try to be as clear as possible. I am developing an application of calls, I want to let the staff open called by email, as I can capture this data from the body of…
-
8
votes3
answers4527
viewsQ: Remove currency formatting and take only the PHP number
i write in the database the values of the products in this way: For example: R$ 5.000,00 How do I do in PHP to make this number stay 5000? That is to say "shape"? Do you have a function that fits…
-
2
votes1
answer316
viewsQ: Change javascript array keys
my function Avascript send my data by Hidden input to PHP this way: $('<input/>').attr("type", "hidden").attr("name", "produto"+ contador + "[]").val(formData).appendTo(row);…
-
2
votes1
answer35
viewsQ: Serialize PHP data
how can I serialize the array below to save in BD? I tried to serialize but it stayed that way: a:2:{s:8:"produto1";a:2:{i:0;s:12:"Novo produto";i:1;s:1:"2";}s:8:"produto2";a:2:{i:0;s:12:"Bolo…
phpasked Eduardo Paludo 733 -
2
votes1
answer1990
viewsQ: Input Hidden + select
Folks I have a foreach that will populate the select as below: <select id="status" name="status[]" class="order-type"> <?php foreach ($produtos as $produto) : ?> <option…
phpasked Eduardo Paludo 733 -
2
votes2
answers57
viewsQ: Wrong loop Avascript
I have the following code: var contador = 1; $('.preview-add-button').click(function(){ var form_data = {}; //form_data["concept"] = $('.payment-form input[name="concept"]').val();…
javascriptasked Eduardo Paludo 733 -
6
votes3
answers652
viewsQ: JSON for PHP via AJAX
I really need some help.. I have a select with the products: <!-- panel preview --> <div class="col-sm-5"> <h4>Adicionar Produtos:</h4> <div class="panel…
-
2
votes1
answer2778
viewsQ: CSS Blade Laravel
I’m starting now with Laravel 5.1, I was left with a question regarding Lade. For example, I want to pass several CSS or JS files from the page in question using Blade notation. My main file looks…
-
0
votes1
answer311
viewsQ: Javascript data array for PHP
Good night, it’s easy for many, but I’m not getting it right. I have an order page to which I have a field with the products and the amount of each, when clicking add it shows in a div a "preview"…
-
0
votes1
answer118
viewsQ: Redirect site with . htaccess
Good Afternoon! I want to make a redirect on my website and am not finding the solution. I want when the guy accesses by ip for example: https://1.2.3.4 he directs to https://site name It is…
-
0
votes0
answers297
viewsQ: Sending of bulk emails
I need to send bulk emails with PHP, as I can do this without having to wait for PHP to finish sending the emails and then reload the page? For example, I have to send 100 emails, but I want to…
-
3
votes2
answers674
viewsQ: Select and dynamic div
I wanted to do a sequence of select dynamics, for example: 1º - Seleciona a Categoria (Veiculos); 2º - Seleciona a SubCategoria (Carros); 3º - Seleciona a Marca (do carro); 4º - Seleciona o Modelo…
-
0
votes6
answers1754
viewsQ: Hide dives after selecting another category
Select code <select name="category" class="form-control" id="category"> <option value="">Escolha uma categoria</option> <optgroup label="Vehicle"> <option…
-
4
votes2
answers117
viewsQ: Save Features in BD
I’m starting to work with PHP, MYSQL now and I’ve come up with a question. I am developing a classified site, the same will have categories of vehicles, real estate, electronics, etc... My question…
-
1
votes1
answer51
viewsQ: Several cities in one project
Good Afternoon! I wanted some tips. I am developing a project of a classified site, I want to use it with several cities here in the region, as I can do so that on the same site the user select his…
-
1
votes2
answers480
viewsQ: Load checkbox from select
Good morning! I have the following select: <select name="category" class="form-control" id="categorias"> <option value="">Escolha uma categoria</option> <optgroup…
-
3
votes2
answers863
viewsQ: Div to organize checkbox
I have the following div: <div class="col-sm-6"> <input type="checkbox"> Touch Screen <input type="checkbox"> Wi-fi <input type="checkbox"> Bluetooth <input…
-
3
votes1
answer289
viewsQ: Organization of PHP files
I have the following folder structure. classificados index.php login.php -->config -->conecta.php -->funcoes -->banco-usuario.php -->headers -->cabecalho.php -->menu.php…
phpasked Eduardo Paludo 733 -
1
votes2
answers1599
viewsQ: Update Mysql data with Ajax
I have an ads table with a field called highlight, by default its value is 0. I list all the ads on a table in HTML. I wanted to make when the user click on "Enable highlight" it send an update in…
-
1
votes1
answer2394
viewsQ: Carousel Bootstrap + php
I have a Carousel in bootstrap, I wanted to do it with 3 images, as an example http://bootsnipp.com/snippets/featured/media-slider-carousel-bs3 But wanted to make it dynamic, follows below my code:…
-
0
votes1
answer1214
viewsQ: Bootstrap blocks
Goodnight! I wanted some tips, help, anyway, I wanted to create some style blocks that image below using bootstrap, but I have no idea where to start, someone can give me a light? Thank you!…
-
3
votes2
answers1046
viewsQ: Use LIMIT together with LEFT JOIN in more than one table
I have a table anuncios, in which I wish to list the anuncios of the user together with the imagens, I’m trying with the query below, but if you have 5 imagens registered in the anuncio, in the…
-
2
votes1
answer258
viewsQ: Retrieve an Insert ID from a table and use it to create a relationship with another table
Personal a great doubt, I am developing a classified site, I am recording the images and the ad at the same time, only the insertion queries are different, because the table of ads and images are…
-
0
votes1
answer519
viewsQ: 2 arrays in foreach
there is how to put 2 arrays in the same foreach? Let me explain what I need, I’m using the Wideimage class to resize the images, I need to grab the image extension to save it later. My problem is…
phpasked Eduardo Paludo 733 -
6
votes2
answers278
viewsQ: Image Cutting
I wanted to upload images with Dynamic Crop. I’ve looked at tutorials and etc, and I can’t do. For example, I wanted to load an image by input and then open a modal with Crop Dynamic, like Facebook,…
-
2
votes1
answer126
viewsQ: List ID with name in the same table
I need some help. I have a table of categories that has the fields: id; name; description; id_categoria_pai; id_user; I want to get the category name when the parent id is equal to the category id.…
-
1
votes1
answer185
viewsQ: Should I create a table by category, or a single table?
I want to set up a classified site and I have a question: how can I create the categories in the comic book? Create an ad table for each category? Or create a table Categorias with them inside?…