Hi,
I am trying to develop a blog and stuck up in managing the blogs.
The logic with which I am working is that the user who has logged in should be able to see his or her own blog to manage it of course. Now for this I have successfully inserted the email in my blog table, thanks to this forum.
In order to show the blogs the user has written, I have made the following code.
if (isset($_SESSION['MM_Username'])) {
$colname_rec_manage_blog = $_SESSION['MM_Username'];
}
mysql_select_db($database_con_reg, $con_reg);
$query_rec_manage_blog = sprintf("SELECT * FROM blog WHERE email.blog = %s", GetSQLValueString($colname_rec_manage_blog, "text"));
This code does not do anything... Gives me a blank record, however the blog has been successfully added in the database. It should pick the blog looking at the email field in the table. It does not give me any error either.
Any help regarding this would be highly appreciated.
Regards,
Bilal A. Khan