Welcome, Guest
Username: Password: Remember me

TOPIC: Database Script Filter Condition

Database Script Filter Condition 2 years 4 months ago #1657

  • arifcorp
  • arifcorp's Avatar
  • Offline
  • Senior Member
  • Posts: 46
  • 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: 2 years 4 months ago by arifcorp.
The administrator has disabled public write access.

Database Script Filter Condition 2 years 4 months ago #1658

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 826
  • Thank you received: 123
  • Karma: -107
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