Jump to content

session prob


vividona

Recommended Posts

I need when my registered users select a certain article, my code view this certain article so that they can update or delete it.

 

This query select all articles for the registered user. How can I restrict selection to select just  the article which the user pickup

$CheckArtiList = sprintf("SELECT `artid`, `subject`, `body`, `uid`, `username` FROM %s WHERE uid=".$_SESSION['uid']." ORDER BY curtime DESC",
	parent::BHL_CONT_MGM);
	$ArtiList = mysql_query($CheckArtiList) or die( mysql_error());

 

Link to comment
https://forums.phpfreaks.com/topic/146651-session-prob/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.