Jump to content

Pyro

Members
  • Posts

    33
  • Joined

  • Last visited

    Never

Everything posted by Pyro

  1. Pyro

    Wordwrap help

    //quote box. $reactie = preg_replace("/\[quote\](.+?)\[\/quote\]/is",'<br /><center><table width="95%" cellpadding="0" align="center" cellspacing="1" class="m"> <tr><td width="100%" colspan="3" class="forumhdr">Quote.</td></tr><tr class=\"forum\"><td class=\"forum\">\1 </td></tr></table></center><br />', $reactie2); How can i get that peice of code to make it word wrap the text that is entered? ??? ???
  2. yeah i have just relised looking at it, thanks
  3. oh yeah durrrr didn't think of that lol xD thanks dude lol i don't have any common sense xD
  4. hey people, just wondering stuck on this php action first one for ages, could someone please tell me how to make this piece of code delete all? if ($_GET['action'] == "wipe" ){ $id = $_GET['id']; $stresult = mysql_query("DELETE FROM replys WHERE id='$id'") or die(mysql_error()); echo "All forum posts have been deleted.";}
  5. hey people, i am just wondering if anyone can give me a code to show a user on my homepage their ip address. thank you.
  6. for your target put quotations marks, so its target="_blank" and that should work
  7. urm what i do is just make a dump file, go to extract at the top and scrol down a bit, and there you go chose the name of the file you would like to call it, then chose your file type and then download it, and when you want to upload it, just go to in a table, scrol down and where it says browse select that file you downloaded, and chose the correct file type, if it is a .txt file then chose none. hope this has been a help. ~Py
  8. hey, he is right its just html, you need to learn that first before you jump into php. www.w3schools.com all you need to know all there
  9. joomla is good for that sort of content management.
  10. No Problem it should work. you may have to tweek it to your spec, but i know it works on mine.
  11. FlashFXP is great i use it for thugmansions
  12. $member_list = ""; while($row = mysql_fetch_array( $result )) { if($row['name'] == $_POST['name']){ $member_list .= "<option selected=\"selected\" value=\"".$row['name']."\">".$row['name']."</option>"; }else{ $member_list .= "<option value=\"".$row['name']."\">".$row['name']."</option>"; } } thats the php for one of my member drop downs, and here is the form: <td width="175" align="center" class="cell"><select name="name" class="entryfield" id="name"> <option value="">Select.</option> <?php echo $member_list; ?> </select> </td> there is a lot more than that, but that is the basic's of it, im sure you will be able to fix somthing out of that. ~Py
  13. i would o fthought a simple javascript timer, and for the php, so when the timer ends, it activates or what ever yuou want it to.
  14. is this for public view or just personal, if it is just personal i can give you the du,p aswell so yuo can use that code
  15. sorry im not that advanced in php yet im still learning, i just have seen it before, im sorry there are sites that can give you it. sorry mate, but ive given you a lead. sorry ~Py
  16. hi, for my online game i have a thing called notepad where you can save allyour notes this is my php code for it, and it may be a great help to your problems: <?php if(isset($_POST['Write'])){ $result = mysql_query("UPDATE login SET note_pad='".mysql_real_escape_string($_POST['note_pad'])."' WHERE id='" .mysql_real_escape_string($_SESSION['user_id']). "'") or die(mysql_error()); echo "Your Note(s) have been saved.<br>"; $note_pad = $_POST['note_pad']; }// update quote. ?> and this is my text area: <textarea name="note_pad" rows="50" class="textbox" id="note_pad" style='width: 98%;'><?php echo htmlspecialchars(stripslashes($note_pad)); ?></textarea>
  17. you could set the value of the pictures to numbers, and make the php pick a number at random and show the picture that that number is appointed to, randomly.
  18. oh ok, im still a amature at php, but from what i can see, you have not set it to update the sql and set the users information in the correct rows. darkwater knows lots of php pm him. sorry that i can not be much more help.
  19. you have no id on you input, that may be a reason why it is not working, on the imput put: id="registor" just before the ">" and that may help this is on your register button
  20. Notepad++ i think is the best text editor, it seperates all your different codes into simple easy colours, and is very easy to use.
  21. Could it be your spelling of Register? "registor" as the button to register, may have a different id name to what you are queriing. sorry for mis spelling
  22. Are your images in the right place and is the code directed to the right directory, also are they the right format. we will have to see some of your code to help you out more mate. ~Py
  23. O.o forget it people, i found the problem, sorry for wasting your time. ~Py mod please delete this.
×
×
  • 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.