Search Result

Collapse
5 results in 0.0025 seconds.
Keywords
Members
Tags
mysqli
  •  

  • Yousef Altaf
    started a topic send users activation Email for the new accounts
    in PHP

    send users activation Email for the new accounts

    I have this code (it's a form which will sign up new users and send them an email to active they account).

    Code:
    <?php
            if(isset($_POST['submited'])) {
                $msg="";
    
                $RFname = clean_text($_POST['RFname']);
                $RLname = clean_text($_POST['RLname']);
                $USERname = clean_text($_POST['UserName']);
                $USERpassword = $_POST['UserPass'];
    ...
    See more | Go to post

  • Yousef Altaf
    started a topic search with php on my site problem
    in PHP

    search with php on my site problem

    hi every one I have a problem with my search on my site I don't understand why it give me this error

    this is my form code

    Code:
    <form action="index.php?cat=search_results&learn_id=1" method="post">
          <div id="topSearchBodyStyle">
            <input type="text" name="search" class="topSearchTextBackground" />
          </div>
    ...
    See more | Go to post

  • PsychoCoder
    started a topic Object Oriented mysqli connection function
    in PHP

    Object Oriented mysqli connection function

    Recently a friend was having a hard time connecting using mysqli, so I showed an OO way of accomplishing the task with this code

    Code:
    class db_connection extends mysqli 
    {
        public function __construct($dbhost, $username, $password, $db) 
    	{
            parent::__construct($dbhost, $username, $password, $db);
    
            if (mysqli_connect_error()) 
    		{
                die('Connection Error:
    ...
    See more | Go to post

  • Samishii23
    started a topic Why can't I pass this by reference.
    in PHP

    Why can't I pass this by reference.

    So I had built a dynamic MySQLi query class to handle all of my querys, and it was reuseable. Anyways. How I do it, is using this:
    Code:
    call_user_func_array( array( $stmt, 'bind_param' ), vref($arr) );
    vref() being a function that passes all that variables through references.

    So I used the above to do something like this:
    Code:
    $arr = array( $_FORM['data1'], $_FORM['data2'], '0', '0', ( $_FORM['data3'] ) ? $_FORM['data3'] : '0' );
    call_user_func_array(
    ...
    See more | Go to post
    Last edited by Samishii23; Dec 30 '11, 11:06 PM. Reason: Clarification

  • Atli
    started a topic Uploading files into a MySQL database using PHP
    in PHP

    Uploading files into a MySQL database using PHP

    You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t.

    In situations where your PHP application needs to store entire files, the preferred method is to save the file onto the server’s file-system, and store the physical location of the file in your database. This is generally considered to be the easiest and fastest way to store...
    See more | Go to post
Working...