Jump to content

LiamProductions

Members
  • Posts

    496
  • Joined

  • Last visited

    Never

Posts posted by LiamProductions

  1. n~ link=topic=160413.msg700492#msg700492 date=1190543151]

    How much you know PHP, have you ever programmed before ? What about web designing ?

     

    For you kind information there is lots of tutorials in this phpfreak website, go there and download some tutorials and see it.

     

    There are too many tutorials there, compiling all of them you can make a Social Networking Site like ORKUT... lol..  ;D ;D

     

     

    What is ORKUT :)

  2. Hey.

     

    Im kind of stuck.

     

    Well... If im getting like a subject title from a database. How would i get the first 10 chars and then have like 3 dots after it?

    What functions should i be using or could someone post an example.

     

    Cheers, Liam.

  3. Hey.

     

    Heres the error:

     

     

    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\wamp\www\MySystem\members.php on line 11

     

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\wamp\www\MySystem\members.php on line 12

    There was a critical error. Matching your data.

     

    And heres the code:

    <?php
    
    
    
    if(isset($_POST['submit'])) {
    if(isset($_POST['user'])) {
    	if(isset($_POST['pass'])) {
    		    include('mysql.php');
    			$user = mysql_real_escape_string($_POST['user']);
                $result = mysql_query("SELECT * FROM `system` WHERE `members`.`user` = '$user'");
                $user = mysql_fetch_assoc($result);
                if(mysql_num_rows($result) == 0) {
    				echo "There was a critical error. Matching your data.";
    			}
    			else {
    				$enteredPassword = md5($_POST['pass']);
    				$pass = ($_POST['pass']);
    				if($enteredPassword == $pass) {
    					$userC = $_POST['user'];
    					setcookie("User", $userC, time()+3600);
    				}
    				else {
    					echo "There was a critical error. Matching your data.";
    				}
    			}
    	}
    	else {
    		echo "There was a critical error with you <b>Password</b>.";
    	}
    }
    else {
    	echo "There was a critical error with your <b>Username</b>.";
    }
    }
    else {
    echo "There was a critical error.";
    }
    
    ?>
    

     

    Its a login file. Can you find the error because i can't.

  4. Heres a simple version of how you should do it

     

     

    Form.html

    <form method="post" action="file.php">
    <input type="text" name=\"name\">
    <input type="message" name="message">
    <input type="submit">
    

     

     

    file.php

    <?php
    
    $to = "Myemail@phpfreaks.com";
    $name = $_POST['name'];
    $message = $_POST['message'];
    $subject = "Mail form";
    
    mail($to, $subject, $message);
    
    ?>
    

     

    If you have a STMP server that should work also i hope it gives you an idea

     

    Take a look at http://php.net/mail

  5. Hotmail normally blocks any emails that you don't have on ur contacts or you have not asked for safe view on it.

     

    Try making a hotmail and use that to email hotmail users and include no images and it might work.

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