{syntax error: found 'integer constant' wait '}'

I just added Toolkit measure Spectral 2.6.2 to my project to fix link errors.  {An error, a syntax error: found 'integer constant' wait '}', is generated by the typedef enum for AnalysisLibWindowType in advanlys.h.  The syntax seems correct.

Error was caused by creating a def type with the same name as a constant or a variable previously defined.  The problem had nothing to do with the syntax error generated.  Thank you for your help.

Tags: NI Software

Similar Questions

  • RMAN-01005: syntax error:

    Hi all

    I have a backup script as below
    RUN {
    ALLOCATE CHANNEL ch00 TYPE DISK FORMAT 'E:\BACKUP\rmanbackup\db\%d_DB_%u_%s_%p';
    ####crosscheck backup;
    backup
    filesperset 4
    INCREMENTAL LEVEL 0 AS COMPRESSED BACKUPSET database include current controlfile;
    sql "alter system archive log current";
    release channel ch00;
    ALLOCATE CHANNEL CH01 TYPE DISK FORMAT 'E:\BACKUP\rmanbackup\ar\al_%U';
    backup
    filesperset 4
    AS COMPRESSED BACKUPSET archivelog all delete input;
    restore database validate;
    delete noprompt archivelog until time 'SYSDATE-1';
    ###delete backup completed before 'sysdate-1';
    delete obsolete device type disk;
    RELEASE CHANNEL CH01;
    }
    It gives the following error
    RMAN-06091: no channel allocated for maintenance (of an appropriate type)
    I have search the Internet and find the following command
     allocate channel for maintenance type disk;
    delete obsolete device type disk;
    but it gives the following error
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found "for": expecting one of: "channel_id, double-quoted-string, equal, identifier, single-quoted-string"
    I think my rman is not recognize the command.
    my version of oracle's
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
    PL/SQL Release 10.1.0.2.0 - Production
    CORE    10.1.0.2.0      Production
    TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
    NLSRTL Version 10.1.0.2.0 - Production
    Kindly help.

    "ALLOCATE CHANNEL FOR MAINTENANCE" should not be used as a block RUN

  • Get the syntax error when you try to reproduce in the auxiliary database

    I get the following error message when you try to duplicate an instance:

    D:\ > rman target sys/xxx@hr3 rmancat/xxx@rman AUXILIARY catalogue.

    Recovery Manager: release 9.2.0.7.0 - Production

    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.

    connected to target database: HR3 (DBID = 3470722132)
    connected to the recovery catalog database
    connected to the auxiliary database: CLONE (unassembled)

    RMAN > DATABASE of TARGET in DOUBLES at THE CLONE until TIME ' TO_DATE (February 24, 2011 0:00:06).
    (0 ',' JJ-MM-AAAA HH24:MI:SS') ".

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-00558: error occurred during parsing of order entry
    RMAN-01005: syntax error: found 'clone': expected an a: 'double-quoted-string '.
    identifier, single-quoted-string ".
    RMAN-01007: 30 line 1 column file: entry standard

    Is it because I named the cloned database "CLONE", and that is a reserved word for Oracle, or is this something else that I missed?

    Thanks for any response...
    / Ronny

    Hello

    Is it because I named the cloned database "CLONE", and that is a reserved word for Oracle, or is this something else that I missed?

    Fix this error related to the keyword.
    You can run into a new problem in function if your configuration is incorrect.
    (backup items available on the clone host, file systems, settings etc..)
    Rgds,
    Tycho

  • 1084: syntax error: wait leftbrace before expanding

    Hi all.  Don't know what is happening here.  I'm trying to perfect my knowledge AS 3.0.  I get this error message and it is a code snippet that I copied and it ran.  I get the same error "1084: syntax error: wait leftbrace before spreading".  Can someone tell me where I'm wrong?  Here's the code.

    package

    {

    import flash.display.MovieClip;

    public class ActionScriptTest extend MovieClip {}

    public void ActionScriptTest() {}

    init();

    }

    private function init (): void {}

    var bookTitle:String = 'Bases '.

    trace (bookTitle);

    }

    }

    }

    Try to use "extends" instead of "extend".

  • I install windows xp on a sony laptop. I created a new formatted partition but I get a fatal error message: "syntax error:"D:\I386\asms\10\MSFT\WINDOWS\GDIPLUS\GDIPLUS. " MAN. "

    I install windows xp on a sony laptop. I created a new formatted partition but I get a fatal error message.  one of the components that windows needs to continue Setup could not be installed. Manifest Parse Error: an invalid character was found in text content. Connect the system configuration error: SXS. DLL:syntax error in manifest or policy file "D:\I386\asms\10\MSFT\WINDOWS\GDIPLUS\GDIPLUS. MAN 'at line 0. I bought the oem software installation disc. I bought the computer used and did not get any disk with it. Help, please

    1 person got this response
    Shawn thought it was bad media so I'm a new disc and received the same error does anyone have an idea what might cause this error?

    original title: install windows xp

    Hi sptusch,

    Thanks for posting. Is it a burned disc? If this is you please redownload the image. Also, try the following.

    1. place your Windows XP installation CD and start to her...
    2. Press any button to start the Windows installation (don't worry... we do not actually use the installer at this point)
    3. wait a few moments for the installation program starts, when you see repair an installation of Windows XP using the Recovery Console, and then press the R key
    4. wait until you see this screen, enter the number of your master installation. (Typically 1 to C:\Windows)
    5. press ENTER.
    6. If you are prompted to do so, enter your administrator password. If you don't have one, leave the field blank and press to enter.
    7. from the command prompt, type: chkdsk/r (note the space between chkdsk and / r)
    Allow it to complete undisturbed.
    8. remove the disc, then restart.

    I hope this helps!
    Shawn - Support Engineer - MCP, MCDST
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Syntax error in the language of Java persistence

    I wrote this simple program to use Java Persistence Query

    Public Shared Sub main (String [] args) {}
    test test = new test();

    EntityManagerFactory EMF = Persistence.createEntityManagerFactory ("SVGTopLink");
    EntityManager em = emf.createEntityManager ();
    String sql_text = 'SELECT the NEW ' +.
    "joinBasicShapes (c.chartName, c.height, c.width, sh.idShape, sh.points, sh.r1, sh.rx, sh.ry, sh.typeName, sh.widthR, sh.x1, sh.x2, sh.y1, sh.y2) +"
    "FROM SvgCharts c JOIN BasicShapes sh ON c.id_chart = sh.id_chart WHERE c.id_chart = 1";

    Query query = em.createQuery (sql_text);
    List list = query.getResultList ();

    Iterator it = lista.iterator ();
    for (int i = 0; it.hasNext (;it.next()) {}))
    System.out.println("---");
    }

    EM. Close();
    EMF. Close();
    }
    }
    But EntityManager does ' t as the query. Do you have any ideea?

    Exception in thread "main" java.lang.IllegalArgumentException: an exception occurred while creating a query in the EntityManager
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerImpl.createQuery(EntityManagerImpl.java:194)
    at svgtoplink.test.main(test.java:23)
    Caused by: Exception [TOPLINK-8024] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (2007-03-30))): oracle.toplink.essentials.exceptions.EJBQLException
    Description of the exception: syntax error parsing the query [SELECT NEW joinBasicShapes (c.chartName, c.height, c.width, sh.idShape, sh.points, sh.r1, sh.rx, sh.ry, sh.typeName, sh.widthR, sh.x1, sh.x2, sh.y1, sh.y2) OF SvgCharts c JOIN BasicShapes ON c.id_chart = sh.id_chart WHERE c.id_chart = 1 sh], line 1, column 177: syntax to [sh] error.
    Inner exception: line 1:177: waiting for DOT, found 'sh '.
    at oracle.toplink.essentials.exceptions.EJBQLException.syntaxErrorAt(EJBQLException.java:364)
    at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.handleANTLRException(EJBQLParser.java:319)
    at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.addError(EJBQLParser.java:262)
    at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.reportError(EJBQLParser.java:362)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.joinAssociationPathExpression(EJBQLParser.java:1909)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.join(EJBQLParser.java:1768)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.identificationVariableDeclaration(EJBQLParser.java:1629)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.fromClause(EJBQLParser.java:454)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.selectStatement(EJBQLParser.java:179)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.document(EJBQLParser.java:135)
    at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.parse(EJBQLParser.java:150)
    at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.buildParseTree(EJBQLParser.java:111)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:200)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:174)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:138)
    to oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl. < init > (EJBQueryImpl.java:99)
    to oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl. < init > (EJBQueryImpl.java:84)
    to oracle.toplink.essentials.internal.ejb.cmp3.EJBQueryImpl. < init > (EJBQueryImpl.java:71)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerImpl.createQuery(EntityManagerImpl.java:189)
    ... 1 more
    Caused by: 1:177 line: waiting for DOT, found 'sh '.
    at persistence.antlr.Parser.match(Parser.java:213)
    at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.joinAssociationPathExpression(EJBQLParser.java:1901)
    ... 15 more
    Process has finished with exit code 1.

    Hello

    Try this

    Select c SvgCharts c join c.basicShapesList bs where c.idChart = 1

    Pedja

  • Since the patch v17, I get syntax errors on each site, that I will. 2 windows each time. OK twice and they are gone.

    It's the 1st small window that displays ' evalInSandbox:SyntaxError: syntax error ".
    I click 'OK', then the following window appears "syntax error". I click 'ok' and it disappears until I go to another web page.

    I had the same exact errors to appear on all Web sites. I tested each extension and add on to my firefox and found that it was the application of SocialFixer (version 7.2) that was the problem. If you have installed, try to update to version 7.3 of SF. It fixed my problem, maybe he'll deal with yours!

  • dbms_scheduler.create_window fails with ORA-27418: syntax error in the interval of recurrence or calendar

    I tried to create a window to test the activation of plans of RM. But I get this error.

    SQL > EXECUTE dbms_scheduler.create_window.

    > (-)

    > window_name = > 'day ', -.

    > resource_plan = > 'my_plan ', -.

    > start_date = > systimestamp + 1 /(24*60).

    > repeat_interval = > ' freq = > daily '.

    > time = > ' 0 01:00:00 '.

    > Comments = > ' C know if it works without a job "-"

    >);

    BEGIN dbms_scheduler.create_window (window_name = > 'day', resource_p)

    LAN = > 'my_plan', start_date = > systimestamp + 1 /(24*60), repeat_interv

    Al = > ' freq = > daily ', duration = > ' 0 01:00:00 ', comments = > ' C so she

    works without employment '); END;

    *

    ERROR on line 1:

    ORA-27481: 'SYS '. "' DAY ' has an invalid schedule

    ORA-27418: syntax error in the interval of recurrence or calendar

    ORA-06512: at "SYS." DBMS_ISCHED", line 486

    ORA-06512: at "SYS." DBMS_SCHEDULER', line 1295

    ORA-06512: at line 1

    I have tried many tips found on the web, nothing works.

    Any help would be greatly appreciated.

    Also, can you pls tell me if this command run once automatically activates the my_plan after 1 minute, 1 minute, after which, it will disable the my_plan? So, you do not need to create a JOB for this. If you create a window, that is, as a job creation to enable an RM plan?

    2734369 wrote:

    Wow, discovered the issue: the repeat interval is broken (I use a database of 12.1 in Windows 7). It must be uppercase. Very surprising in the windows to be case-sensitive.

    SQL >

    SQL > EXECUTE dbms_scheduler.create_window.

    >  (-

    > window_name-online 'day ', -.

    > resource_plan-online 'my_plan ', -.

    > start_date-online systimestamp + 1 /(24*60).

    > repeat_interval-online ' FREQ = DAILY; BYHOUR = 10; BYMINUTE = 30', -.

    > time-online ' 0 01:00:00 '.

    > Comments => ' C know if it works without a job "-"

    >  );

    PL/SQL procedure successfully completed.

    Problem is, after 1 minute, always that the plan is not activated?

    SQL > SEE THE RESOURCE_MANAGER_PLAN PARAMETER

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ----------------------

    resource_manager_plan chain

    Why the Plan is not activated after 1 minute. Have we not create a job (I don't think).

    I think you misunderstand the meaning of "start_date".  Please see the documentation on what this means exactly.

    This attribute specifies the first date and time where it is scheduled to open in this window. If the value start_date specified is in the past or is not specified, the window opens, from its inception.

    To repeat windows using an expression of the calendar to specify the repetition interval, the value of start_date is a reference date. The first time the window opens depends on the specified repeat interval and the value of start_date .

    (From Types and Oracle® packages of PL/SQL Database 11g Release 2 (11.2) reference E40758-03); dbms_scheduler, create_window.  DBMS_SCHEDULER

    Once you have done this, you will see that it is pretty useless to specify that you have.

    Your repeat_interval said "every day at 10:30.

  • Syntax error line 1 on OSX Snow Leopard VM

    Hi, I have this syntax error line 1 as most of the users, but I don't know how to fix it. It s on a virtual machine for snow leopard.

    Someone had the same problem? the clues how to fix? Can't wait to lose all the work of the month.

    Here are the log files. Thanx

    The attached "Mac_OS_X_Server_10.6_ (64_bits) _2.vmx.zip" file contains a new file "Mac OS X Server 10.6 (64-bit) 2.vmx", created from the supplied vmware.log file.

    With VMware Fusion closed, unzip (double-click on) seal "Mac_OS_X_Server_10.6_ (64_bits) _2.vmx.zip" file and replace the original "Mac OS X Server 10.6 (64-bit) 2.vmx" filed with the person here.

  • 1084: syntax error: expected rightparen

    Hi people

    I am a real novice here. I've just updated from CS3 to CS6 and had change a *.fla file in Flash CC. I have it saved and exported as a *.swf I now have about 40 of the compiler errors all the same format "1084: syntax error: expected before rightparen and»

    This is typical of the scenario

    Location

    Scene 1, layer 'buttons', frame 1, line 1. Column 17

    1 if (> 202 and _ymouse502 _ymouse) { }

    He expects his end of the front supports and IE if(_ymouse>202)

    Another example:

    1 if (_xmouse > 7 and _xmouse, _ymouse < 235 and text1.y < 113 and < 24

    2 text1.y_y += 4 {}

    3 If _xmouse > 33 and _xmouse50 and _ymouse < 235 and text1.y > 30)

    4     text1.y_y=4 {}

    In this group, related to the symbol on a page labeled services-page definitions, it is the error of syntax for line 1, column 17 rightparen waiting before and, as well as for line 3 to column 16, just before the and.

    Surely adding support in this group of conditions before a will "and" ruin the condition 'if '...

    Any help will be appreciated graetfully!  (I can do screen grabs if it helps!)

    There is no keyword 'and '.  Use the double ampersand:

    if(Whatever && whateverelse)

    p.s. it no 'or' either.  use a double pipe (backslash uppercase) |

  • Storage VMotion - a general error occurred: could not wait for the data.  Error bad0007.

    People,

    I searched through this forum and have not found an answer that works in many positions out there, I say to myself that I would ask him once again.

    Here's the context:

    We have 12 identical Dell M600 blades in 2 chassis with 16 GB of Ram, 2 x Xeon E5430, they are all connected to an Equallogic PS 5000XV iSCSI SAN on a separate iSCSI (vswitch1) with 2 cards network dedicated network and dedicated switch, console svc iscsi dedicated, dedicated VMkernel port for iscsi access. Net access (vswitch0) contains port groups VM for our various networks and a console port and vmkernel svc for VMotion with 2 separate NETWORK cards as well.

    We are running ESX 3.5 U3 and VCenter 2.5 U3 on Win2k3 R2

    VMotion works between all servers, Storage Vmotion works for most machines, HA works and the value 2 host failurs with no monitoring of vm, DRS is set to manual for now I have a few machines on the local stores that I complete my rebuilt LUN, there is no set of rules for DRS and VMware EVC is enabled for guests of the Intel. However, I'll just describe one machine to do svmotion below.

    Here's the problem:

    I'm trying to Svmotion via svmotion.pl - interactive, a Machine to Windows 2000 with a virtual disk and a virtual RDM. I am aware of the requirements for the RDM and required parameters for svmotion, independent is not selected for the RDM, and I also have svmotioned several machines linux and win2k3 with the same configuration without problem. In the interactive session, I choose to individually place the disks and I chose the virtual disk to only the virtual machine to be moved, essentially, as I saw it move vdisk virtual machine and then copy to the pointer of the RDM.

    The use of the processor in this machine is about 25% average. but I try to run migrations at the time the lowest. and The Host it itself shows only about 5.5 GB of the 16 GB of RAM used. so I think we're good on the RAM. the volume/datastore that I'm migrating from has 485 GB free and the volume/datastore I migration towards a 145 GB free. the VM virtual disk is only about 33 GB.

    I run the script the windows version of the RCLI svmotion. and when to begin the process, I get the following error at around 2 percent of the progress:

    "Since the server has encountered an error: a general error occurred: could not wait for the data."  Error bad0007. Invalid parameter. »

    After searching around, I found the following hotfixes to the U2 release notes

    • Migrate.PageInTimeoutResetOnProgress: Set the value to 1.

    • Migrate.PageInProgress: The value 30, if you get an error even after the setting of the Migrate.PageInTimeoutResetOnProgress variable.

    I've made these changes, and I still get the same error.

    When I dig in the newspaper, I see these entries in the journal of vmkwarning:

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu4:1394) WARNING: bunch: 1397: migHeap0 already at its maximumSize bunch. Cannot extend.

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu4:1394) WARNING: bunch: 1522: Heap_Align (migHeap0, 1030120338/1030120338 bytes, 4 align) failed.  calling: 0x988f61

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu4:1394) WARNING: migrate: 1243: 1235452646235015: failure: out of memory (0xbad0014) @0x98da8b

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu2:1395) WARNING: MigrateNet: 309: 1235452646235015: 5 - 0xa023818: sent only 4096 bytes of data in message 0: Broken pipe

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu6:1396) WARNING: migrate: 1243: 1235452646235015: failed: Migration protocol error (0xbad003e) @0x98da8b

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu2:1395) WARNING: migrate: 6776: 1235452646235015: could not send data for 56486: Broken pipe

    At this point, I'm stuck... What is Windows RCLI? the vcenter Server? or the service console with not enough of RAM? We have already increased all our consoles service 512 MB...

    Any help would be greatly appreciated...

    Thanks in advance.

    Alvin

    The vmkernel on out of memory error, I had that before. And vmware support recommends setting 800M Max service console memory. And I did it and have no problems after that.

    See if that helps the issue.

    Mike

  • Beginner: Get on the WHERE clause syntax error in SELECT

    I am very new to php and mySQL.  Use DW master/detail to generate Basic code I need.  One thing I have to do is to modify a select statement in the master to include a WHERE clause to limit the selection to a particular value in a field.

    I get a syntax error with the select statement in the WHERE clause, I add to the map.

    It's the part of the error message showing the location of the error:

    "WHERE group = 'Community' LIMIT 0, 10'"

    Php that generated the select is:

    $query_maps = "SELECT * FROM tblmaps ORDER BY tblmaps.» DispSeq ';

    $query_limit_maps = sprintf ("%s WHERE group =' LIMIT %s %d, %d", $query_maps, $selectGroup, $startRow_maps, $maxRows_maps);

    This approach to create the select statement is on the generated code for the master page.  He added the LIMIT clause.  I didn't add the ' WHERE group = '%s' and the variable $selectGroup, which comes from the old code.»  You can see that the $selectGroup variable is equal to the "community: group.»

    I scanned the web to see what syntax error, I could do, but haven't found anything that explains it.

    The resolved full select statement is:

    SELECT * FROM tblmaps ORDER BY tblmaps. WHERE DispSeq = 'Community' LIMIT 0,10 group

    What I don't see?

    Tom

    The group is a reserved word in MySQL. You could probably put single quotes around it, but I suggest to rename this column. Do not use reserved words for column names.

  • 1084: syntax error: expected rightbrace before the end of the program.

    So I do this thing basic coding to make an object 'pull' bullets. This is a video tutorial. My code its corresponds exactly, unless I'm missing a small detail. Basically, the code looks like this:


    package {}


    import flash.display.Sprite;


    import flash.events.Event;

    public class ball extends Sprite {}

    private var sw:Number;
    private var sh: number;
    private const _SPEED:int =-10;
    private const _OFFSTAGE:int =-10;

    public function ball (): void {}
    addEventListener (Event.ADDED_TO_STAGE, onadd);
    }

    private void onadd(e:Event):void {}
    SW = stage.stageWidth;
    SH = stage.stageHeight;
    addEventListener (Event.ENTER_FRAME, loop);
    }

    private void loop(e:Event):void {}
    If (y, _OFFSTAGE) {}
    removeEventListener (Event.ENTER_FRAME, loop);
    parent.removeChild (this);
    }
    y = _SPEED;
    } public function removeListeners (): void {}
    removeEventListener (Event.ENTER_FRAME, loop);

    }

    And I get the compile error wrote:
    Location: Bullet.As line 31 1084: syntax error: expected rightbrace before the end of the program. Source :}
    Location: Bullet.As line 31 1084: syntax error: expected rightbrace before the end of the program. Source :}
    And yes it say it twice. What is going on?

    The vid I learn is the following: http://autocad.spinelink.com/adobe-flash-cs4-game-tutorial-shooting.html

    If what you show is what you have, then the mistakes are teliing you have some missing braces.  From what I see, there are probably 2 missing at the end.  For each {there must be a} somewhere.

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

    		   
  • 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")); ?>

    Maybe you are looking for

    ">$date; ?>