help with php mysql connect script

OK guys im new to php mysql and I try inserting form information in my database. IM using a sitepoint script in which I went through the tutorial made some experiences of myself and it worked...

but now I get this error that I can't understand...

Command error: you have an error in your syntax SQL; consult the manual corresponding to your version of the server MySQL for the right syntax to use near 'order product SET = ' 1', 'average' = size, color is ", amount = '1' at line 1

Here is the page
http://vaughntucker.com/imagecon/hats.php

and this is the script
<? PHP
default page view
connect to the database
$dbcnx = @mysql_connect ('p3nl41mysql7.secureserver .net', 'imagecon', ' Dub * boss_1');
If (! $dbcnx) {}
echo "< p > unable to connect to the '. 'database server at this time." < /p > ";
Exit();

}

Select database
If (! @mysql_select_db ('imagecon')) {}
exit (' < p > cannot locate the ".")
"database at this time. < /p >");
}

MySQL Query add joke
If (isset($_POST['submit'])) {}
$product = 1;
$size = $_POST ["size"];
$color = $_POST ['color'];
$quan = $_POST ['quantity'];
$sql = "INSERT INTO command TOGETHER
product = "$product."
size = "$size."
Color = "$color"
quantity = "$quan"
Date = CURDATE () ';
} else {}
ECHO 'no data sent ";

}
If (@mysql_query ($sql)) {}
echo "< p > your order has been sent. < /p > ";
} else {}
echo ' error < p > order process: '.
mysql_error(). / '< p > ';
}



? >

Thanks in advance

Murray * ACE * has written:
> $sql = "INSERT INTO command TOGETHER."
"> product ='". $product. "',
"> size ='". $size. "',
"> color ='". $color. "',
' > quantity = ' ". $quan. "',

No, this is not what is causing the problem. It is the use of 'order' as
the name of the table. The order is an SQL reserved word. Either the name of the table
should be changed, or the query INSERT rewritten as follows:

$size = mysql_real_escape_string($_POST['size']);
$color = mysql_real_escape_string($_POST['color']);
$quan = mysql_real_escape_string($_POST['quantity']);
$sql = 'INSERT INTO 'order' SET
product = 1,.
size = "$size."
Color = "$color"
quantity = $quan,
'date' = CURDATE () ';

Note that I surrounded order and date with backticks. I also have
$product, was deleted because it has a fixed value. I removed the quotes from
around $quan, because the numbers should not be quoted in SQL queries.

The changes I did assume that magic quotes are disabled the
Server. If they are on, you must also pass the variables $_POST
stripslashes() like this:

