Hello all,
I'm running PHP and postgresql and have run into a little problem with a select statement. By all accounts it should work beause I don't see any errors but perhaps someone else can point out something. Here's the code:
$get_disc_name = "SELECT t0.discipline_name FROM discipline t0 WHERE disc_id = $_POST[disc_id]";
$disc_name = pg_query($conn, $get_disc_name);
Thanks,
Jisoo22
I'm running PHP and postgresql and have run into a little problem with a select statement. By all accounts it should work beause I don't see any errors but perhaps someone else can point out something. Here's the code:
$get_disc_name = "SELECT t0.discipline_name FROM discipline t0 WHERE disc_id = $_POST[disc_id]";
$disc_name = pg_query($conn, $get_disc_name);
Thanks,
Jisoo22