Jump to content

npsari

Members
  • Posts

    393
  • Joined

  • Last visited

Posts posted by npsari

  1. Wow, that is one huge script you showed here

    My prsonal opinion is to create a search script yourself

    I created a search script for one of my sites

    The reason is, because I wanted to know exactly what the script consists of

    Therefore, you can add and subtract in the future as much as you wish

    But ofcourse you can get readu scripts from the net if you dont know how to make them or dont have time

  2. If I was in your place, I will use the basic of all

    I will use...

     

    if(mail($emaily, $subject, $message, "From: $SITE_EMAIL")){
    print"<FONT style=\"font-size:12px\" color=\"#000000\" face=\"Arial\">Sent!</FONT>";
    }else{
    print"<FONT style=\"font-size:12px\" color=\"#000000\" face=\"Arial\">Not sent!</FONT>";
    }

     

    Because the Submit form looks ok to me

    I think the handling code may be the problem

    Try this simple code which I gave you and see if it works

    If it doesnt work, perhaps your server does not send emails, or email companies block the emails coming from your server

    You need to keep trying, I had several problems like that before

  3. Hello,

     

    When you say Frame you mean Inline-frame?

     

    Anyway, Not sure about this, but what is you did that...

     

    <?php
    
    session_start();
    session_destroy();
    
    echo "You have been successfully logged out.
    
    <br><br>
    You will now be returned to the login page.
    
    <META HTTP-EQUIV=\"refresh\" target=\"frame_name\" content=\"2; URL=login.php\"> ";
    ?> 

     

    Perhaps it will work, otherwise, I have no ideas to offer

  4. Hello there,

     

    I am not sure I can see the upade bit in your code

     

    From what I know, this is the update bit...

     

    mysql_query("UPDATE table_name SET value = '$new_value' WHERE id = '$id' ");

     

    Is this what you are trying to do? Sorry if I am wrong.

  5. Hello there,

     

    I changed the old design to make my current users happier and to make it easier for new visitors

     

    My site offers free advertising services

     

    I really appreciate your honest opinion

     

    Please check my site and tell me the following...

     

    1. What is your first impression?

    2. Is it easy to understand?

    3. Does it look professional?

    4. Does it look trust worthy?

    5. What can be fixed?

     

    Thank you in advance 

     

     

    :)  http://www.yavrim.com  :)

     

     

  6. wow, can i ask you something about this little code you showed me

     

    $mysql_query = "SELECT * FROM works WHERE MATCH(Description) AGAINST ('$variable')";

     

     

    Lets say a user is searching for: very cheap car

    And there is a car which has the following keywords good cheap new reliable car very

     

    I want the Query to find as much keywords possible, rather than looking for the exact match

     

    So, if the row Description has loads of keywords, the query will see the most matching keywords in it

     

    Do you know how can this be done, because at the moment i am doing something messed up  :o

  7. Actually, i never thought of sending emails in a Secure Way

     

    I simply use the normal PHP send email function

     

    <?php
    
    $Subject="This was sent using PHP";
    $Sender="YOUR EMAIL";
    $Send_to="RECEIVER EMAIL";
    $Message="Lets hope this message arrives, I got this from Zortin";
    
    
    if(mail($Send_to, $Subject, $Message, "From: $Sender")){
    print"<br><br><FONT style=\"font-size:26px\" color=\"#009300\" face=\"Arial\"><B>Sent to: $SendTo  ... Sender: $Sender</B></FONT>";
    }else{
    print"<br><br><FONT style=\"font-size:26px\" color=\"#FF0000\" face=\"Arial\"><B>Did not send to: $SendTo  ... Sender: $Sender</B></FONT>";
    }
    
    ?>

     

    I dont think this is not Secure, How can it be Secure, I am not sure i get it

  8. Very inefficiently though.

     

    You are right, I had a problem sometime ago, which was: A slow server

    I accused my Scripts and started changing them to become more efficient

    My server is now faster actually, so, i guess it was my scripts

     

    Anyway, i am not a programmer, i am a Mechanical Engineer

    I am only doing this because i really like having a website

  9. Hmm, i would do it differently actually...

     

    <?
    //// First, you create the variables
    $get_id = {$_POST['id']} ;
    $get_firstname = {$_POST['firstname']} ;
    $get_lastname = {$_POST['lastname']} ;
    /////AND SO ON...
    
    
    
    //// Second, you update each one on its own
    mysql_query(" UPDATE moving SET firstname = '$get_firstname' WHERE id = '$get_id' ") ;
    mysql_query(" UPDATE moving SET lastname = '$get_lastname' WHERE id =  '$get_id' ") ;
    /////AND SO ON...
    
    ?>

     

    You see what i mean?

     

    This will work i think, but note that i have a unique way of writing my codes, so, you can wait for another answer which can be easier than mine.

  10. Hello there,

     

    I echo from my database the two variables $time1 & $time2

     

    Here is the format of the Time

    $time1 = 08:24:02

    $time2 = 20:34:47

     

    I want to create an IF funtiocn which will echo the following...

     

    If the time difference is more than 15 minutes: Sorry, the time difference is more than 15 minutes

    If the time difference is less than 15 minutes: Your session is still active

     

    But i dont know how to subtract Time

     

    $result = $time2 - $time1 ;
    If($result > '15') {
    Echo "Sorry, the time difference is more than 15 minutes";
    }else{
    Echo "Your session is still active";
    }

     

    I think this is wrong... Please show me how...

  11. Actually, i got an idea...

     

    The links on the left will load two Iframes & not just one

     

    Iframe1: Shows the website

    Iframe2: Contains the Textrea of the codes

     

    So, Lets say you are after http://www.example.com

     

    Iframe2 will be: http://www.yoursite.com?open=http://www.example.com

     

    Therefore, the PHP code which is in Iframe2 will read http://www.example.com and display the codes

     

    <?
    $contents = file_get_contents($open);
    print"<textarea>";
    Echo "$contents";
    print"</textarea>";
    ?>

  12. Ohh, i understand what you mean, you dont want to pay extra for running a script for few days

    Actually, you are correct

     

    If i was in your case, i will move to a new hosting company (With the same Shared hosting plan)

     

    And hope that they will not mention anything about the CPU usage

     

    Hopefully their servers are much faster and wont cause no problems

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