Hello! pls. help me with understanding what i’m doing wrong. I’m a newbie PHP user and somehow I try to do my best but right now I’m really at my wits end. I have a table
teachertable
empid section name time
102012 II jane 0800
102012 II jane 1200
102012 II jane 1500
heres what I want to do, After my distinct items I created and listed a link from within and when I click on it it will show everything its kinda view all but a little different. my code is below.
<?php include('config.php'); $mod = $_GET[mod]; $myid =$_GET[id]; //Connection script to postgres server.....OK callme($myid); /* save item*/ $sq1 ="SELECT DISTINCT empid FROM teachertable"; $result =pg_query($sq1); //for refid display below while ($row = pg_fetch_array($result)){ echo '".$row["empid"]." | "; echo '
"; } } } ?>
the good thing about this is its not getting any error but my problem it has no output it seems that my $myid is not enough. please help. thanks in advance!!