Jump to content

shank888

Members
  • Posts

    119
  • Joined

  • Last visited

Everything posted by shank888

  1. Hey! I am going a forum / online community. just wodnering i can get some testers to search though this looking for errors, broken links etc. please sign up and report bugs in the bug reporting area of the site. thanx
  2. try this: echo "<a href='file.php?menu=openclose'><h1>Home</h1></a>";
  3. $action = $_GET['action']; if (ACTION) { page to be displayed here } to view page: http://url.com/file.php?action=ACTION I hope this is what you mean
  4. if($action == 'forum') { /// Shows each catagory $query2="SELECT * FROM `cat`"; $result1=mysql_query($query2, $conn); while ($row2=@mysql_fetch_array($result1)) { @extract ($row2); echo" <table cellspacing='1' width='780'> <tr> <td colspan='4' width='100%'> <em>$cat_name</em> </td> </tr> <tr> <td width='50%'> <b>Forum</b> </td> <td width='10%'> <b>Topics</b> </td> <td width='10%'> <b>Replies</b> </td> <td width='30%'> <b>Most Recent Post</b> </td> </tr>"; /// Shows forums for each catagory $query3="SELECT * FROM `forum` WHERE forum_cat_id = $cat_id"; $result2=mysql_query($query3,$conn); while ($row3=@mysql_fetch_array($result2)) { @extract($row3); echo" <tr> <td width='50%'> <a href='".$filename."?action=topic&cat_id=".urlencode("{$cat_id}")."&forum_id=".urlencode("{$forum_id}")."'> <b>$forum_name</b><br /></a> $forum_desc </td> <td width='10%'> $topic_id </td> <td width='10%'> $post_id </td> <td width='30%'> $recent_post </td> </tr> "; } echo"</table>"; } /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ##Display Topics for selected forum Forum /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// if($action == 'topic') { if ((!$_GET[cat_id]) || (!$_GET[forum_id])) { // Get topics to get to the first page you would go http://URL.com/name.php?action=forum but how do i get the link section: "<a href='".$filename."?action=topic&cat_id=".urlencode("{$cat_id}")."&forum_id=".urlencode("{$forum_id}")."'> <b>$forum_name</b><br /></a> to go to 'topic'
  5. thank you. yeah we'll work on the members being disabled. as for the slogan we're getting rid of it for beta 2
  6. hmm ig uess that is quite true.
  7. thats quite useful. no one has the same phone numbers so if u make the text send to everyone in that list the receptiant is bound to receive it.
  8. Hmm that didn't work. I don't really like giving out my whole code over the net so I made a bigger snippet so it'll be easier to see whats going on <?php // Global Variables /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $action = $_GET['action']; // Determines what page is being displayed $filename = 'index.php'; // Current name of file, eg: index.php $host = "NULL/index.php"; $username_sql = "NULL"; $password_sql = "NULL"; //MySQl Connect $conn=mysql_connect(localhost,$username_sql,$password_sql) or die(mysql_error()); @mysql_select_db("NULL",$conn) or die(mysql_error()); <table cellspacing='1' width='780'> <tr> $query3="SELECT * FROM `NULL` WHERE forum_cat_id = $cat_id"; $result2=mysql_query($query3,$conn); while ($row3=@mysql_fetch_array($result2)) { @extract($row3); echo" <td width='50%'> <a href='$host?action=cat_id=".urlencode("{$cat_id}&")."user_id=$user_id'> <b>$user_name</b><br /></a> $user_desc </td> } echo"</table>"; } } if($action == 'cat_id=$cat_id&user_id=$user_id') { $query4="SELECT * FROM `NULL` WHERE NULL_BLAH_id = $user_id"; $result3= mysql_query($query4,$conn); while ($row4=@mysql_fetch_array($result3)) { @extract($row4); if (@mysql_num_rows($row4) < 1) { //If no topics display this error $display_block = "<p><i>There are currently no users</i></p>"; } ?>
  9. umm okay. so can I simply over right variables sumwheres in a script, then later on have then return to the global variable I'm using everywhere else? As well where would I place this?
  10. i do not see this as a problem.
  11. Yes. for sorting purposes I am using the &
  12. Hey all. This is my first post and hopefulyl not the last. as well I hope to be helping more then receiving help. anyways here is my problem: I am building my website in a single PHP file. $action = $_GET['action']; $filename = 'index.php'; $host = "myipaddres/index.php"; if($action == 'index2') { echo "<td width='50%'> <a href='$host?action=cat_id=$cat_id&user_id=$user_id'> </td>"; } // Okay so I mate this short little acton script where if someone links the link above it'll show the next page. if($action == 'cat_id=$cat_id&forum_id=$forum_id') { echo "sucess!"; Would someone be able to tell me why this isn't working. like I know it's a problem with the $action varbiable but how would I sucessfully link the to. oh btw I have a working connect to MySQL script running off of this. it's just little code snipplets. any help would be appretiated.
×
×
  • 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.