Problem to insert the field

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



im having problem in making php news.

I have session variables in login prosses:

$_SESSION['username']=$rec['username'];
$_SESSION['registered_admin']=TRUE;

$_SESSION['username'] is taken from "admin" table

registered_admin can publish the news, and i want to insert the value that were sent from the "add_news" form into "news" table, one of them is admin_id which is a foreign key to "admin" table.

the problem is i do not know how to insert admin_id into "news" table. becoz the session which is taken from admin table is "username"

can anyone help me please...





       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux