Questions tagged as 'php'

3
answers

updating of records in the PHP database [closed]

this part of the code to update records but I get this error:    Fatal error: Uncaught Error: Call to undefined function   mysql_fetch_array () in   C: \ xampp \ htdocs \ Handywoman \Truji \ ModifyProcess.php: 17   Stack trace: # 0 {main} thr...
asked by 15.03.2018 / 20:09
1
answer

show field of a php query with PDO

I am trying to print a user that is registered in my database as a test to implement it in some data later, I have a database with a user table where after filling out a form (user and password) they are sent to the same page php_self for wh...
asked by 07.11.2016 / 03:51
2
answers

PHPExcel error with Codeigniter

I am using PHPExcel with Codeigniter in a fairly simple way: $this->load->library('PHPExcel/Classes/PHPExcel'); $objPHPExcel = new PHPExcel(); $objPHPExcel->getProperties()->setTitle("Gastos")->setDescriptio...
asked by 04.11.2016 / 20:39
2
answers

Error undefined index php

I am making a page for a school project and I try to show some communications. This is the code where I request that releases I want to show depending on who is logged in. <?php if (isset($_SESSION['username']) && $_SESSION['ro...
asked by 08.09.2018 / 23:42
1
answer

How to execute a datepicker in an input I got with ajax?

I have a web page where in some parts I load content with ajax , in one of these parts, I load a form in which to have the focus a input , a datepicker opens. AND The problem is that when you bring it with ajax this...
asked by 12.01.2018 / 18:24
1
answer

How to save 0 and 1 with a checkbox?

I have a field called state and it is with a boolean attribute, I want to save it in the database when the input is in the checked state that stores the value 1 and the other one that stores 0, do you have any doubt about how to do it, Do you ha...
asked by 05.01.2018 / 14:03
1
answer

Consult select with eloquent in Laravel

I'm starting with Laravel and I have two simple entities that are users and notas , which are related in the following way: Users public function notes() { return $this->hasMany('App\Note'); } Notes public functio...
asked by 16.01.2018 / 13:51
1
answer

My user never logs in php

Hi, I'm trying to fix my login because even though I log in, it always shows me the same errors:    Notice: Trying to get property of non-object in   C: \ xampp \ htdocs \ login.php on line 20 And it also gives me invalid:    Password...
asked by 18.01.2018 / 18:22
2
answers

how to load several pages on the same page

I made a menu and the idea is that when you click on any of the options in my menu I do not recharge another page, but in the same page where the menu loads the page that corresponds to the option that was given click, I do not know how to do it...
asked by 12.01.2018 / 03:31
2
answers

Compare a text with a multidimensional array with regular expressions

I have sincerely tried with in_array , array_search and I could not do it. I have, for example, the following Array: $arg = array( "vimeo"=>array( "link" => '/https?:\/\/[w\.]*vimeo\.[^\/]*\/([^?]*)/is' ),...
asked by 15.01.2018 / 20:13