Questions tagged as 'mysqli'

1
answer

Change of profile picture of a user with php mysqli?

I need to know how to make a user by default contain a profile picture of an anonymous user, and when you change your profile picture you will see the one you placed and remove the one from the anonymous user. I'm using PHP, jQuery, AJAX I...
asked by 08.12.2018 / 22:11
1
answer

How to show all the contents of a database in HTML?

Good I need to know how I do that the url lodged in my Database can extract them with php and place them in the "src" of the images so that they always load. You will see I have the following problem, I am doing a social network as a degree proj...
asked by 07.12.2018 / 01:15
1
answer

Creating a multidimensional array with php and MySQL

I'm creating a multidimensional array, which by necessity should be something like this: The lengths (225,250 ... 950) will not always be the same, depending on what is in the database, as well as the categories (T1, T2, T3 ... T12) I did...
asked by 03.12.2018 / 16:19
0
answers

Show image stored in MySQL with PHP

I have a file that allows me to make modifications to a MySQL registry which includes adding an image. When I try to send the data to another file to make a PDF I do not recognize the image, it recognizes the path "images / imag1.png".    Thi...
asked by 27.11.2018 / 07:02
0
answers

An sql event can be conditioned

I have this event CREATE DEFINER='root'@'localhot' EVENT 'prueba' ON SCHEDULE EVERY 1 YEAR STARTS '2018-11-23 16:35:00.000000' ON COMPLETION PRESERVE ENABLE DO UPDATE cat_marca as tabla_c SET tabla_c.precio = (SELECT tabla_c.precio * tabla...
asked by 23.11.2018 / 23:34
1
answer

Calculate dates in update form

I have the following form to update: <form action="" method="post" name="form1" id="form1"> <table width="60%" height="169" align="center"> <tr valign="baseline"> <td width="44%" align="right" nowrap="nowrap" class="8p...
asked by 22.11.2018 / 19:17
0
answers

login with php and mysql

I'm giving my first steps in PHP and I'm working on a login, I try to compare the password that is in the database and the one that the user entered, but I can not get it to work, This is the code that I have: // data sent from form login.html...
asked by 24.11.2018 / 17:00
2
answers

Help with PHP function to discard a MySQL data

I have the following: $verf = "SELECT nro_transf FROM pedidos WHERE nro_transf = '$nro_transf'"; $result = mysqli_query($db, $verf); $rows = mysqli_num_rows($result); $verf2 = "SELECT nro_transf FROM pagos WHERE nro_transf = '$nro_transf'";...
asked by 16.11.2018 / 16:49
0
answers

How to aquatize PHP MYSQLI data?

This is the warning: Warning: mysqli_fetch_array () expects parameter 1 to be mysqli_result, boolean given in D: \ xampp \ htdocs \ php \ Proyectus1 \ editProfile.php on line 105 and this code: <?php session_start();...
asked by 15.11.2018 / 18:41
0
answers

Do not insert Master record Detail (or point of sale) in my Php code, why suggestions?

I have been programming in Php and MySQL a practice of master detail which has as fields the "id_detalle_renta", "idrenta", "idauto", which inserts the rent, but not the detail of the rent, then the php code with certain parts commented, I would...
asked by 15.11.2018 / 07:10