$size = mysql_real_escape_string (stripslashes($_POST['size']));
$color = mysql_real_escape_string (stripslashes($_POST['color']));
$quan = mysql_real_escape_string (stripslashes($_POST['quantity']);

--
Adobe Community Expert David Powers
Author, "The Essential Guide to Dreamweaver CS4",
"PHP Solutions" & "PHP Object-Oriented Solutions.
http://foundationphp.com/

Tags: Dreamweaver

Similar Questions

  • Insert a special character such as apostrophes with PHP/Mysql

    Hi friends,

    I have a problem with php/mysql. I created a form vach'inton a page php with dreamweaver and when I try to fill in the form with a string that contains an apostrophe ('), I got an error. It seems that integration is not possible. Would you have any idea for that. I give you the code of dreamweaver php and thank you for your help.

    <? php require_once('Connections/Mainconnect.php');? >

    <? php require_once('Zend/Date.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    If ($theValue =="")

    {

    $theValue = "NULL";

    }

    on the other

    {

    $zendDate = new Zend_Date($theValue,"dd/MM/yyyy");

    $theValue = "" "." $zendDate-> toString("yyyy-MM-dd"). »" « ;"

    }

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

    }

    If ((isset($_POST["MM_update"])) & & ($_POST ["MM_update"] == "form1")) {}

    $updateSQL = sprintf ("UPDATE pers_soc_reg SET Field1 = %s, Field2 = %s,

    GetSQLValueString ($_POST ["field1"], "text").

    GetSQLValueString ($_POST ["Field2"], "double"));

    Hello friends,

    I solved the problem.

    The problem is a free extension for dreamweaver called 'check new items' of Felixone. After his retirement, all forms of work without problem.

    Thanks to you all.

  • Price with PHP/MySQL

    I want to use numbers from a database, prices. In the database (PHP/MySQL), the structure is ' decimal (9.2). If I put it out with PHP a number as is €9.02 9,02 but 9.20 looks like this €9,2. How can I set prices with PHP/MySQL?

    I hope that my question is simple... Thankx for any other help.

    Use number_format() functionof PHP.

  • Call to undefined function getsqlvaluestring() with PHP mysql Dreamweaver

    Hey guys, I'm new to the forum and it seems very useful. I think I have a unique problem well.

    Although this script worked for a year or two, all of a sudden, during the holidays, he went to hay

    Front end is always get all the information, it must be the Database.But when I try to connect through the side admin I created with php and database of dreamweaver extensions normal I get this error.

    I do not know many php - then I'll hide the chain at the moment - if I need to paste the code that I'll - thank you in advance


    Fatal error
    : Call to undefined function getsqlvaluestring() in /xxxxx/xxxx/xxxxxxx/xxxxxxx/newsletters/xxxxxxx/xxxxxxx/admin/login.php on line 22

    Vicinity of line 22 looks like this

    @mysql_select_db ($database_promocenter, $promocenter);

    $LoginRS__query = sprintf ("SELECT username, password, destination_page FROM users WHERE username = %s AND password is %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "int"));

    $LoginRS = mysql_query ($LoginRS__query, $promocenter) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    First part looks like this

    < form id = "form1" name = "form1" method = "POST" action = "<?" PHP echo $loginFormAction;? > ">"
    < b >
    < td bgcolor = "#dedede" >
    < table width = "400" border = "0" align = "center" cellpadding = '3' cellspacing = "0" bgcolor = "#ffffff" >
    < b >
    < td height = "35" align = "right" valign = "middle" id = "description" > user name: < table >
    < height td = "35" > < label >
    < input style = "height: 20px;" border: 1px solid #999999 "name ="username"type ="text"id ="username"size ="35"/ >"
    < / label > < table >
    < /tr >
    < b >
    < td height = "35" align = "right" valign = "middle" id = "description" > password: < table >
    < height td = "35" > < label >
    < input style = "height: 20px;" border: 1px solid #999999 "name ="password"type ="password"id ="password"size ="35"/ >"
    < / label > < table >
    < /tr >

    Anton

    Could also show you it could never work.  Why?  Because the call to the function is made before the function is defined.  He would always stop execution with an undefined function error.

    Now - it seems that you have added the users authentication that was placed before the code block in which the function is defined.  So I would say that you move it-

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION< 6)="" {="" 6)="">

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    from its current location to a new block just under the connection with the directive, i.e.,.

    MOVE HERE ? >

    <>

    Validate request to connect to this site.

    so that the final code looks like this-

    <>

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION< 6)="">

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    ?>

    <>

    Validate request to connect to this site.

  • Satellite A200 - 24 - need help with ad - hoc connection

    Hello

    I have a Toshiba Satellite A200-24 which is connected to the internet via ADSL.

    Also, I have a laptop and I want to share internet between them in my apt.
    In Win XP it should do so through the Connection Wizard, but in vista, it is "ad hoc connection".

    However, when I try to do, I get a message that windows cannot create my new network.
    I have searched all over the net for a solution and those who have the same problem as me.

    Have computers with Satellite...

    Hello

    I think you should check this page:
    http://www.LyteByte.com/2007/02/21/how-to-share-one-Internet-connection-with-another-computer-using-Vista/

    Here you have find some information and details (screenshots) how to share one Internet connection with another computer using Vista?

    This page could also be interesting:
    http://thehiddenguide.com/how-to-share-two-computers-with-one-Internet-connection-on-Vista/

    Please post comments!

  • Help: DataGrid + PHP + Mysql

    I want to know how to display the data in the DataGrid control and data to PHP + Mysql.

    where is an example?

    PS: I have home do all the code in the .as file, not the .mxml file.

    You will likely find something in this thing called the developer center:
    http://www.Adobe.com/devnet/flex/flex_php.html

  • Help with DW, MySQL and PHP

    Hello

    I created a simple connection using dw8 system. When a user logs into the system, he can see all support incidents created by him. This is done with a simple mysql query and a dynamic array is filled with the incident IDs.

    However, I would like to make each incident ID that is returned clickable. Thus, when the user clicks on one of the incident ID that is returned, it must redirect the user to a page that displays information about the incident.

    Is someone can you please tell me how I can get this done.

    Thanks in advance

    First thing you need to do is to read on the sessions.

    http://www.Tizag.com/phpT/phpsessions.php

    Sessions are important, because if this information is sensitive (by calling "incidentID", I feel that) then you must ensure that the user is connected throughout the process.  So when the user connects you need to store data that you need to access quickly, as the user name and the user group ID.  Then once you write values from the session (DW should allow you to do), you can call the variables of the superglobal $_SESSION.  This way you have given so that the user is who they say they are and puts the connection.

    Without seeing your creation of table (for the database) I can you say the logic of what happens, but if you need a more details on your example, you need to display more information.  What you need to do, that's when you print the results just print with a link around it, so:

    echo "$_POST [incidentID]";

    It's just the simplest solution.  I would recommend considering your loop print format in a table or other structured and feel this way in a loop.  Then on the details page, you must call the user session so that everyone on Google cannot go on ' detailpage.php? incidentID = # ' and enter the pages without logging in.

  • Best way to configure MySQL connection scripts for hosts the remote and

    I'm curious to know if there is an effective way to do it.  I have my local MAMP server test, then a remote server, both with MySQL.  Pages requiring PHP and databases at the start with a link to my login script.  However, the connection to my local details vary my remote servers.  I have two login scripts and need to change the link of each page when I download, or have a login script and change it directly whenever I'm working between the two.

    How will people work effectively in environments the and remote?

    The login script does not have to be in your PHP pages. Not good security. It should be above the root of the Web site, where it is not accessible via http. The name of the file containing the script of the same for the remote and local, even if the content is different.

    Then your PHP pages call a file with the same name and you don't need to change anything.

    require_once '... /... / / here. Connection.php';

    Also note that the file name begins with a period that allows to hide.

  • Need help with PHP Muse (JavaScript error... by e-mail)

    Hey all the...

    I searched and did not see an answer to this:

    I exported my Muse file in HTML format and receive this error for my page contact us (email question):

    "JavaScript: PHP Script error form is missing from the web server or PHP is not configured correctly or your web hosting provider."  Check if the script PHP form as been downloaded correctly, then contact your provider for hosting on the configuration of PHP".

    What PHP version support MUSE... 5.1?  I contacted HostGator and they have just updated my PHP to 5.5 and asked me what needs PHP MUSE. Said HostGator 5.1 is old and they don't support 5.1. Can someone help me?

    Also, when I try to check PHP with: http://my-site.com/scripts/form_check.php , I just get an "oops" of the screen, but does not check my PHP. ???

    Thank you

    I don't see a page of Muse generated with a form to www.dancetx.com, or pages that links? Where can I find the page with the form that does not work? Thank you.

    If you Muse site doesn't have a form, which would explain why there is no file "form_check.php" on your site. This file (and the other for a form) are generated only when there is a form within the site uploaded/exported.

  • Need help with PHP form with checkboxes, radio buttons and file as an attachment

    Hi guys,.

    I'm having a nightmare with this PHP form where a user can fill it out, attach a doc/pdf and submit. After trying to sort out with the previous code, I used, I have stripped try and think that I should start again just in the hope that you geniuses can help!

    Here is the HTML code of the contact.php:

    <form action="" method="post" name="contact" id="contact">
    
        <p>Job Title:*<br />
        <input name="position" type="text" /></p>
    
        <p>Nationality:*<br />
        <select name="nationality">
          <option value="">-- select one --</option>
          <option value="Afghan">Afghan</option>
          <option value="Albanian">Albanian</option>
          <option value="Algerian">Algerian</option>
          <option value="Zambian">Zambian</option>
          <option value="Zimbabwean">Zimbabwean</option>
        </select>
        </p>
        
        <p>Which country are you currently living in?*<br />
        <select name="country">
        <option value="">-- select one --</option>
        <option value="United Kingdom">United Kingdom</option>
        <option value="Afghanistan">Afghanistan</option>
        <option value="Africa">Africa</option>
        <option value="Zambia">Zambia</option>
        <option value="Zimbabwe">Zimbabwe</option>
        </select>
        </p>
        
        <label class="radio" for="checkRight">Yes/No question?</label><br />
        <input class="radio" type="radio" name="right" value="Yes" /> Yes
        <input class="radio" type="radio" name="right" value="No" /> No
        <input class="radio" type="radio" name="right" value="N/A" /> Not applicable
        
        <p>Yes/No question?<br />
        <select name="continue">
        <option value="">-- select one --</option>
        <option value="Yes">Yes</option>
        <option value="No">No</option>
        </select>
        </p>
        
        <p>Select your resorts:<br />
        Resort 1<input name="res1" type="checkbox" value="Resort 1" />
        Resort 2<input name="res2" type="checkbox" value="Resort 2" />
        Resort 3<input name="res3" type="checkbox" value="Resort 3" />
        Resort 4<input name="res4" type="checkbox" value="Resort 4" />
        Resort 5<input name="res5" type="checkbox" value="Resort 5" />
        Resort 6<input name="res6" type="checkbox" value="Resort 6" />    
        </p>
        
        <p>Don't send form unless this is checked:* <input type="checkbox" name="parttime" value="Yes" /></p>
        
        <p>Date of arrival: <input name="arrive" id="datepick" /><br />
        Date of departure: <input name="depart" id="datepick2" /></p>
        
        <script type="text/javascript" src="assets/scripts/datepickr/datepickr.js"></script>
        <link href="assets/scripts/datepickr/datepickr.css" rel="stylesheet">
        
        <script type="text/javascript">
        new datepickr('datepick');
        new datepickr('datepick2', {
        });
        </script>
        
        
        <p>Name:*<br />
        <input name="name" type="text" /></p>
        
        <p>E-mail:*<br />
        <input name="email" type="text" /></p>
        
        <p>Telephone:*<br />
        <input name="telephone" type="text" class="ctextField" /></p>
        
        <p>Upload CV (Word of PDF formats only):<br />
        <input type="file" name="cv" class="textfield"></p>
        
        <p><input name="submit" value="Submit Enquiry" class="submitButton" type="submit" /><div style="visibility:hidden; width:1px; height:1px"><input name="url" type="text" size="45" id="url" /></div></p>
    
    </form>
    

    Furthermore, the work of date boxes so excuse Javascript in there!

    To avoid SPAM, I used something where there is a hidden URL field that should be left blank for the form to submit you see in PHP.

    Here's where I am with the PHP which is placed above the heading of contact.php...

    <?php
    
    if (array_key_exists('submit', $_POST)) {
        $position = $_POST['position'];
        $arrive = $_POST['arrive'];
        $nationality = $_POST['nationality'];
        $parttime = $_POST['parttime'];
        $depart = $_POST['depart'];
        $name = $_POST['name'];
        $email = $_POST['email'];
        $telephone = $_POST['telephone'];
    
    $to = "[email protected]";
    $subject = "Recruitment Application";
    
    $message = $headers;
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "E-mail: " . $_POST["email"] . "\r\n";
    
    $headers  = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= 'From: My Website <[email protected]>' . "\r\n";
    
    
    
    $message= "
    ";
    
    $url = stripslashes($_POST["url"]);
    if (!empty($url)) {
    header( 'Location: http://www.go-away-spam-robots.com' );
    exit();
    }
    
    if (!isset($warning)) {
    mail($to, $subject, $message, $headers);
    header( 'Location: http://www.mywebsite.co.uk/sent.php' );
    }
    
    }
    
    ?>
    

    I would like to make virtually all of the mandatory field so if a field is left empty (other than the hidden URL field), a warning message is displayed next to this field.

    Also, I would like that the file upload field to attach to the e-mail address that is sent to me and the results come through me in a table.

    Can someone help me get my form to work?

    Thank you and I hope to hear from you!

    SM

    Either way, the url of your custom success page must go inside the thanks_page variable:

    $thanks_page [0] = "Success.php";

    Nancy O.

  • Need help with PHP syntax error

    I fight with this error message ""Parse error: syntax error, unexpected T_IF ' for the 66 line that I get. " Here is the code that I use that I got with the help of the users of this site, which is supposed to launch a search for multiple parameters on a mysql database. The red text is the line 66. I just starting to learn PHP and I can not know what to do with it. Is it possible to have two if statements following each other like this? In addition, as I said, I was given this code from the help of this forum, but I don't understand what the purpose is of the $where variable. This code will work also without it? Thanks in advance for any help.

    $query_rsMainItems = ' SELECT * FROM mainitems; $where = false; If (isset($_GET['category']) & &! empty($_GET['category'])) {$. query_rsMainItems = 'category WHERE ='.} GetSQLValueString ($_GET ['category'], 'text');      $where = true; } If (isset($_GET['price']) & &! empty($_GET['price'])) {if ($where) {$query_rsMainItems. = 'AND';}}   } else {$. query_rsMainItems = "WHERE";}     $where = true;   } $query_rsMainItems. = 'price ='. GetSQLValueString ($_GET ['price'], 'text'); } If (isset($_GET['time1']) & &! empty($_GET['time1'])) {if ($where) {$query_rsMainItems. = 'AND';}}   } else {$. query_rsMainItems = "WHERE";}     $where = true;   } $query_rsMainItems. = '(EDT) 1 ='. GetSQLValueString ($_GET ['time 1'], 'text'); } If (isset($_GET['time2']) & &! empty($_GET['time2'])) {if ($where) {$query_rsMainItems. = 'AND';}}   } else {$. query_rsMainItems = "WHERE";}     $where = true;   } $query_rsMainItems. is 'time2 ='. GetSQLValueString ($_GET ['time2'], 'text'); } If (isset($_GET['city']) & &! empty($_GET['city'])) {if ($where) {$query_rsMainItems. = 'AND';}}   } else {$. query_rsMainItems = "WHERE";}     $where = true;   } $query_rsMainItems. = 'city ='. GetSQLValueString ($_GET ['city'], 'text'); } If (isset($_GET['zip']) & &! empty($_GET['zip'])) {if ($where) {$query_rsMainItems. = 'AND';}}   } else {$. query_rsMainItems = "WHERE";}     $where = true;   } $query_rsMainItems. = 'zip ='. GetSQLValueString ($_GET ['zip'], 'text'); } If (isset($_GET['neighborhood']) & &! empty($_GET['neighborhood'])) {if ($where) {$query_rsMainItems. = 'AND';}}   } else {$. query_rsMainItems = "WHERE";}   } $query_rsMainItems. = 'quarter ='. GetSQLValueString ($_GET ['suburb'], 'text');

    I copied and pasted the code in a local page. Aside from a missing brace after the last line ($query_rsMainItems. = 'quarter ='.) GetSQLValueString($_GET['neighborhood'], 'text');), it works perfectly.

    The error message is a unexpected T_IF in line 66. This means that the PHP engine is not expected a conditional clause at this time here. In all likelihood, there is an error at an early stage in the code, which resulted in an unmatched brace.

    The code I provided works. I tested completely before posting originally and tested again. The problem is that I tested it in isolation from the rest of the code in your page. Without seeing the whole page, it is impossible to determine where the error is located.

  • Tables do not show with PHP/MySQL, even after upgrade to version 8.0.2

    According to the technical note, this issue has been resolved with the 8.0.1 upgrade and I am currently at version 8.0.2. But I still don't see my tables. My database names have dashes in them (I can't do anything about it since it is what my webhost). I can test my connection and it works fine. I can hit select when you create a new connection and its able to analyze my data fine names. But when I try to extend the Tables under the tree, I get 'None '.

    I solved this problem. If you have similar problems, connect to your testserver, find the _mmServerScripts folder and copy the scripts ' copy of "on other scripts. In other words, fly over copy of fopen on fopen and copy of MMHTTPDB.php MMHTTPDB.php

    Here they put technical note (if they did, I didn't see it).

  • PHP MySQL connect error

    Ok

    I get the following error when running my php pages on our new web server (Windows Server 2003):

    Fatal error: Call to undefined function mysql_pconnect() in
    c:\Inetpub\wwwroot\jionas_website\Connections\jonas_website.php on line 9

    When I open the jonas_website.php file, it says the name of the Connection_php_mysql.htm file. It is on my local machine in the folder programs, but not on the web server. Should it be?

    If I run a phpinfo page, it works fine... actually all php commands seem to work.

    I also have this "unidentified error" when I try to connect to MYSQL via Dreamweaver MX 2004. I followed all of the suggestions of the technical note for this error. I have yet to get it.

    I can connect to MYSQL via MYSQLadministrator server so I don't know what is happening.

    Help, please.

    Darren

    Hung Kuen Kung Fu wrote:
    > MYSQL is not listed in the phpinfo page. MMM. don't know how to enable this in the file php.ini so I'll have to look.

    Remove the semicolon at the beginning of these lines in windows
    extensions section:

    ; extension = php_mbstring.dll
    ; extension = php_mysql.dll

    Also add this line after them:

    extension = php_mysqli.dll

    --
    David powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • Need help with Expansion Bay connections

    Hello

    My father last week bought a desktop p6240f with Windows 7 computer.  He went out and bought a Blu - ray DVD player because there is an expansion Bay.  Well, I went to install in its new PC to see that it doesn't seem to be enough connections for me to install that.  Both the existing drive and the new Blu - ray player have the motherboard and the power of SATA connections.  Well there are a lot of connections to motherboard SATA, however there are only 2 SATA (1 active DVD drive) power connectors and 1 for the hard drive.  There is a lot of supply connections 4 pins, but that does not help me.  Because there are a lot of 4 connections of the pins I thought maybe I could then just use an old drive that came from his las PC... it is not possible either because there is no IDE connection to the motherboard.

    At this point, I see absolutely no way for me to install a secondary in this PC drive, unless anyone knows of any connection of converter that will connect to the power connection 4 pins at the other end a SATA power connection.

    Any help in this matter will be useful.

    Thank you

    Joe

    Get one of those molex to SATA power adapter:

  • Ask for help with PHP to send an e-mail

    I have a family site. I use a PHP only access with that family members (portions glued and may not be complete)

    / * Adds a line of [] $authorization for each pair of login/password you want to add: * / (I have 30 odd)

    [$authorization] = array ('Big boy', '123456');

    $submit = $_POST ['submit'];

    $user = ";

    $password = ";

    $remember = ";

    If ($_GET ['user']) {}

    $user = $_GET ['user'];

    $password = $_GET ["password"];

    $remember = $_GET ["remember"];

    }

    If ($_POST ['user']) {}

    $user = $_POST ['user'];

    $password = $_POST ["password"];

    $remember = $_POST ["remember"];

    {foreach ($authorization as $loginpair)}

    {If (($user == $loginpair[0]) & & ($password == {$loginpair [1]}))}

    $_SESSION ['user'] = $user;

    $loginsuccessful = TRUE;

    }

    {If ($_SESSION ['user'] == {$loginpair [0]})}

    $loginsuccessful = TRUE;

    Then, on each page of my site, I

    <? PHP require('.. / Login.php ');? >

    I know that's not the best system... I'm afraid to try the mySLQ

    There is much information available to send the results of forms, but this isn't what I want to happen. As I create a session for the user, it seems to me that it should be possible for PHP to send me an email with the name of the users (the first time in the current session), a page is accessed.  By using the following code (from somewhere)

    <? php mail (' [email protected]', 'Topic of the e-mail', "The body of the email?");? >

    I get an email sent to me. But how can I get the name of the user, the time and date and... If possible, do it just send me an email once.

    I hope that my request for help is logical... I appreciate your time. Thank you

    Ralph3616 wrote:

    My 'desire' was to replace Scripture in a file which I then access through FTP to read, send the results in an e-mail message would be easier.

    If you use my code and create a $_SESSION in the login page and replace $_COOKIE for $_SESSION is exactly what he will do.

    If you are not ready to be a little more open minded and at least give it a go then I guess you're stuck with what you currently have.

Maybe you are looking for

  • How to select a part of the message under macOS Sierra?

    In previous versions of Mac OS x, I was able to select a part of the message (text / iMessage) in the Messages application. Now, if I try to do the same, Tapback is enabled. It's really annoying, as I often have to copy the entire message body, paste

  • A damaged adapter will cause battery at no charge?

    The cord is frayed at the junction of magnetic thingie likely to strain. I stuck with Chatterton and MacBook can be used when it is plugged. However the battery will not load. Any relationship between damaged adapter and no loadable batteries? Thank

  • can I remove the Google app?

    I have the Google app on my Macbook Pro 13 inch Retina. I have just movedd for Mac that allows you to get away from all things, Microsoft and Google. However, I don't find a way to get rid of the Google App. - anyone know how?

  • can partition recovery deleted like a fool, I make a new one that will work like the last?

    I had an old backup of partition I made when I upgraded to 7 since vista it was the same size at the HP_Recovery partition factory. in some ways, I deleted the one badly. I have the iso of windows 7 on my computer, I can put on a partition named exac

  • Beri face para ideapad s400

    Hola quiero saber y alguien m could desire such an el ideapad s400 is can put el bery face of lenovo tengo windows operating system 8 donde puedo descargarlo as sirva el windows 8?