Problem with php/mysql

I'm working on a simple form for my website. I have successfully completed registration and the connection and I put the finishing touches on a script that allows them to change their password. I received the script to give me error messages if the user name and the old passwords do not match, or if they do not find the user name in the database. I also got say the change was successful, but when I check the database, the new password was not included. My AS is the first, then my php... This is the area I have a problem...

You were right, it was the insert statement. It should be 'UPDATED' because there is already a variable that stands for the account already exists. I only wish I'd seen your comment first of all, because you were also right about inserting the password without the username; Fortunately, I'm testing only, there is no problem when this code ended up changing the passwords of every single data entry that I did!

Tags: Adobe Animate

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.

  • 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/

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

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

  • Problem with PHP does not and in shape, that I can't get rid of the Extra space

    This is my first time doing a form, much less using php. I would appreciate your help on the following issues.

    1. in the form when you go to the site there is too much vertical space between the fields in the form.

    2. the field Message a script inside that vistors can see.

    3. the hit the button send, it redirects me to a blank page and no thankyou.html page I had created.

    4 form is not send the email to [email protected]

    Web site URL: http://stickmancustoms.com/contact.html

    <! - FORM CODE STARTS HERE - >

    <? PHP session_start();? >

    <? PHP

    If (array_key_exists ('submit', $_POST)) {}

    check the name field

    $name = trim($_POST['name']);

    If (empty ($name)) {}

    $error ['name'] = "Please enter your first name";

    }

    Else if ($name == "Please provide your first name") {}

    $error ['name'] = ";

    }

    $_SESSION ['name'] = $_POST ['name'];

    check the phone field

    $phone = trim($_POST['phone']);

    If (empty ($phone)) {}

    $error ['phone'] = 'Please enter your last name. "

    }

    else if ($phone == "Please provide your last name") {}

    $error ["phone"] = ";

    }

    $_SESSION ['phone'] = $_POST ['phone'];

    check the email field

    $email = trim($_POST['email']);

    If (empty ($email)) {}

    $error ['email'] = 'Please enter your email address ';

    }

    else if ($email = 'Please enter your email address') {}

    $error ['email'] = ";

    }

    $_SESSION ['email'] = $_POST ['email'];

    check the field of inquiry

    $message = trim($_POST['message']);

    If (empty ($message)) {}

    $error ['message'] = 'Please enter your message details. "

    }

    ElseIf ($message = "Please enter the details of your message") {}

    $error ['message'] = ";

    }

    $_SESSION ['message'] = $_POST ['message'];

    If (! empty($_POST['ufo'])) {return false ;}

    recipient

    $to = " [email protected] "; email address - set up your own email

    subject of the e-mail

    $subject = "I am interested in your services, please contact me."

    sender

    $sender = "from:". " $_POST ['email']. » \r\n » ;

    build the message

    $enquiry = "name: $name\n\n;

    $enquiry. = "Name: $phone\n\n";

    $enquiry. = "e-mail address: $email\n\n";

    $enquiry. = "message: $message\n\n";

    Send email if no form errors is

    If (! isset ($error)) {}

    mail ($ $subject, $enquiry, $sender);

    Header ("Location: thankyou.html").        Redirect page - set up your own page

    }

    }

    ? >

    CONTACT WEB PAGE CODE BELOW

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "auto repair, accidents, custom painting, customizing, auto repair, paint job, hot rod, motorcycle, cycle, bicycle, chopper.

    Content = "at StickMan customs we provide a personalized service with a smile. With over 20 years of experience in the auto repair and customization, you can be sure that we will meet your expectations and beyond. "/ >"

    < name meta = "google-site-verification" content = ""-41pB0MQUYT1Vbv1SId8WcU2lqEmFf0u23Sl3NY24CE "/ >"

    < title > Stickman customs < /title >

    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"

    < link href = "smc.css" rel = "stylesheet" type = "text/css" / > "

    < style type = "text/css" >

    <!--

    a: visited {}

    color: #F4781E;

    }

    ->

    < / style >

    < / head >

    < body bgcolor = "#000000" >

    < table width = "936" height = "200" border = "0" align = "center" >

    < b >

    "< td height ="196"valign ="top"> < class p ="style1"> < a href =" index.html"target ="_self"> < a href =" index.html "target ="_self"> < img src =" images/smcbanner.jpg"width = '936' height = '194' border = '0' well ="#Map"/ > < / has >"

    < name of the map 'Map' id = 'Card' = >

    < area shape = "rect" coords = "97,7,289,190" href = "index.html" target = "_self" / > "

    < area shape = "rect" coords = "290,156,380,189" href = "about.html" target = "_self" / > "

    < area shape = "rect" coords = "396,159,550,190" href = "repair.html" target = "_self" / > "

    < area shape = "rect" coords = "561,159,619,190" href = "cars.html" target = "_self" / > "

    < area shape = "rect" coords = "627,159,703,188" href = "cycles.html" target = "_self" / > "

    < area shape = "rect" coords = "711,160,885,190" href = "projects.html' target ="_self"/ >"

    < area shape = "rect" coords = "734,23,917,78" href = "contact.html" target = "_self" / > "

    < area shape = "rect" coords = "786,175,787,176" href = "#" / >

    < / map >

    < /p >

    < table width = "936" border = "0" align = "center" cellpadding = "5" cellspacing = "5" >

    < b >

    < td width = "512" height = "450" valign = "top" > < class p = "Headers" > < img src = "images/car1.jpg" width = "432" height = "432" / > < / p > < table > "

    < td width = "389" height = "450" valign = "top" > < form id = "enquiryForm" name = "enquiryForm" method = "post" action = "contact.php" >

    < h1 > < span class = "BodyBold" > contact us </span > < / h1 >

    < h1 > < span class = "BodyCopy" > * required information </span > < / h1 >

    < h1 > < span class = "BodyBold" >

    < label for 'Name' = > name * < / label >

    </span >

    < input type = "text" name = "name" id = 'name' <? PHP if (isset ($error ['first_name'])) echo "style =' border: 1px #C00 solid;" color: #C00; "« ; ? > value = "<?" PHP if (isset ($name)) {echo $name ;}? > <? PHP if (isset ($error ['first_name'])) echo $error ['name'];? "" > "onfocus ="this.value ="" / >

    < / h1 >

    < p >

    < label for = 'Name' class = "BodyBold" > phone * < / label >

    < input type = "text" name = "Phone" id = 'phone' <? PHP if (isset ($error ['phone'])) echo "style =' border: 1px solid #C00;" color: #C00; "« ; ? > value = "<?" PHP if (isset ($phone)) {echo $phone ;}? > <? PHP if (isset ($error ['phone'])) echo $error ['phone'];? "" > "onfocus ="this.value ="" / >

    < p >

    < label for class = "email" = "BodyBold" > Email * < / label >

    < input type = "text" name = "email" id = "email" <? PHP if (isset ($error ['email'])) echo "style =' border: 1px solid #C00;" color: #C00; "« ; ? > value = "<?" PHP if (isset ($email)) {echo $email ;}? > <? PHP if (isset ($error ['email'])) echo $error ['email'];? "" > "onfocus ="this.value ="" / >

    < style p = "" padding-bottom: 0; ">"

    < label for the category 'investigation' == 'BodyBold' > Message * < / label >

    < br / >

    < textarea name = "message" id = 'message' <? PHP if (isset ($error ['message'])) echo "style =" border: 1px solid #C00; "» color: #C00; "« ; ? > onfocus = "' this.value =" "> <?" If (isset ($message)) {echo $message ;} php? > <? PHP if (isset ($error ['message'])) echo $error ['message'];? >

    < / textarea >

    < /p >

    < p >

    < input type = "text" name = "ufo" style = "" display: none; "/ >"

    < input type = "submit" id = "submitButton" name = "submit" value = "Submit" / >

    < /p >

    < / form > < table >

    < /tr >

    < / table > < table >

    < /tr >

    < /table >

    < table width = "936" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >

    < b >

    < td > < div align = "center" >

    < div align = "center" class = "bottomlinks" >

    < p > < a href = "about.html" target = "_self" > < br / > "

    About us < img src = "images/space.jpg" alt = "s" width = "18" height = "7" border = "0" / > < /a > | " "" < a href = "index.html" target = "_self" > < img src = "images/space.jpg" alt = "s" width = "18" height = "7" border = "0" / > < /a > < a href = "repair.html" target = "_self" > ACCIDENT REPAIR < /a > < a href = "index.html" target = "_self" > < img src = "images/space.jpg" alt = "s" width = "18" height = "7" border = "0" / > < / has > | " "" < a href = "index.html" target = "_self" > < img src = "images/space.jpg" alt = "s" width = "18" height = "7" border = "0" / > < /a > < a href = "cars.html" target = "_self" > CARS < /a > < a href = "index.html" target = "_self" > < img src = "images/space.jpg" alt = "s" width = "18" height = "7" border = "0" / > < / has > | " "" < a href = "index.html" target = "_self" > < img src = "images/space.jpg" alt = "s" width = "18" height = "7" border = "0" / > < /a > < a href = "cycles.html" target = "_self" > CYCLES < /a > < a href = "index.html" target = "_self" > < img src = "images/space.jpg" alt = "s" width = "18" height = "7" border = "0" / > < / has > | " "< a href =" index.html"target ="_self"> < img src =" images/space.jpg "alt ="s"width ="18"height ="7"border ="0"/ > < /a > < a href =" projects.html' target = "_self" > SPECIAL PROJECTS < /a > < /p > "

    < class p = "Address_Text" > StickMan customs < br / >

    800 Rd Mooresville, Kannapolis, NC 28081 < br / >

    704.699.5110 < /p >

    < / div >

    < class p = "style74" > < span class = "atb_text" > Designed & amp; Hosted by </span > < br / >

    " < a href =" http://www.abovethebarrdesign.com " " target = "_self" > < img src = "images/atbd.jpg" alt = "1" width = "155" height = "77" border = "0" / > < /a > < br / >

    < /p >

    < / div > < table >

    < /tr >

    < /table >

    < / body >

    < / html >

    <!-text below generated by server. Please REMOVE-->

    <!-code counter/statistics-> data collection

    " < script language ="JavaScript"src =" http://us.js2.yimg.com/us.js.yimg.com/lib/SMB/js/hosting/CP/js_source/whv2_001.js "type =" text/javascript"> < / script > "

    < script language = "JavaScript" type = "text/javascript" > geovisit(); < /script >

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < noscript >

    " < img src = ' http://visit.webhosting.Yahoo.com/visit.gif?us1262644054 "alt ="setstats"border ="0"width ="1"height ="1"/ > "

    < / noscript >

    < / html >

    LannBarr wrote:

    It is a response to these two David & Osgood,

    If (! isset ($error)) {}

    mail ($ $subject, $enquiry, $sender);

    Header ("Location: http://www.stickmancustoms.com/thankyou.html");  Redirect page - set up your own page

    }

    }

    ?>

    Change the bit above the code php as below:

    If (! isset ($error)) {}

    mail ($ $subject, $enquiry, $sender);

    echo ' ';

    }

    }

    ?>

  • Horizontal/vertical repeat region PhP/MySQL

    Hi guys,.

    I'm sure that this issue would have been requested many times before. If so, my apologies for the re - this announcement first.

    In any case, what I'm trying to do is create a repeat region that spans 4 columns and then repeat the rest in rows. For example, if I have 100 records in my table (MySQL), so I want to display in a table of 4 columns and 25 rows and (in reality, the number of records would be indeterminate, of course, but still records must be displayed on a 4 X line table column). For example:

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    name

    Comment

    For the moment, I have no problem with displaying the records vertically or horizontally (explicitly) by using the behavior 'repeat region. However, when I have the problem is with displaying records in a table like the one I described above.

    I use PS CS5 with PhP/MySQL.

    Can I still do this in server behavior "repeat region", using the If yes how?

    Otherwise, if not, how could I achieve this (ideally without using extensions)?

    Thanks in advance for any help and support,

    See you soon

    The Horizontal Looper to Tom Muck is perhaps something for you:

    http://www.Tom-Muck.com/extensions/

  • Problem with links in Dreamweaver CS3 site root

    I have problems with the links from the root of the site when I'm working on my localhost with Dreamweaver CS3.

    I'm building a site with PHP, MySQL using the WAMP server. I have a page (www.site.com/index.php) I want to copy in the subdirectories (e.g. www.site.com/about/index.php) then I want to do the copy as painless as possible by using the links from the site root (e.g. /about/index.php). It works on the internet but NOT on localhost.

    Why is this? What can we do? Is there a fix if it is a bug? This seems like a simple thing, but it's such a problem.

    > Why is it?

    Because when your (local) server see is you run to the
    ROOT, he goes to ITS root, and rather than the Web site root (for example, htdocs or Inetpub).
    You can work around this by using virtual hosts (google it).

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "KBwebpro" wrote in message
    News:fr6g48$GS4$1@forums. Macromedia.com...
    > I have a problem with links from the root of the site when I'm working on my
    > localhost with Dreamweaver CS3.
    >
    > I am building a site with PHP, MySQL by using the WAMP server. I have a page
    > (
    (> www.site.com/index.php) I want to copy in the subdirectories (for example
    (> www.site.com/about/index.php) if I want to make as painless print
    > as
    > possible using links from the site root (e.g. /about/index.php). He
    > works
    > on the internet but NOT on localhost.
    >
    > Why is it? What can we do? Is there a fix if it is a bug? This
    > seems
    > like a simple thing but it's such a problem.
    >

  • Code PHP/mySQL help please

    Hi all

    Thanks to David Powers fab tutorial I am now well on my way to my first dynamic website with PHP/mySQL competeing, (thanks to David ), but I'm stuck on one particular area... can someone please help?

    I know that the mySQL database using the YYYY/MM/DD format for dates, and that's fine. I set how to display in a format more regular (for example, September 1, 2011) for my application, but I'm stuck on how to convert a more regular formatting date is entered by the user of the site to mySQL format.

    Ideally I would like to enter users or tell the 09/01/11 or 09/01/11 (or something in that sense, to be recognized and displayed on the registration form, but to have a back-end service that converts the data to the format mySQL. I think I'm reading a lot of posts forum who say that this is possible, but unfortunately I can't quite understand how or where the code should sit. Someone would have is not afraid to take a look at my page of codes to identify actually what I need to insert and also as important... where!

    Is it possible to have a miniature calendar date picker that can be built next to the entry field in the right format and date to make sure that a valid date is entered along these lines? Where this could be extracted?

    Thanks for help if necessary

    Mark

    GetSQLValueString (date('Y-m-d'), strtotime($_POST['date']), 'day'),

    Make this line looks like this-

    GetSQLValueString (date ('Y-m-in, strtotime($_POST['date'])), 'day'),

    This was my mistake - sorry.  The MySQL data type DATE should be in YYYY-MM-DD format.  If this is the data type of this field "date", and then copy the following code should work.

  • Recommend utility PHP/MySQL

    To save time, I am looking to buy application development software / tool box compatible with php / mysql.  One of the features I'm looking for is a upload of php via form upload script file. I know that the DMX box has separate program they sell.  Ideally I'd like a tool that does more than simply a function and not with a price high.

    If you could recommend some products, it would be appreciated.

    George

    When it comes to using a reasonable price "required no additional coding" software code generation PHP/MySQL, I ve always been very happy with PHPMAKER - but it is worth mentioning that there are many other tools out there as well who may meet your needs better than this so just one, google for "php code generator" to get a general idea about available today.

    See you soon,.

    Günter

  • How can I get the data in the foreign key?  PHP/mysql

    I managed to create registration, log-in and results pages appear for accounts of client with PHP/Mysql/Dreamweaver 8. I have another page for more information to be contained in a child table, I used the Insert Wizard to create. I can't make it work. I get either a foreign key cannot be null error or a foreign key constraint.

    If I include the foreign key in the form on the page, I can manually enter the appropriate identification number, and it works. How to automatically enter the id into the foreign key column?

    I got the authentication of users using e-mail, password and user type.

    Thanks for your help

    When someone connects, Dreamweaver creates a session variable called $_SESSION ['MM_Username"]. Use this session variable to create a recordset object to get the ID of the user, who can then be entered in the child table's foreign key field.

    Dreamweaver automatically updates the code for recordsets immediately above the DOCTYPE declaration, then you will need to move above the code for the server behavior insert record. So it must be in the following order:

    1. Recordset to get the user ID
    2. Insert the record to the child table
  • Problem with form PHP site designed in Adobe Muse?

    Hello friends, I just finished my first authority site design in the Adobe muse (www.healthieradults.com), and I seem to have a problem with my forms. First of all, I have very little or no experience in web programming, such as PHP to be precise. After uploading my Web site to host, I get an error message saying "PHP script is not configured properly on the Web hosting provider, check if the file has been uploaded correctly. I checked and made sure all my settings in muse are correct, but muse seem to be generating an error response in the file form_check.php on my server (www.healthieradults.com/scripts/form_check.php), I don't really know how all these php functions work, I downloaded the file and tried to not mess with it. Fixed in my email address in a place where I thought I'm supposed to, but still keeps giving me the same errors. You can see for yourself www.healthieradults.com. I need help please, maybe someone could show me how to configure the php properly script to work with my forms without errors...

    If you get the above error and get the same at http://www.healthieradults.com/scripts/form_check.php (which we are not able to open at our end), chances are that your host does not support PHP. Could you contact your hosting provider and confirm if your site has support for PHP and MySQL Server?

    Thank you

    Vikas

  • AS2 - problem with inserting of partition/name of the database/mysql

    Hello

    First of all... Sorry that I havn't put the ACE in a box, do not know how to do it on this forum!

    Okay, so here's my problem:

    I want to submit my score and the name in my database.

    This is the script I've tried Flash.

    Stop();

    create objects loadVars

    playerx = new LoadVars();

    playerRegistered = new LoadVars();

    playerRegistered.onLoad = showResult;

    create the button handler code to call the function that sends & load php

    _root.submitt.onRelease = submitScore;

    function submitScore (): Void {}

    playerx. Name = name_txt.text;

    playerx.score = score_txt.text;

    playerx.sendAndLoad ("register.php", playerRegistered);

    }

    This is the PHP script:

    <? PHP

    $connect = mysql_connect('x.com.mysql','x','password');

    @mysql_select_db ('x', $connect);

    $sql = "INSERT INTO high_scores_avoidthecars (name, score) VALUES ("'. ")" $_POST ['name']. '"," '. $_POST ['score'].'") ';"

    ? >

    Nothing is posted to the database, no errors etc... any ideas?

    If you went thru the link I provided you should see where you need to change the code that you did to get the Flash to work code.  Here is a link to an example of work that takes into account the second part of the code in this link that involves sending data (from line 28) with your textfields, etc.

    http://www.nedwebs.com/Flash/register.html

    The main problem with your AS2 code involves the following line...

    playerx.sendAndLoad ("register.php");

    It should be...

    playerx.sendAndLoad ("register.php", playerx. 'POST');

    Here's the code I used for the example files, I did...

    AS2 CODE

    playerx = new LoadVars();

    _root.submitt.onRelease = submitScore;

    function submitScore (): Void {}

    Response.Text = "clicked\n";

    playerx. Name = name_txt.text;

    playerx.score = score_txt.text;

    playerx.sendAndLoad ("register.php", playerx, "POST");

    }

    playerx.onLoad = onLoadCallBack;

    function onLoadCallBack (success)
    {
    Response.Text += "onLoad Processed\n";

    {if (success)}
    Response.Text += "Success\n;
    Response.Text += this.lVar1 + "\n";
    Response.Text += this.lVar2;
    } else {}
    Response.Text = "load error".
    }
    }

    PHP CODE

    <>
    read the variables
    $var1 = $_POST ['name'];
    $var2 = $_POST ['mark'];

    Send variables
    echo "& lVar1 = $var1 return &";.
    echo "& lVar2 = $var2 returned as well &";.
    ?>

  • Send an email with php and mysql

    I want a visitor to my site click on a field in mysql to email with a BCC to me also, I want the link to show 'Send an email' not the e-mail address of the field

    There is no way to hide a BCC address with a mailto link, because it just opens the e-mail program of the user with the address fields filled in.

    What I would recommend is to create a contact form, as described in Chapter 5 of PHP Solutions. Using PHP to send the form hides your email address and all BCC addresses. It appears from your description that the email will be sent to different people according to which the link is clicked. If this is the case, the programming becomes more complex, but you can solve this problem, once you have learned how to create a contact form and email with PHP.

    I hope PHP Solutions is sufficient for your needs, but I warn you to take Chapter 3 slowly. Do not try to memorize everything in Chapter 3. Just have a general idea for how the language is structured and re-enter the chapter whenever you need to refresh your memory. If you feel the need for another book, I think that the books of Visual Quick Start of Larry Ullman are good.

Maybe you are looking for

  • incompatibility of paperback page layout projects?

    Hi - I just finished a project of 20 pages in the Photos app (version 1.3 (350.23.0) on an older MacBook Air with OSx 10.11.2.) My question is how a flexible cover project looks in the application or in a PDF "Preview". I admit I have not received my

  • Envy 15 as020nr: SSD upgrade

    I want to upgrade the m2 SSD in my desire of greater size. How do I access the drive?

  • How can I free up disk space? I continue to have alerted it is low

    The original title: disk space I get a message that my disk space is insufficient, but when I go in files deleat it says there are no files, how free of disk space?

  • All programs open with windows media centar

    all programs open with Windows media centar one all the icons are modified and are windows media centar. What shell I do to fix the computer in the previous session. I can't open any program, it is any help windows media centar.pls

  • Problem 8.1 update

    When you are prompted to upgrade to 8.1 Windows, I get a message that I need to remove my Viper security program to complete the update.  I paid for the security program and to be invited to delete seems a bit odd unless Windows wants to reimburse me