Welcome, Guest
Username: Password: Remember me

TOPIC: Database Script Filter Condition

Database Script Filter Condition 5 months 4 weeks ago #1657

  • arifcorp
  • arifcorp's Avatar
  • Offline
  • Senior Member
  • Posts: 44
  • Karma: 0
Hi Ruslan,

string parameter = readvaluefromdb(“databasename”, “tablename”, “parameter1”,”_id=1”);
updatevalueindb(“databasename”, “tablename”, “parameter1”,”title = Title”, “10”);

on the filter conditions , ie _id=1 and tilte=Title, can we have more than one conditions

ie "(title = Title) and (_id=1)"

is this possible?

Thanks
Mohd Ansari
Last Edit: 5 months 4 weeks ago by arifcorp.
The administrator has disabled public write access.

Database Script Filter Condition 5 months 4 weeks ago #1658

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 604
  • Thank you received: 91
  • Karma: -116
Hello Mohd,

Yes, it's possible. The function will be looked like this:
string parameter = readvaluefromdb("databasename", "tablename","parameter","Title='Title' AND _id=2");

Best regards,
Ruslan
The administrator has disabled public write access.
The following user(s) said Thank You: arifcorp
Go to top