Jump to content

DayDreamer16

Members
  • Posts

    15
  • Joined

  • Last visited

    Never

Posts posted by DayDreamer16

  1. Never mind, it was a whole different problem. It was sending me to the official PhpMyLogin website for activation for some reason. I still do not know how I fixed it. So just disregard this whole thread.

  2. I haven't tested with this script in like 2 years and I find now that its completely recoded. Can someone please help me with this line of code?

     

    This is the error I get

    Deprecated: Function ereg() is deprecated in /home/chad/public_html/phpmylogin.com/public/includes/functions.php on line 135

     

    and here's the code line

    if(strlen($key)<>32||ereg("[^a-f0-9]",$key))
    

     

    I've configured everything else now I just need to know how to get this activation working.

  3. i thought of that right after i posted this. i created the images/ directory in the upload/ directory i tried it but it didn't work. i also tried chmodding it. any suggestions?

  4. I keep getting a php error in line 6, when I try to upload an image with this code.

     

    <?php
    $imagename = $_FILES['image']['name'];
    
    copy($_FILES['image']['tmp_name'], "./images/$imagename");
    
    echo "Your image has been uploaded and can be viewed here: <br>";
    echo "http://www.yoursite.com/images/$imagename <hr>";
    echo "<b>Preview:</b><br><img src='./hostedimages/$imagename'>";
    ?>
    

  5. i hardly ever make anything with php or even code anything so therefore i'm a newb, but this problem is nagging me.

     

    here's my code

    <?php
    mysql_connect("localhost", "username", "password");
    mysql_select_db("database");
    
    $sql = mysql_query("SELECT * FROM searchengine WHERE pagecontent LIKE '%$_GET[term]%' LIMIT 0,$_GET[results]");
    
    while($ser = mysql_fetch_array($sql)) {
    echo "<h2><a href='javascript:popUp('$ser[pageurl]');'>$ser[title]</a></h2>";
    echo "<p>$ser[pagecontent]</p>";
    echo "<p><a href='$ser[link]'>$ser[link]</a></p>";
    }
    
    ?>
    

     

    i have this code in the header

    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=150');");
    }
    // End -->
    </script>
    

    i cant get the page to popup within the php echo, can anyone help? i'm sure its a simple fix.

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