Parse error: syntax error, unexpected waiting T_VARIABLE in line 47.

Using phpmyadmin I created a simple query and had introduced the program to create the php code, which reads as follows:

$sql = ' SELECT * FROM 'Donnees_personnelles' WHERE 1 ORDER BY ' Date and time 'ASC LIMIT 0, 30;

I copy and paste this statement in my code, parts of it are:

44. $con = mysql_connect ($localhost, $user $password);
45. $db = @mysql_select_db ($database) or die ("unable to select database");
46. $br = "< br / > '.
47. $sql = ' SELECT * FROM 'Donnees_personnelles' WHERE 1 ORDER BY ' Date and time 'ASC LIMIT 0, 30;
48. $result = mysql_query ($sql);
49 while ($row = mysql_fetch_array ($result))
50 {echo $row ["Ref_ID"]. " " . $row ["date and time"]. " " . $row ["ip_address"]. " " . $br;  }
51 mysql_free_result ($result);
52. mysql_close ($con);
53.? >

Why make this parse error in this "BOLD" line?

Watch online 46

46. $br ="
"

You must add a semicolon

46. $br ="
";

Gary

Tags: Dreamweaver

Similar Questions

  • XML Parsing Error: unexpected scanner place State: jar:file:///C:/Program%20Files%20 (x 86) /Mozilla%20Firefox/browser/omni.ja!/chrome/browser/content/browser/ab

    Madam/Sir,

    I log on this site everyday to make a contribution (http://theanimalrescuesite.greatergood.com/clickToGive/home.faces?siteId=3) and during the last three days, I was unable to connect. Today, I get this message: XML parsing error: State unexpected location parser: jar:file:///C:/Program%20Files%20 (x 86) /Mozilla%20Firefox/browser/omni.ja!/chrome/browser/content/browser/abt

    Best regards

    Peter

    What Firefox locale (UI language) do you use?

    Try a clean reinstall and delete the program folder before Firefox to (re) install a new copy of the current version of Firefox.

    If possible to uninstall your current version of Firefox to clean the Windows registry and settings in the security software.

    • Do NOT remove the "personal data" when you uninstall your current version of Firefox, because this will remove all profile folders and you lose personal data such as bookmarks and passwords including data profiles created by other versions of Firefox.

    Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.

    • (32-bit Windows) "C:\Program Files\Mozilla Firefox\"
    • (Windows 64 bit) "C:\Program Files (x 86) \Mozilla.

    Your bookmarks and other personal data are stored in the Firefox profile folder and will not be affected by a uninstall and (re) install, but do NOT delete personal data when you uninstall Firefox which removes all Firefox profile folders and you lose your data.

  • PHP/MySQL Parse error: syntax error, unexpected T_VARIABLE the meantime

    I am new to web programming and I'm testing my first PHP/MySQL of HTML data request.

    Already, I get the following error in the analysis:

    Parse error: syntax error, unexpected waiting T_VARIABLE... on line 7.

    Simple code is:

    <? PHP

    $pwd = $_POST ["password"];
    $dbn = $_POST ['database_name'];
    $hnm = $_POST ["hostname"];

    $link_id = mysql_connect ($hnm, $dbn, $pwd);       This is line 7 where I get the error message
    If (isset ($link_id))
    {
    $result = mysql_list_dbs ($link_id);
    echo $result;
    mysql_select_db("hppumps",$link_id);
    $result = mysql_list_tables("hppumps",$link_id);
    echo $result;
    $result = mysql_list_fields ("hppumps", "models");
    echo $result;
    $rows = mysql_affected_rows ($result);
    If ($rows < 1) {echo "error.  Registration has not been added to the database. « ;}
    else {echo "$rows response (s) has been added to the database." ;}}
    }
    on the other
    {
    echo "error.  You were unable to connect to the MySql database";
    }
    ? >

    ANY HELP WITH THIS WOULD BE GREATLY APPRECIATED!

    marcusinfla wrote:

    If it is an exact copy of your code, the problem here and not on the 7 line.

    Do not space between the question mark and the php. The opening PHP tag should look like this:

    		   
  • Dreamweaver has stopped working. Fatal XML parsing error: an invalid document, Tried reloading DW line1 structure. Did not work.

    Dreamweaver (CS5) has stopped working.  Says the error message - fatal XML parsing error: an invalid document structure, line: 1, I tried to reload DW. No change. I also tried to reset the computer to an earlier date before I rebooted. Also, did not work. Anyone can shed some light?

    The first thing to try is the removal of corrupt Cache.  Don't forget to turn on the files and hidden folders in your file (Win Explorer or Finder of Mac) Manager.

    http://forums.Adobe.com/thread/494811

    If this does not help, try to restore preferences

    http://helpx.Adobe.com/Dreamweaver/KB/restore-preferences-Dreamweaver-CS4-CS5.html

    If all else fails, use the cleanup of CC tools below to wipe your system DW, followed by a re - install software.

    http://helpx.Adobe.com/Creative-Suite/KB/CS5-cleaner-tool-installation-problems.html

    Keep us posted on your results.

    Nancy O.

  • XML parsing error fatal... Can I uninstall and reinstall DW CS4 without losing my job?

    I have a big problem with Dreamweaver CS4 for Mac. When I want to start DW I get this error that goes something like this: fatal XML parsing error: an invalid document structure, line: 1, file: / filepath/John Workspace.xmlPicture 1.png

    I click ok and get this:

    Picture 2.png

    Click on ok and close DW. It gives me no chance to change preferences or whatever it is.

    Picture 3.png

    It seems that I need to uninstall and reinstall. What do you recommend? Do I lose all the work I did on the previous sites?

    I don't think that there is no need to reinstall. Go to the specified location and delete Workspace.xml of John. Then try to run Dreamweaver. If Dreamweaver still will not start. remove the entire Configuration folder. Dreamweaver should then create a fresh Configuration file the next time you start.

    Reinstall without getting rid of the folder Configuration will achieve nothing, because the Configuration file is not deleted when reinstalling. If the Configuration file is damaged, the problems will continue until the corrupted file is deleted.

  • Help PHP - Parse error: syntax error, unexpected T_VARIABLE the meantime

    Hello

    Just wiondered if anyone can help, I edited the files as requested:-

    // 1. Enter the name of your slideshow
    $slideshow = "HolyportFC".

    // 2. Enter the URL of your site (no trailing slash)
    $siteURL = " " http://www.thevillagers.co.UK "

    // 3. Enter the absolute path of your site on the server (without slash)
    $sitePath = ' home/thevilla/public_html ".

    Include the slideshow
    include_once ($sitePath. ("" / fpss/fpss.php "); DO NOT CHANGE THIS LINE

    But on the PHP example display, I get: -.


    Parse error: syntax error, unexpected T_VARIABLE the meantime in /home/thevilla/public_html/example.php on line 43

    Wondering if anyone could tell me my mistake?

    Thank you

    Richard

    I'm not a mind reader: do not know what you are referring to measures or what your code is, especially to line 43 where the error message occurs. It is helpful if you describe exactly what you're doing and your code. Put a semicolon after each line that declares a variable where the unexpected error message variable

    for example:

    $slideshow = "HolyportFC";

  • Parse error: syntax error, unexpected T_STRING, expecting ', ' or ';' - HELP PLEASE

    On a file for a deletion of records in MYSQL, I have a problem with the code, all other features works great execpt the record removal tool

    The problem is on line 96;

    <td><a href="deleterecprd.php?recordID=<?php echo  $row_ recordsetName [' fieldName ']; ?>"><?php echo $row_Recordset1['Date']; ?></a></td>
    

    The problem is;

    Parse error: syntax error, unexpected T_STRING, expecting ', ' or ';'

    I am running PHP 5.2 / MYSQL 5.1.57

    Thank you

    You have an involuntary space where I put a X:

    $row_XrecordsetName

  • Parse error: syntax error, unexpected $end

    I have the following code in a file to reformat the date.

    <?php do { 
    $timeDate = $row_rsIndex['timeDate'];
    $date = date("M j, Y",strtotime("$timeDate"));
    ?>
    

    When I use this code in another file to reformat the date, I get this error. "Parse error: syntax error, unexpected $end in /home/content/e/v/e/everfoundmusic/html/test/tour_main.php on line 148"

    Is that what the problem of ideas? I tried Googling it but has not found an answer.

    Here is the php.

    <?php require_once('Connections/everfoundapp.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
    {
      if (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 "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      }
      return $theValue;
    }
    }
    
    mysql_select_db($database_everfoundapp, $everfoundapp);
    $query_rsIndex = "SELECT * FROM tour WHERE timeDate >= CURDATE() ORDER BY timeDate DESC";
    $rsIndex = mysql_query($query_rsIndex, $everfoundapp) or die(mysql_error());
    $row_rsIndex = mysql_fetch_assoc($rsIndex);
    $totalRows_rsIndex = mysql_num_rows($rsIndex);
    
    $colname_rsDetails = "-1";
    if (isset($_GET['id'])) {
      $colname_rsDetails = $_GET['id'];
    }
    mysql_select_db($database_everfoundapp, $everfoundapp);
    $query_rsDetails = sprintf("SELECT * FROM tour WHERE id = %s", GetSQLValueString($colname_rsDetails, "int"));
    $rsDetails = mysql_query($query_rsDetails, $everfoundapp) or die(mysql_error());
    $row_rsDetails = mysql_fetch_assoc($rsDetails);
    $totalRows_rsDetails = mysql_num_rows($rsDetails);
    ?>
    
    
    <?php do { 
    $timeDate = $row_rsIndex['timeDate'];
    $date = date("M j, Y",strtotime("$timeDate"));
    ?>
              
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Tour Schedule</title>
    <link href="style_tour_main.css" rel="stylesheet" type="text/css" />
    </head>
    
    <body>
    <?php
    // Show IF id not sent
    if (@$_GET['id'] == "") {
    ?>
    
    <table width="608" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <th width="60" align="left" valign="top" scope="row"><strong>Date</strong></th>
        <td width="150" align="left" valign="top"><strong>City | State</strong></td>
        <td width="247" height="30" align="left" valign="top"><strong>Venue</strong></td>
        <td width="161" align="left" valign="top"><strong>Info</strong></td>
      </tr>
    </table>
    <!-- START index -->
        
         <table width="608" border="0" cellpadding="0" cellspacing="0">
             
          <?php do { ?>
          <tr>
                <td width="60" height="19" align="left" valign="top"><a href="tour_main.php?id=<?php echo $row_rsIndex['id']; ?>"><?php echo $row_rsIndex['timeDate']; ?><br />
                </a></td>
    <td width="150" align="left" valign="top"><a href="tour.php?id=<?php echo $row_rsIndex['id']; ?>"> </a><a href="tour_main.php?id=<?php echo $row_rsIndex['id']; ?>"><?php echo $row_rsIndex['addrCity']; ?>, </a><a href="tour_main.php?id=<?php echo $row_rsIndex['id']; ?>"><?php echo $row_rsIndex['addrState']; ?></a></td>
            <td width="247" align="left" valign="top"><a href="tour_main.php?id=<?php echo $row_rsIndex['id']; ?>"><?php echo $row_rsIndex['venue']; ?></a></td>
            <td width="161" align="left" valign="top"><a href="tour_main.php?id=<?php echo $row_rsIndex['id']; ?>"><em>MORE INFO</em></a></td>
          </tr>
          <tr>
            <td colspan="4" align="left" valign="top" class="space">  </td>
          </tr>
          <?php } while ($row_rsIndex = mysql_fetch_assoc($rsIndex)); ?>
    </table>
    <!-- END index -->
    
    
    <!-- START details -->
    <? } else { ?>
    
    
    <h6><a href="tour_main.php">&laquo; Back to Tour Schedule</a></h6>
    <h1><?php echo $row_rsDetails['timeDate']; ?> - <?php echo $row_rsDetails['addrCity']; ?>, <?php echo $row_rsDetails['addrState']; ?></h1>
    
    <table cellspacing="4">
      <tr>
             <td width="61"><b>Time:</b></td>
            <td width="207" class="dtext"><?php echo $row_rsDetails['timeTime']; ?></td>
        </tr>
        
        <tr>
             <td><b>Venue:</b></td>
            <td class="dtext"><?php echo $row_rsDetails['venue']; ?></td>
        </tr>
        
        <tr>
             <td valign="top"><b>Location:</b></td>
            <td class="dtext"><?php echo $row_rsDetails['addrAddress']; ?><br />
                   <?php echo $row_rsDetails['addrCity']; ?>, <?php echo $row_rsDetails['addrState']; ?> <?php echo $row_rsDetails['addrZip']; ?><br />
           <?php echo $row_rsDetails['addrCountry']; ?></td>
        </tr>
        
        <tr>
             <td><b>Cost:</b></td>
            <td class="dtext">$<?php echo $row_rsDetails['cost']; ?></td>
        </tr>
        
        <tr>
             <td valign="top"><b>Details:</b></td>
            <td class="dtext"><?php echo $row_rsDetails['description']; ?></td>
        </tr>
    </table>
    
    
    <?php }
    // endif id is sent
    ?>
    <!-- END details -->
    </body>
    </html>
    <?php
    mysql_free_result($rsIndex);
    
    mysql_free_result($rsDetails);
    ?>
    

    Hello.. You should change it

    
    
         

    for this

    
    
         
    ">
    $timeDate = $row_rsIndex['timeDate']; $date = date("M j, Y",strtotime("$timeDate")); ?>
  • "VMware converter-all-4.3.0 - 292238.exe NetBSD conversion starts do not/vmware-sysinfo - lin32.sh" received the error code (2) result:. / vmware-sysinfo-lin32: 1: syntax error: "(" unexpected

    Someone at - it successfully converted NetBSD? Thank you.

    Need to VMWARE Converter: Support for NetBSD 3.0 and later, please. I get the below error

    VMware Converter Standalone GUI show me this message: failed to query the source of linux computer

    = vmware-converter-worker - 5.log =.

    [#3] [2011-02-02 09:23:15.300 03084 info "App"] Results of the query to the host 172.30.2.48
    [#3] [2011-02-02 09:23:20.494 03084 error "App"] [Converter Agent SysinfoQuery] while trying to run "C:\Program VMware vCenter Converter Standalone\plink.exe - noprompt - stdin - Pei 22 [email protected] cd nokeycheck /tmp/.vmware-sysinfo-udhrkaaejqfyrfgf/;.» "/ vmware-sysinfo - lin32.sh" received the error code (2) result:. / vmware-sysinfo-lin32: 1: syntax error: "(" unexpected
    [#3]
    [#3] [2011-02-02 09:23:20.494 03084 error "App"] [Converter Agent SysinfoQuery] received an error code (2) of the ssh client which is dealt with later
    [#3] [2011-02-02 09:23:20.494 03084 error "App"] [Converter Agent SysinfoQuery] vmware-sysinfo execution failed; return code: 2; result:. / vmware-sysinfo-lin32: 1: syntax error: "(" unexpected
    [#3]
    [#3] [2011-02-02 09:23:20.494 03084 error "App"] [Converter Agent SysinfoQuery] Query(): Took exception, cleanup before you bail out ([converter Agent SysinfoQuery] implementation of vmware-sysinfo failed; return code: 2; result:. / vmware-sysinfo-lin32: 1: syntax error: "(" unexpected)
    [#3] )
    [#3] [2011-02-02 09:23:21.296 03084 error "App"] [Converter Agent SysinfoQuery] while trying to run "C:\Program VMware vCenter Converter Standalone\plink.exe - noprompt - stdin - Pei 22 [email protected] cat /tmp/.vmware-sysinfo-udhrkaaejqfyrfgf/vmware-sysinfo.log nokeycheck" received the error code (1) result: Cat: /tmp/.vmware-sysinfo-udhrkaaejqfyrfgf/vmware-sysinfo.log: no such file or directory
    [#3]
    [#3] [2011-02-02 09:23:21.296 03084 error "App"] [Converter Agent SysinfoQuery] received an error code (1) of the ssh client which is dealt with later
    [#3] [2011-02-02 09:23:21.296 03084 error "App"] Converter SysinfoQuery the Agent failed to retrieve the log file. return code: 1; result: Cat: /tmp/.vmware-sysinfo-udhrkaaejqfyrfgf/vmware-sysinfo.log: no such file or directory
    [#3]
    [#3] [2011-02-02 09:23:21.998 03084 error "App"] SysInfo query failed with error [converter Agent SysinfoQuery] implementation of vmware-sysinfo failed; return code: 2; result:. / vmware-sysinfo-lin32: 1: syntax error: "(" unexpected
    [#3]
    [#3] [2011-02-02 09:23:21.998 03084 info "App"] Programmed timer cancelled, succeeds StopKeepAlive
    [#3] [2011-02-02 09:23:32.240 04928 info "App"] [Converter.Worker.DiagnosticManagerImpl] build LogBundle.

    You are using a generic NetBSD kernel?

    so I think that it is similar to the Open and FreeBSD.

    hotclone is the waste of time - it won't work.

    Use Coldclone - or dd the entire disk - write a descriptor for him then and use it as vmdk.

    In the other BSD systems I boot first time in single user mode - as everything else probably does not work.
    Can I fix fstab and etc/rc.conf if necessary

    I'm in a hurry - if you need details for dd-road let me know and I explain a bit...

    Ulli

  • XML Parsing Error: syntax error

    Hello

    We are on Apps - 11.5.10.2
    DB - 10.2.0.4

    OS-RHEL 4.6


    XML Parsing Error: syntax error
    Location: http://rfdbs3.midbs.com:8000/OA_CGI/FNDWRR.exe?temp_id=670171076
    Number of line 1, column 31:
    Steps to follow:
    1 developed a report in 10 g
    2 developed a rtf
    3 Registed the report in XML Publisher
    4. run simultaneous applications

    Whil runs the program Im getting the above error

    If I create its working fine office xml file


    Thank you
    Valla

    Published by: user13025265 on December 28, 2010 21:47

    1 developed a report in 10 g

    Since you're on 11.5.10.2, you must use Developer 6i that reports 10g is not certified with 11i

    Thank you
    Hussein

  • about syntax error unexpected token ' (')

    I wrote a script that having several select statement table of multiples. When I run this script on solaris server it gives error note "about syntax error unexpected token ' ('". ")" can I get an example, how do I write this script. I want xml output which should be send to my email_id

    You try to run the script in your shell?
    If so, you must connect to sqlplus or your client before running select it, as in:

    Create a file containing the queue and select
    MySQL.SQL:

    spool /tmp/script_output.xml
    
    SELECT DISTINCT ...;
    
    spool off
    
    exit
    

    now the shell script should be something like:

    #! /usr/bin/ksh
    # Auth MY_Name
    # Script for SCRIPT_NAME
    
    sqlplus user/password@tnsname @mysql.sql
    
    #echo "script_name" | mail -s "script_name" [email protected]
    
    mail -s "script_name" [email protected]< script_output.xml
    
    exit 0;
    

    Oh - and check your selection works in sqlplus first...
    I'm not strong in unix so no help if this isn't the problem.

    Published by: Pyrocks on December 28, 2010 11:01 - withdrawn the request according to the demand of users

  • Error message when opened in the browser - parse error?

    I'm having this problem when I use the image upload server behavior in my PHP file.  Does anyone have an explanation of this error when I open it in a browser?

    There is also a red exclamation mark next to the server behavior.  Is there a place in Dreamweaver that tells me where the error occurs (in Flash)?

    Parse error: syntax error, unexpected $end in... .line 308

    Thanks for your help!

    Balance braces woudn't fix. It's actually a rather obscure PHP function that triggers an error, even if the code is technically correct. Before dealing with that, you download twice form on your page, once in the wrong place and at the right place.

    You must remove the form located on lines 2-25.

    What causes the parse error is how the loop in the dynamic form was built. Change the code at the bottom of the form that is in the body of the page like this:

      /*start dynamic form*/
      for($x=0;$x<$inputfiles;$x++){
        echo "
        
    "; } /*end dynamic form*/ ?>

    The problem was that the loop is contained in the HTML code. Normally, it's not a problem, but the PHP parser has been offended and decided to not play ball. Remove the HTML code and using echo to display it, solves the problem.

    I can't comment on the question of whether the rest of the code is OK. You should check with the person who creates the code for you. But the error has been resolved.

  • PHP Parse Error

    I'm new to PHP in Dreamweaver somehwat but understand it well enough to be totally confused as to why I get the following error when the page is loaded:

    Parse error: syntax error, unexpected ' {'}

    Help!

    Thank you, David. Who did the trick. Cut and paste the code that has errors in it... Beginner indeed.

    Just finished your book last week, was an excellent introduction to PHP & DW8, really useful.

    See you soon.

  • Opening questions about Mac Catalog: "error unexpected opening catalog."

    I use OS x Yosemite 10.10.5 with Lightroom 6. Everything worked fine, but now it displays "error unexpected opening catalog." I tried to create a catalog, it always shows error. Now all files in light gray that seems like I can't open at all.

    I installed another copy on Windows 7 today, why has this problem of catalog? I was told that I can use on both machines at least.

    Help, please. This is the type of emergency.

    Wayne

    Hi Geoff, I restore my mac time machine. Now my LR works very well. Because of the urgent things, I can't wait any longer. Please close this ticket. If this happen again. I'll ask again for your help. Thanks anyway.

  • Error after installing FF34 on FF33: XML Parsing Error: undefined entity WebIDE

    Hello
    After installing FF34 on FF33 I get a window with this message when I close windows firefox closes too:

    XML parsing error: undefined entity
    Location: chrome://browser/content/browser.xul
    Line number 320, column 5: key < = "" command = "tools: WebIDE ' id = 'key_webide' keycode =" & amp; webide.keycode; "p =" ">."
    < / key >

    ^

    What Firefox locale (UI language) do you use?

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • Maybe you are looking for

    • I want to clone firefox in new PC .but forgotten password

      I am 81. I remember yesterday...

    • Not showing on iCloud Photos photostream

      My Photo Gallery shows on all devices (Mac, Photos of the iPhone), but not in the iCloud section Photo (browser accessed iCloud!) Photo Mediathek is disabled on all devices. Is this a bug? I deactivated and reactivated "my photo stream" on all device

    • don't want no sidebar facebook chat, how to get rid of it

      Today, asked me if I wanted the ichat facebook from firefox. I did not understand that such was the case said yes, but it's embarrassing and I don't want on each open window. How do I don't unplug it?

    • Satellite L30 - 10W shows 894 MB of RAM only

      Hello With advance sorry for my English. I'm Polish and I use Google Translate because I know too much English but I think that you can somehow not the TRAINER TR? in spearwood.I have a problem that really bothers me. Namely, the laptop I installed 1

    • resample behaving badly

      Why not resample.vi (in GIS proc. Toolbox, LV 8.6) sometimes make mistakes? VI attached gives error when input file = .txt and decimation factor (DF) = 6 hz sin0.10, attenuation = 40, BW = 0.25. Error-20076 occurred at NI_AALPro.lvlib:AAL resample (c

    ">$date; ?>