Questions tagged as 'mysql'

1
answer

Capture id in Java loop

I am creating a social network, in jsp and I have a question about how to capture the id of a publication that is showing in a forEach what is shown in this loop and I want to capture the id in another jsp where the 82 is   ...
asked by 19.04.2018 / 20:07
1
answer

I'm running a point-of-sale system for a pharmacy but I have a problem. I hope you can help me!

So far in my program I do the product registration in which the cost, the stock and all that data are already found. But what I can not do is that every sale that is registered is stored in the same database. How can I relate the tables so th...
asked by 27.04.2018 / 18:18
2
answers

BECAUSE IT DOES NOT INSERT DATA ON THE TABLE

I have a problem when I want to insert data into my users table, it does not insert them and it sends me what I put in OR DIE (I DO NOT INSERT DATA). But I do not know why. This is my table and codes: I know it's a lot of code...
asked by 26.05.2018 / 18:14
1
answer

UPDATE mysqli does not work and does not throw error

I have this function that makes an update depending on the variable $ status, what does not work for me is the UPDATE, and it does not throw me any errors, I forgot to put something else? function setInfoStatusProject($status, $project){ inclu...
asked by 26.11.2018 / 20:39
2
answers

Warning: mysql_num_rows () expects parameter 1 to be resource, boolean given in

I have a query ... I am implementing a system for a school project and everything works perfect except one part to implement subjects. I get this error: Warning: mysql_num_rows () expects parameter 1 to be resource, boolean given in C: \ xamp...
asked by 26.11.2018 / 17:38
1
answer

Error with the connection [duplicated]

enter the code here I am creating an autocompletable search with json, mysql and php but it shows me this error:    Fatal error: Uncaught Error: Call to undefined function mysql_connect () in C: \ xampp \ htdocs \ Times \ pages \ log1.php:...
asked by 07.01.2018 / 22:22
2
answers

Can not connect to MySQL server on 'localhost' (10061)

I need help I am making a PHP connection with Mysql and it appears to me that it can not be done. I get this error:    Can not connect to MySQL server on 'localhost' (10061). Use: <?php $conexion = new mysqli('localhost',...
asked by 17.01.2018 / 01:01
1
answer

compare the date of one row with the date of another

Greetings to all, I annoy you with a concern that I have. Currently I am in a project, I am new in this of the programming. It's a page, I make a query to a mysql database and I show it using a WHILE. Always the query shows a table with 6...
asked by 01.12.2017 / 21:55
1
answer

know how many posts are in another table, for each of the users

I need help: I have a user_table with the items (id, name)  and a table_post (id, user_id, etc ...) I need that when you list the table_users, tell me how many posts each of the users has in another column something like this id, nom...
asked by 22.11.2017 / 21:33
1
answer

receive string from a json and convert it to object or array (php - java)

Good morning It's my first post and it's simply because I do not know what else to do: c The issue is that I have a web services where I make a query to a database from php and I get a json of the type String something like this. [{"id":"1","u...
asked by 20.11.2017 / 03:47