Questions tagged as 'id'

1
answer

Java @GeneratedValue + SQL server NEWID + Hibernate

I have a table that has ID set to CREATE DEFAULT ID_Tabelas AS NEWID() , that is, even if I use an insert without the key, it will be generated automatically. How can I do with hibernate to recognize that the database itself will generate...
asked by 24.01.2018 / 11:44
1
answer

Loop in PHP to check user id

I'm trying to create a function in PHP where it checks if the id of the user already exists, the id is created with the function rand , but even though there are very few chances of the same id appearing, chances are still there! so to nev...
asked by 24.12.2017 / 05:43
1
answer

Reorder the id of a table [PHP & Mysqli]

Hello, I'm in a project where the order of the id's is quite important for the final result, but when I remove a line from the table, there's an empty id left over ... Ex: IfIdeleteid2itwilllooklikethis... Iwantthecodeafterdeletingittochangea...
asked by 15.11.2017 / 23:45
1
answer

ID Count with Firebase - Android

In my application, I have an entity called Game that has, among other attributes, an ID . I need every time this entity is instantiated the ID is incremented by +1. This works until the application is terminated, because when I open the app a...
asked by 18.10.2017 / 16:00
2
answers

Doubt - Update in SQL from PHP form

I have a table in which columns 1 through 5 are fixed data that I feed into SQL and it appears the listing on the WEB page. In this WEB page I have a form in which the user should answer 3 questions, in inputs in columns 6 to 8. It turns out...
asked by 30.05.2017 / 19:39
1
answer

Using LastInsertId () more than once

I need to use lastInsertId () more than once in my application. Here is an example of such an event: <?php //CONEXÃO COM O BANCO DE DADOS $pdo=new PDO("mysql:host=localhost;dbname=xxx","xxx","xxx"); //VARIÁVEIS COM DADOS DO FORMULÁRIO $nom...
asked by 20.05.2017 / 03:23
2
answers

How to assign a java variable to document.getElementBy Id

I have the following code, where I want to store the value of the variable contained in document.getElementById , which comes from the input, and which should be "text". This line of programming only prints the value of the initial input o...
asked by 09.05.2017 / 18:14
1
answer

Get CSS class from other sites using PHP HTML DOM Parser

I'm trying to get a class from a news site, but I'm not getting it. $titulo = $html->find('feed-post-body-title gui-color-primary gui-color-hover', 0) ->innertext; echo $titulo; You're giving this error:    Notice:...
asked by 19.09.2016 / 20:28
1
answer

CRUD U can not get ID and edit Update

People need a light to unfold a TIMESHEET. I have the following code. <form method="post" action="includes/input.php"> <button type="submit" class="btn btn-primary" onClick="send('login');" value="login" >Default</button&...
asked by 16.09.2016 / 00:45
1
answer

Get auto increment id of two linked tables (INNER JOIN)

Let's see if I can explain at first ... I have two tables [topics] and [notification] I joined these tables with INNER JOIN to get the data of both, so far so good ... But when I need to select the [id] from the [notification] table in...
asked by 18.08.2018 / 03:17