Form Load Specific Record

Hi I’m to pull a specific record into a form on page load as follows:

form.load(“server/data.php?id=”+id);

On the server side I have the standard render_table(“table”, “id”,…") script.

However, it’s just pulling the first record in the table and not the id I’m specifying (?id=+id).

How do I get a specific record to load?

You can use something like next

render_sql("select * from table where id = ".$_GET["id"], table, id, fields)