Código PHP:
Protected Sub RestaFechas()
Try
Using cad As New MySqlConnection("Database=edmacmin;Data Source=localhost;User Id=root;Password=edmac; Allow Zero Datetime=True")
cad.Open()
Dim sql As String = "UPDATE minact set diaact = DateDiff(now(), fecpact) WHERE poract > '100'"
cad.Close()
End Using
Catch ex As MySqlException
Call MensajeError4()
Catch ex As Exception
Call MensajeError4()
End Try
Código PHP:
UPDATE minact set diaact = DateDiff(now(), fecpact) WHERE poract > 100
Saludos y gracias por la ayuda