In the sprintf line you have:
"SELECT eventid, groupid, title, DATE_FORMAT(dateofevent, '%W, %M %d, %Y'),
timeofevent, location, details, presenter,
bio FROM events WHERE eventid = %s"
That has inputs 5, but you only put one ( GetSQLValueString($colname_eventeditrs, "int")), add 4 more and you should be gold (or, as said in the comments below, escape 4 from the inputs, which should also work)
source
share