Questions tagged as 'php'

1
answer

Save formatted text in MySQL DB

I am developing a news system and need to save formatted text, with line breaks, images between one paragraph and another and bold / italic etc. It's all working php posting, display and everything. Could someone show me how I can save that way?...
asked by 13.06.2014 / 15:37
1
answer

Error rendering with jQuery Ajax

Quick information on how this code should work: Ajax takes an html, compiles with Handlebars, the same ajax takes a json from an api, packages everything and renders an index with an append. var orderTemplate takes a template from index.hb...
asked by 19.05.2018 / 05:33
2
answers

Unserialize data in CodeIgniter?

Seeing that I have the following method: Controller public function get_objeto($permissao_id) { if ($permissao_id == 0) { $permissao_id = $permissao_id; $dados = $this->permissao->get($permissao_id...
asked by 29.03.2018 / 22:03
1
answer

How to report a variable, associated with a row in a table field, for a template

I am trying to build a list of links that point to a template, where one of the variables, with the contents of one of the fields in the table, must be dynamically informed in the template (being associated with a specific row in the table) p>...
asked by 17.09.2015 / 20:43
1
answer

Button to insert new inputs into the form

I have a site that records building releases. Here some buildings have more than one tower, and I would like for each tower, I had the possibility to insert 4 inputs (type, footage, bedrooms, vacancies) Something like this: <form> <...
asked by 07.05.2018 / 18:13
2
answers

How to perform a query of a query stored in a string through class DB?

I wanted to convert this query as I could use it in Lavarel DB \ Facades SELECT FIND_IN_SET(KillCount, (SELECT GROUP_CONCAT(KillCount ORDER BY KillCount DESC) FROM users)) AS Rank FROM users WHERE id = 1 It takes the position rank of the pl...
asked by 27.09.2017 / 15:44
1
answer

I have a validated form with JS and need to send via PHP to BD

I have a simple form, validated with javascript , and I need to send via POST to a PHP file that will insert via mysql database, however when I leave script JS in form it does not send to PHP , coul...
asked by 02.10.2017 / 21:07
1
answer

Values search with PHP - Is it possible?

Is it possible to access a .CSV file, capture a value and search it in another .CSV file ?! Example: Note: The images below are from .xlsb files, but for demonstration purposes only, I am using .csv files The code should in the case s...
asked by 26.09.2017 / 18:11
2
answers

How to add 3 columns of different tables

I am developing a financial system. Today we have the following situation: Banks (id, name, initial balance); Recipes (id, geraParcela, qtdeParcelas) Recipes_parcels (id, recipe_id, value, date_wind) Expenses (id, generatesParcela, qtd...
asked by 22.04.2014 / 23:29
1
answer

Update LONGBLOB field possible?

I have a script that uploads images to a table with LONGBLOB field, uploads any image, and displays it without any problems. My question is: even though I know we should not insert images in mysql , is there a way to UPDATE...
asked by 28.04.2014 / 23:30