Posts by GustavoSevero • 2,567 points
212 posts
-
1
votes3
answers667
viewsQ: Error sending email: server Answer: 550 5.7.1 Must Authenticate
I’m trying to use the function mail() of However, the following warning appears when I run the script: " Warning: mail() [Function.mail]: SMTP server Answer: 550 5.7.1 Must Authenticate!" How do I…
-
0
votes1
answer187
viewsQ: FOR in php and sqlsrv
I have to do a FOR in PHP, using SQLSRV. I’m using the penultimate version of PHP and not the last, because I can’t update PHP.
-
0
votes4
answers127
viewsQ: Redirecting in PHP
Next, I created a page to edit a piece of content and I would like it to go back to the previous page when I click the refresh button. I’m using the following command: header("Location:…
-
-1
votes3
answers576
viewsQ: Date field in Firefox and IE
I have the following code: $dataAssContrato = new DateTime($_POST['dataContrato']); This line works perfectly in Chrome, but not in firefox or IE, because when I try to register one each, I get the…
-
2
votes1
answer979
viewsQ: Div appears and disappears
I created a div where there are 2 links, when the page is loaded, both links are hidden and when I click "search" they should appear. The detail, problem is that they appear and disappear! Why this…
-
-2
votes2
answers394
viewsQ: Updating field datetime sqlsrv
I need to update the date in the date field, type datetime, in a table, taking today’s date, for example. I’m trying to do it this way: $dataHoje = new DateTime(); $sql = "UPDATE…
-
1
votes3
answers1619
viewsQ: How to return the last id inserted in the table?
I need to get the generated id, in the last and recent insertion done in a table in SQLSRV, Mssql, using PHP. I’m already connecting to the bank, using the sqlsrv driver. $sql = "INSERT INTO…
-
3
votes1
answer1261
viewsQ: How do I show the result of an SQLSRV query in PHP?
I need to do a calculation via sqlsrv, add a column of values. This is the code I tried to make: $qryAC = "SELECT SUM(VLRECEITACONT) AS receitaConta FROM [RDO].[dbo].[ANALISE_CRITICA] WHERE…
-
0
votes2
answers993
viewsQ: PHP how to pick up image, in hexa format straight from MSSQL?
I’m making a system with PHP and I have already managed to place an image or word file, directly, inside the MSSQL, SQLSRV, without having to put them in a folder, but I can’t find them and display…
-
1
votes1
answer860
viewsQ: Saving hexadecimal data in the database
I need to register in the database a document or image in hexadecimal format and then recover these data by converting them back to correct format.
-
0
votes1
answer933
viewsQ: Inserting datetime into SQLSRV using PHP
I am working with PHP and SQLSRV. I need to enter a date in a field of the type Datetime and I can not at all. At least not in the ways I have found in Internet searches. The last one I tried was…
-
1
votes2
answers788
viewsA: registering php data in SQL server database 2008
To insert data into SQLSRV, it is more boring than Mysql. Here is an example of how SQLSRV should be used: $sql = "INSERT INTO [RDO].[dbo].[funcionarios] (usuario, email, senha) VALUES (?,?,?)";…