Questions tagged as 'mysqli'

1
answer

am I trying to send the id of a tag to ajax but when I pick it up in php it returns to me as null which should be the correct way?

<script type="text/javascript"> $(document).ready(function(){ $(".vista_rapida").click(function() { var vista_rapidas=$(this).attr("id"); $.ajax({ url:'aindex.php', method:'post', data:{"...
asked by 06.11.2017 / 21:26
1
answer

Duda Seeker ID client php mysqli

I edit the post with the solution: SUMMARY: What we want is that when searching for the client id, show me the complete record of the client. (Vary the table to taste or need) Code resolution to the problem: <form method="POST" act...
asked by 06.11.2017 / 12:33
1
answer

does not the alert of the following variables show me only shows the first selected data?

<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> </head> <body> <?php $user="localhost"; $username="root"; $pass=""; $db="surti_office"; $conexion=m...
asked by 31.10.2017 / 16:24
0
answers

Object of class ClassSample could not be converted to string

Hello friends, well, I'm telling you I'm new programming in php, at this moment I'm doing a crud and when I do a record, it throws me this error Object of class ClassMuestra could not be converted to string and check the query and I can not find...
asked by 20.11.2017 / 16:40
2
answers

Problem in mysql database when passing data with PHP

<?php include 'conexion_formulario.php'; $incidencia1 = $_POST['incidencia1']; $incidencia2 = $_POST['incidencia2']; if(isset($_POST['incidencia1']) || empty($_POST['incidencia1']) && isset($_POST['incidencia2']) || emp...
asked by 22.10.2017 / 21:08
2
answers

Display Value of BD in SELECT in PHP

Good morning, in the code that I show next I want to show the value of a field saved in a BD Mysql in a SELECT list in php Code: <form name="fe" action="" method="post"> <table border="2"> <tbody><tr...
asked by 01.11.2017 / 15:25
0
answers

how to nest 2 records of the same table

Hi, I have a query, I have a table of courses where cod_curso, cod_ramo, section and name. what I have is a search engine (autocomplete) of the name of the course that is good for me, but what I need at the time of finding the course I enable al...
asked by 23.10.2017 / 22:01
1
answer

Problems in searching some words in database

I have a course table that has 3067 records, create a search engine to filter by courses my problem is based when I put the word "anat" I get all the options (anatomy, human anatomy, clinical anatomy, ect), but when I place calculation, algebra...
asked by 17.10.2017 / 23:04
1
answer

Error when modifying a PHP and MYSQLI image

I have this code but I'm getting this error ... <?php session_start(); $conexion = mysqli_connect("localhost","root","", "trigoyponque2017"); /* $ruta = $_FILES['foto1']['tmp_name']; $destino = "../productos/".$_FILES['foto1']['na...
asked by 04.10.2017 / 22:07
1
answer

Replace an old image with php and MySqli

Good evening! I know how to add an image and save it in my Mysql DB, but at the time of doing the UPDATE the image does not replace it. <?php session_start(); $conexion = mysqli_connect("localhost", "root", "", "trigoyponque2017"); $i...
asked by 25.10.2017 / 06:35