Recent

Author Topic: [Solved] LAMW - Validate Connection with MySQL?  (Read 353 times)

kholyphoenix1

  • New Member
  • *
  • Posts: 25
[Solved] LAMW - Validate Connection with MySQL?
« on: April 10, 2020, 02:19:51 pm »
Hello, guys!
I'm using Component 'MySQL57ConnectionBridge1'.
How do I validate the connection?

Thanks a lot!
« Last Edit: April 11, 2020, 01:12:37 pm by kholyphoenix1 »

Thyphoon

  • New Member
  • *
  • Posts: 21
Re: LAMW - Validate Connection with MySQL?
« Reply #1 on: April 10, 2020, 03:39:48 pm »
MySQL57ConnectionBridge1.connect isnt boolean?

kholyphoenix1

  • New Member
  • *
  • Posts: 25
Re: LAMW - Validate Connection with MySQL?
« Reply #2 on: April 10, 2020, 07:06:13 pm »
here is displayed as a function: boolean

Thyphoon

  • New Member
  • *
  • Posts: 21
Re: LAMW - Validate Connection with MySQL?
« Reply #3 on: April 10, 2020, 08:32:25 pm »
so you should be able to

if MySQL57ConnectionBridge1.connect then
 QueryYourHeartContent();

kholyphoenix1

  • New Member
  • *
  • Posts: 25
Re: LAMW - Validate Connection with MySQL?
« Reply #4 on: April 11, 2020, 01:12:22 pm »
Thanks a lot!  :D

 

TinyPortal © 2005-2018