Posts by Teresa Santos • 53 points
7 posts
-
0
votes2
answers49
viewsQ: How to query multiple columns
How can I query in several columns the value equal to the field using PDO $PDO = db_connect(); $busca = $_POST['campo']; $vbusca = array("%$busca%"); $sql = 'SELECT * FROM livro AS t WHERE nome LIKE…
-
0
votes1
answer75
viewsQ: PDO does not execute query
I have a form that does a search via PDO, only when I run, it does not return me anything. $PDO = db_connect(); $busca = $_POST['usuario']; $vbusca = "%".$busca."%"; $sql = 'SELECT nome, tipo, cor…
-
-3
votes2
answers31
viewsQ: Problems with number format - Adding characters
I want to return a value of a variable, only when I insert the number_format function into the variable, it ends up adding 2 zeros at the end of the value $valor = 5300000; // Aqui o número só está…
phpasked Teresa Santos 53 -
0
votes1
answer165
viewsQ: Set responsive table size
I’m creating a responsive table, only when I’m on a big screen, the table gets smaller than it should, I tried to add a max-width in the css of it, but it still doesn’t get the proposed size.…
htmlasked Teresa Santos 53 -
0
votes1
answer402
viewsA: get id in Fullcalendar
Try creating a form with an input by taking the id: <form class="form-horizontal" method="POST" action="DESTINO QUE VOCÊ QUER MANDAR (exemplo.php)"> <input type="hidden"…
fullcalendaranswered Teresa Santos 53 -
3
votes1
answer108
viewsQ: Incorrect Usage of UNION and LIMIT
I want my query to return only the first record of the first table (if there is data in it), because the second table has no repeated data. But he returns this mistake: Error Code: 1221. Incorrect…
-
0
votes4
answers79
viewsQ: Find names in 2 different tables
I want to search in 2 tables of the database where the name equals the variable $nome. I would not like to join data as if they were FK, but pull all the information from these tables (other…