Questions tagged as 'php'

1
answer

error ajax function

I have this code in a php file: <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> <?php //Tab...
asked by 16.11.2017 / 17:18
2
answers

Datepicker Dates - Do not open Calendar

I am making an online booking website, and I would like to put on a div the number of nights that the guest will stay at my hotel. My question is this: If I select an entry date (check_in), which automatically checks out on check out date, I...
asked by 14.11.2017 / 22:15
4
answers

My Update does not work

I'm trying this: <?php session_start(); require 'conexion.php'; $nombre = $_POST['nombre']; $emai = $_POST['emai']; $pass = $_POST['pass']; $tel = $_POST['tel']; $dir = $_POST['dir']; $id = $...
asked by 11.11.2017 / 13:36
2
answers

Notice: Undefined offset: 0 in C: \ xampp \ htdocs \ www \ SERVICESUNARP \ index.php on line 57

I have this arrangement that comes as a response from a webservice var_dump=$miarreglo; result: array(1) { ["respuestaTitularidad"]=> array(4) { [0]=> array(10) { ["registro"]=> string(30) "REGISTRO DE PROPIEDAD INMUEB...
asked by 15.11.2017 / 21:48
1
answer

How to use data from a Codeigniter session

Hello, I have the following code where I log in and I save the data in Array . I want to know what is the way to get data in a view. function check_database($pwd){ $username = $this->input->post('username'); $result = $this...
asked by 05.06.2018 / 21:02
2
answers

PHP How to count the number of Arrays?

I have something similar to this Array( [0] => Array ( [user] => Name 1 [group] => 1 ) [1] => Array ( [user] => Name 2...
asked by 20.06.2018 / 15:19
4
answers

Validate existing user

When I prepare this query, I want it to validate if the user exists or not, and for that I use "mysqli_num_rows ()". The problem is that if I do it without preparing the query, putting the query to hair (it is commented in the code), it works. B...
asked by 30.11.2016 / 21:15
0
answers

What capacity should I acquire hosting to store a simple web page? [closed]

The page only allows viewing content and is made with php, css, javascript, html5 and bootstrap, I want to buy domain and host it in a hosting but I have not yet decided what storage capacity is best for a hosting hosting this type Web pages. 50...
asked by 02.12.2016 / 11:07
1
answer

Return an array of Objects with PHP

I have the following code in PHP: $output = ''; $output .= 'values: [{ '; $output .= 'arg: "N", '; $output .= 'val1: '.round($Val1N / $rowCount,2).', '; $output .= 'val2: '.round($Val2N / $rowCount,2).', '; $output .= 'val3: '.round($Val3N...
asked by 27.04.2018 / 12:22
1
answer

Center carousel of bootstrap images

I'm doing a bootstrap carousel but when defining: <div class="col-sm-12"> With the 12 if it appears centered on the screen, but if I want to make it smaller for example: <div class="col-sm-8"> With the 8 comes more stuck on...
asked by 26.04.2018 / 14:54