Questions tagged as 'if'

1
answer

Create database using splash screen ANDROID

I have a splash screen in which I try to verify the existence of a database and create it in the case of not existing but I do not know how to call the methods of the class AppSQLiteHelper.java as I could do it? In addition, my intention is that...
asked by 22.04.2017 / 23:38
1
answer

Replicate a table every time another one is updated

I have two tables. Tabla A and Tabla B and I need you to just insert something in Tabla A is copied identically in Tabla B . The fields in both tables are: id , nombre and posicion Example:...
asked by 12.04.2017 / 17:53
0
answers

Insert if inside laravel driver

I would like to introduce a simple if () to see when the variable $row->photo is empty simply this if($row->photo){ /// contenido <img> } But I can not implement it without having syntax error someone gives me a hand?...
asked by 08.11.2018 / 21:19
1
answer

the procedure is fine with an output (phpmyadmin)

How about? I have a doubt I want to make a procedure so that the end result of a result 0 or 1 according to the result number of my table users the procedure is this: DELIMITER $$ CREATE PROCEDURE Coretec_ConfirmUser(IN p_user_mail VARCHAR(150...
asked by 28.10.2018 / 00:16
2
answers

Doubt with an IF ELSE

I'm making a cart for the web, and there's one thing I have to compare when I add a product to the cart. If the product that I add to the cart is for rent = id1 I will show a div and if the product that I add is any other one that has another id...
asked by 10.10.2018 / 10:30
1
answer

Why is this if shown?

I have this if, that supposedly if NO is Sunday and a certain date has to be shown, that works, but I need to edit the date like this, by variables, and when changing it by variables it is always shown, as if the condition be fulfilled, a...
asked by 10.09.2018 / 01:12
3
answers

Registration form, check dni and if user exits PHP + AJAX

have if someone can guide me. I'm making a registration form, in which they have the typical fields; but the ones that I need to do verifications before inserting the registry is of Username (email) and the nif. I have a form that when we giv...
asked by 06.09.2018 / 10:44
0
answers

How to use the "IF" statement with Mysql (JavaSwing)

I know I should learn a little more about java & MySQL, my apologies, but I need you to clarify this question or help me with a small code. What I want to do is the following: - I have a table of users but I want that when a user places h...
asked by 05.07.2018 / 03:57
1
answer

Php radio button with if you do not choose

I have a form created in a page where there are two radio buttons for sex, in the following I try to do an if to know if in the bd I keep M or F, but it is as if it stayed in the value that it had before to make the update while($fila=mysqli_f...
asked by 10.06.2018 / 01:39
2
answers

Can conditional be used if in success in Ajax?

Can an if conditional be used to validate the result of a variable ?, something like: $("#update").submit(function(e){ e.preventDefault(); $.ajax({ url: "ruta/al/archivo/uploadFac.php", t...
asked by 29.05.2018 / 16:43