Posts by Isabel Sousa • 71 points
14 posts
-
0
votes0
answers43
viewsQ: How to show BD data without using table?
I have a table in the comic book that has several lines to show everything in a table, so I wanted anything that had a cursor, to go through all the data... I tried that way, but it’s not working,…
phpasked Isabel Sousa 71 -
0
votes2
answers61
viewsA: How to compare in update
The error was in this line of code: instead of "'. $Prod['txtid']. '" gets: echo '<option value="'.$prod['txtNome'].'">'.$prod['txtNome'].'</option>'; Since the query passes to: UPDATE…
-
0
votes2
answers157
viewsQ: How to delete data from database?
I have this code to erase the data from the database where the name is the same as the one chosen on the combobox, whose code and the second. But for some reason I can’t figure out which one isn’t…
-
0
votes2
answers61
viewsQ: How to compare in update
The main code is this: $dbconn = mysqli_connect($servername, $username, $password, $dbname)or die("Failed to connect to database:" . mysqli_error($dbconn)); $query = "SELECT id_medico as txtid, nome…
-
-1
votes2
answers46
viewsQ: How to join edit/new button?
I would like, if there is already $nome registered in the table, it gives an update and if it does not exist, it gives an input. I do not understand what the problem in my code. $dbconn =…
-
0
votes1
answer638
viewsQ: How to make a global variable in PHP?
I have a login, and if the credentials are correct it opens another PHP file and wanted the name of the person associated with the credentials used in the login to appear on a label. All the…
-
0
votes3
answers1169
viewsQ: How to store the data in a variable and then use a query?
I have a combobox filled with data from the database (doctor’s name), where I choose a name, but I wanted to record in another table of the database the id_medico and not the name. I thought I’d use…
-
0
votes1
answer230
viewsQ: How to pass information chosen in the combobox to the database?
I have a database that is filled with data coming from the database and I wanted that after pressing the button, that chosen information to go to the database. Whenever I try to send the data I have…
-
4
votes1
answer884
viewsQ: How to fill out form from the combobox, with database information?
I used the code like this: <html lang="pt-pt"> <head> </head> <body> <?php $servername = "localhost"; $username = "isabelso_isabel"; $password = "password"; $dbname =…
-
1
votes1
answer108
viewsQ: How to pass data from database to combobox?
I wanted to put some data from the database in a combobox but I’m not getting it, I think the problem will be the connection to the database but I don’t know what will be wrong, can help me?…
-
0
votes2
answers38
viewsQ: Why aren’t you comparing?
I have this code to compare the email and password that are in the database, but it is always possible that the data is wrong, not letting in. What’s wrong with the code, can help me? <?php…
-
0
votes2
answers99
viewsQ: How to compare email and word passes from textboxs to the database
I already have this code: <?php ... $dbconn = mysqli_connect($servername, $username, $password, $dbname)or die("Failed to connect to database:" . mysqli_error($conn)); $email =…
-
0
votes1
answer139
viewsQ: How to populate database tables with textbox data
In the external PHP file I have the following code: <!DOCTYPE html> <?php $servername = "localhost"; $username = "isabelso_isabel"; $password = "password"; $dbname = "isabelso_db"; $dbconn…
-
0
votes1
answer37
viewsQ: I have an external PHP file and would like to know if it is possible to link to an HTML file
I have an HTML file and they told me to put the PHP code I would use in a PHP Exter file, is this possible? What the code would look like to "call" the external PHP file to the HTML file?
phpasked Isabel Sousa 71