Questions tagged as 'php'

1
answer

Create json array from php + mysql

I have the following code, but it does not show it to me as a json array, how can I modify it so that it is an array type array= [{"nombre":"jesus"}] etc etc. $result = mysqli_query($connect, "SELECT * FROM 'transacciones' WHERE 'Userc...
asked by 25.08.2017 / 00:27
1
answer

Post php and javascript

Good afternoon. The case is currently as follows. My javascript application with angular will receive a post from a php application, for this I am asked for a url. That url has a similar format: link , however, upon receiving the post, an er...
asked by 17.08.2017 / 18:03
2
answers

PHP block array

How can I make this foreach show me blocks of 4 units? <div class="item active"> @foreach($stores as $stores) <div class="item"> <img src="/img/company/{{$stores->image}}"> </div> @endfor...
asked by 17.08.2017 / 05:03
1
answer

modify value

greetings community, I would like to try to update the amount I have available with the new amount to enter, example if I have $ 5 left and would like to enter $ 10, it would be $ 15 now with the new available amount attached to my query and for...
asked by 15.08.2017 / 01:07
1
answer

Save data in an array using foreach loop

Again I come to ask for help, this time I have to save the values of a variable inside an array and then show them, this variable is within a foreach cycle, I leave the code: $strProyecto = $conex->getIndCol('id', sqlProyectos());//proy...
asked by 14.08.2017 / 20:56
1
answer

Repeat a loop

I need to repeat an action 9999999999999999 times in PHP. I made a for loop: for($i = 0; $i < 9999999999999999; $i++) But it gives me an error and it does not execute the loop. How can I solve it?     
asked by 15.08.2017 / 16:35
1
answer

insert values in a table with a select

How do I insert values in the database? This is a query, it relates several tables, but I need that data to be stored in the MySQL database This is the table I'm doing in PHP echo '<table id="TablaColor" border="1" width="100%">...
asked by 11.08.2017 / 19:43
1
answer

Error implementing "OR" in search of datatable

I'm doing a dating record system where I use datatables to show appointments that have a specific status. Everything went well until I filtered the datatable to show me only citations that are of one type or another (if they are appointments wit...
asked by 12.08.2017 / 00:47
1
answer

Problem loading a string with a lot of information in javascript

I create a connection to a mysql database in php and load a variable with information from a field in a bd table, my problem is that when loading a lot of information I can not work with this variable using javascript include("Conexion.php");...
asked by 12.08.2017 / 19:06
1
answer

How to save the data of a Multiple SELECT in a single field of my Database?

I have a multiple select and when I save the data in my database it does it separately, and I want it to save the selected data in a single field. How can I do it?    <select multiple="multiple" size="7" name="dias[]"> <option v...
asked by 08.08.2017 / 22:56