Questions tagged as 'mysqli'

2
answers

php error with mysql and mysqli

I'm a little new to programming and I'm having a hard time, I was programming a website and I ran it on wampserver, but for a while I updated the wamp version and MYSQL's php commands stopped working, it works only when I change the commands to...
asked by 16.01.2018 / 04:27
1
answer

Cross-Query mySql

I'm not really sure how to express myself more, what I need is how I can do a normal and inverted query. Below I have two fields one source and one destination. I need to make a $origem = $_post["origem"]; $destino = $_post["dest...
asked by 28.09.2017 / 20:13
2
answers

doubts about the variable session_start ()

I put the session_start() method to make the user's name appear on the screen when he logs into the following pages, but I wanted to put his "name" instead of the "email" follow the code that I I did: Code to validate user input. <...
asked by 08.11.2017 / 03:50
3
answers

Find a certain number inside a mysql string

Good morning everyone. I have a question that I can not solve. In a given table of a BD I have a column that saves a string as follows:    1,2,3,4,5 Line 1   11.22,33,44,55 Line 2 Now you need to do a search to select only rows th...
asked by 20.12.2017 / 12:51
1
answer

MYSQLI - Trying to get property of non-object in

I have the following function: function sql_update_views ($table = null, $id = null) { $database = open_database(); $found = null; try { $sql = "UPDATE ".$table." SET views = views + 1 WHERE id = ".$id; $result = $d...
asked by 24.08.2017 / 23:18
1
answer

Why does not my query work?

I have a query in a table that should return the value of the number of records found that meet a given requirement. The code: <?php require('conn.php'); $prevJan= "SELECT COUNT(ID) AS PrevJan FROM participantes WHERE PREVIST...
asked by 14.09.2017 / 19:35
1
answer

Is this a server error?

I developed an application on which my local server is working perfectly. So when I put it on the web server it is returning me the following error: Fatal error: Class 'mysqli' not found in Does anyone know if this is a web server error or...
asked by 12.08.2017 / 17:51
2
answers

Write to the bank who edited the profile

I am developing a system that registers employees of companies. In this system I have the employee and user tables. Employees table I have the data id|nome|empresa|data_cadastro|user_view|user_edit User table I have the data...
asked by 15.08.2017 / 21:04
2
answers

Error: mysqli_fetch_assoc () expects parameter 1 to be mysqli_result, boolean given [duplicate]

In my project I placed a search bar, in which the user informs a value to be searched and selects the column in which he wants to search. What is going to be searched comes from an input type="text" field and the column of an input type="radio...
asked by 24.09.2017 / 03:55
2
answers

Database does not save data in php, although it does not return error [closed]

Hello :) I'm starting to learn with PHP, trying to insert data from the database. Although no return error, the data is not saved. Here is the code: <?php $con=mysqli_connect("localhost","mazzu",""); mysqli_select_db($con,"aula...
asked by 08.07.2017 / 20:01