Jump to content

Pyro

Members
  • Posts

    33
  • Joined

  • Last visited

    Never

Posts posted by Pyro

  1. //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. 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.";}

  3. 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

  4. $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

  5. 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>

  6. 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.

  7. 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

×
×
  • 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.