Hydrian Posted September 4, 2012 Share Posted September 4, 2012 I want to know if you can make a application that allows a user to make a post(topic) and allow other users to reply to that post. Is there any way to do this. If i can do that, i want to try and create a forum with it. And style it how i want it. And then maybe after beta testing upload it to my site. Please i want to know if this is possible, it would be good if this can happen. Cheers Hydroo Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/ Share on other sites More sharing options...
MMDE Posted September 4, 2012 Share Posted September 4, 2012 http://forums.phpfreaks.com/index.php?topic=200925.0 Yes, you can do this. It's a lot of work because of security reasons. You will probably want to use a database like MySQL to store the posts. There should be plenty of guides out there on this topic. Just make sure you also read some good security guides too. You should come back when you got some coding done and you are stuck with something, or if you want some help with the security (but again, you will need to at least try to do it on your own first and be able to show us that). Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1375099 Share on other sites More sharing options...
Hydrian Posted September 4, 2012 Author Share Posted September 4, 2012 Where would you suggest i start? Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1375100 Share on other sites More sharing options...
trq Posted September 4, 2012 Share Posted September 4, 2012 Your posting on a forum here aren't you? So... of course it's possible. Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1375121 Share on other sites More sharing options...
Jessica Posted September 4, 2012 Share Posted September 4, 2012 http://forums.phpfreaks.com/index.php?topic=200925.0 Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1375127 Share on other sites More sharing options...
Hydrian Posted September 4, 2012 Author Share Posted September 4, 2012 starting with the db users( linking into my members table) topics posts catergorys level(admin, mod, normal user) Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1375210 Share on other sites More sharing options...
Hydrian Posted September 5, 2012 Author Share Posted September 5, 2012 I get Resource id #10 when i do <?php print $result; ?> when i load my page. Here is my page code <?php session_start(); include 'config.php'; mysql_select_db("my_db"); $result = mysql_query(" SELECT * FROM `categorys` "); $result = mysql_query(" SELECT * FROM `topics` "); $num = mysql_numrows($result); ?> <?php include 'header.php'; ?> <div id="nar"> </div> <div id="content"> <?php print $result; ?> </div> <div id="nar"> </div> <?php include 'footer.php'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1375351 Share on other sites More sharing options...
Christian F. Posted September 5, 2012 Share Posted September 5, 2012 I think you need to take a second look on these two lines, latter one in particular: $num = mysql_numrows($result); <?php print $result; ?> Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1375353 Share on other sites More sharing options...
Hydrian Posted September 5, 2012 Author Share Posted September 5, 2012 What did i do wrong? Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1375356 Share on other sites More sharing options...
Christian F. Posted September 5, 2012 Share Posted September 5, 2012 Read about it here: http://no.php.net/mysql_query Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1375359 Share on other sites More sharing options...
Hydrian Posted September 5, 2012 Author Share Posted September 5, 2012 Yeah what did i do wrong Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1375360 Share on other sites More sharing options...
Hydrian Posted September 5, 2012 Author Share Posted September 5, 2012 Fixed it but it still shows Resource id #10 Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1375367 Share on other sites More sharing options...
trq Posted September 5, 2012 Share Posted September 5, 2012 Then it is not fixed. You cannot echo a resource. Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1375611 Share on other sites More sharing options...
Jessica Posted September 6, 2012 Share Posted September 6, 2012 Read about it here: http://no.php.net/mysql_query Did you look at the examples on this page? Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1375731 Share on other sites More sharing options...
Pikachu2000 Posted September 6, 2012 Share Posted September 6, 2012 Oh, don't worry. He's started a new thread for that error. Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1375737 Share on other sites More sharing options...
Jessica Posted September 6, 2012 Share Posted September 6, 2012 Oh, don't worry. He's started a new thread for that error. Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1375738 Share on other sites More sharing options...
simn_stv Posted September 25, 2012 Share Posted September 25, 2012 Oh, don't worry. He's started a new thread for that error. :-\ ...really? Quote Link to comment https://forums.phpfreaks.com/topic/267986-application-for-a-site/#findComment-1380900 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.