MySQL Mailmerges / print

The obvious choice for mailmerges is to retrieve data via ODBC in word, which has a good more installation and filtering system.

Unfortunately, it is not as simple as it may seem, because you have to remove the name of the database the wizard configuration, whenever you go into another wiseyou get a "catastrophic failure".

I'd rather do something directly in php, although, as far as I know, it is not possible to produce own labels (without URL address/date etc. in the headers).

Of course I managed to create the Recordset more, but its management of these data for printing that gives me headache.

It is a basic CRM data and even print a label for the current record is difficult to achieve.

Has anyone no matter what experince in this?

How about using Microsoft Access?

As much as I hate the access, it has good reporting functions, ideal for
print on labels etc. you can provision precisely things. If you install
MyODBC, you can connect to your MySQL server and take data directly from
that rather than having to import, using linked tables. So that you can
draw directly from your MySQL database on the net and the data
in a report.

--
Gareth
http://www.phploginsuite.co.UK/
PHP Login Suite V2 - 34 server behaviors to build a complete system of connection.

Tags: Dreamweaver

Similar Questions

  • MySQL to print the product catalog

    Hello

    Rob might know the answer to this one.

    Background:

    I have a product web site PHP & MySQL. The owner wishes to automate the production of a product catalog printed (about 600 records) MySQL database.   I can't query SQL and php to output in HTML format without problem.  But the owner would print something more elegant.

    Newbie questions:

    How to port MySQL disks in InDesign?  Or do I convert MySQL XML first?

    What is the procedure? How transparent is it?

    What are the pitfalls I should know about?

    Is there any detailed tutorials on how to do it?

    Thank you

    Nancy O.

    I've experimented with MySQL export to TCPDF. It is pretty easy to do, but the results do not have poles. I wasn't able to get the text to expand around images or control where pages broke. Maybe it was my lack of experience with TCPDF. It seems to be very powerful, but the documentation is the nest of a rat.

    MySQL export in XML format is very simple. The InDesign help documentation has many details on how to import XML and map tags to styles; Import XML in InDesign. The advantage of InDesign, it's that you get really good control over the way in which the final document is laid out. Caveat: I have not used to import XML, and I did not use InDesign for several years. But I have used old versions for many years to create a post of page-100-plus for the Japanese company in the United Kingdom. I found that working with InDesign is pretty simple. I hope it's always.

  • PHP / MySQL - printing a Variable in a Table cell for a while in a loop

    Hello

    The attached code works very well. When running loop a while, in an HTML table, it prints the value of 'votes_up' of a MySQL database for each "$row2".

    However, in a HTML table cell, I would like to print "votes_up" less any other value, called "votes_down." I imagine that the first step would be to create a variable equal to "votes_up" under "votes_down". But I do not know how to print this new variable for each "$row2" in the MySQL database. How can I do this?

    Thanks in advance,

    John

    .oO (ArizonaJohn)

    > The attached code works very well. In an HTML table, it prints "votes_up".
    > value of a database MySQL for each "$row2" generated by a 'while' loop
    >
    > However, in a HTML table cell, I would print "votes_up" less another
    > value called "votes_down" I guess the first step would be to create a
    > variable equal to "votes_up" under "votes_down". But I don't know how to print
    > this new variable for each "$row2" in the MySQL database. How can I do this?
    >
    > Thanks in advance,.
    >
    > John
    >
    "> print"". $row2 ['votes_up']."";

    $votes_diff = $row2 ["votes_up"] - $row2 ["votes_down"];
    print '.$votes_diff";

    or

    print '.". ($row2 ['votes_up']-$row2 ['votes_down']). »";

    HTH
    Micha

  • Error link database to MySQL when using variables

    Hi guys

    I currently have a database of hava link to MySQL. I can read, insert, delete and update without any problem when using literals. However when I try to perform the same actions using pl/sql variables, I get the following error:

    ORA-02055: distributed update operation failed. Rollback required
    ORA-02068: following a serious error of AAA1
    ORA-28511: interruption of the RPC connection to heterogeneous remote agent using SID = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = ProdDB.btl)(PORT=1527) .net) (CONNECT_DATA = (SID = AAA1)))
    ORA-06512: at line 15 level

    You kindly give me some suggestions?


    PL/SQL code

    Declare

    MSISDN2 tank (8);
    IMSI2 number (28.0);
    ICC2 number (28.0);
    CNT number (28.0);

    Begin

    MSISDN2: = 610-0850';
    IMSI2: = 8950167090300132451;
    ICC2: = 702670161017765;


    Delete "SUBSCRIBERS"@AAA1 where "MSISDN" = MSISDN2; -'ICC' = ICC2 or 'IMSI' = IMSI2;

    End;


    -----------------------------------------------------------------------------------------------------------
    System information:

    Oracle Database 10.2.0.5.0 under Redhat Linux 64-bit

    Database portals Oracle ODBC 11.2.0.1.0 on the same machine as above

    UnixODBC - 3.2.1 compiled in 64-bit on the same machine so

    MySQL ODBC connector DriverVer:05.02.0002

    ------------------------------------------------------------------------------------------------------
    ODBC DSN

    ;
    ; ODBC.ini configuration for MYODBC and MYODBC 3.51 drivers
    ;

    [ODBC data sources]
    AAA1 = pilot 5.2.2 MyODBC DSN

    [AAA1]
    Driver = /usr/lib64/libmyodbc5w.so
    Description = driver MYODBC DSN 5.52
    SERVER = 10.50.18.89
    USER = tytancc2
    Password = xxxxxx
    Database = radiator
    OPTION = 3
    CHARSET = latin1
    Trace = yes
    Trace file = /tmp/unixodbc.sql.log
    Debug = 1
    Debugfile = /tmp/unixodbc.debug.log

    ---------------------------------------------------------------------------------------
    File hs
    # This is an example of initialization file of the agent that contains the HS settings
    # necessary for the database to ODBC gateway

    #
    # HS init parameters
    #
    HS_FDS_CONNECT_INFO = AAA1
    #HS_FDS_TRACE_LEVEL = 255
    HS_FDS_TRACE_LEVEL = DEBUG
    #HS_FDS_SHAREABLE_NAME = /usr/lib64/libmyodbc5w.so
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so.2
    HS_FDS_SQLLEN_INTERPRETATION = 32
    #HS_LANGUAGE = AMERICAN_AMERICA. AL32UTF8
    #HS_LANGUAGE = AMERICAN_AMERICA. WE8ISO8859P15
    #HS_LANGUAGE = AMERICAN_AMERICA. WE8ISO8859P1
    HS_LANGUAGE = AMERICAN_AMERICA. LATIN1
    HS_FDS_FETCH_ROWS = 1
    #HS_NLS_NCHAR = UCS2
    #HS_OPEN_CURSORS = 10


    #
    # ODBC specific environment variables
    #
    Set ODBCINI=/u01/oracle/.odbc.ini
    Set ODBCINSTINI=/etc/odbcinst.ini


    #
    # Required for the non-Oracle system environment variables
    #
    set LD_LIBRARY_PATH = / usr/lib64


    --------------------------------------------------------------------------------------------
    Trace file

    Oracle Corporation - 22:01:40.555 Friday, February 8, 2013


    Heterogeneous Agent release
    11.2.0.1.0




    Oracle Corporation - 22:01:40.549 Friday, February 8, 2013

    Version 11.2.0.1.0

    Hgogprd entries
    HOSGIP to 'HS_FDS_TRACE_LEVEL' returned 'DEBUG '.
    Hgosdip entries
    default assignment of 50 HS_OPEN_CURSORS
    setting HS_FDS_RECOVERY_ACCOUNT or 'RECOVER '.
    HS_FDS_RECOVERY_PWD layout to the default
    default HS_FDS_TRANSACTION_LOG of HS_TRANSACTION_LOG layout
    HS_IDLE_TIMEOUT layout to the default 0 value
    layout by default HS_FDS_TRANSACTION_ISOLATION of "READ_COMMITTED".
    layout by default «AL32UTF8» HS_NLS_NCHAR
    layout HS_FDS_TIMESTAMP_MAPPING default 'DATE '.
    layout HS_FDS_DATE_MAPPING default 'DATE '.
    layout HS_RPC_FETCH_REBLOCKING failure to 'ON '.
    HOSGIP returned the value of '1' for HS_FDS_FETCH_ROWS
    parameter HS_FDS_RESULTSET_SUPPORT default 'FALSE '.
    parameter HS_FDS_RSET_RETURN_ROWCOUNT default 'FALSE '.
    parameter HS_FDS_PROC_IS_FUNC default 'FALSE '.
    parameter HS_FDS_CHARACTER_SEMANTICS default 'FALSE '.
    parameter HS_FDS_MAP_NCHAR if there is no 'TRUE '.
    setting HS_NLS_DATE_FORMAT or 'YYYY-MM-DD HH24:MI:SS ".
    parameter HS_FDS_REPORT_REAL_AS_DOUBLE default 'FALSE '.
    HS_LONG_PIECE_TRANSFER_SIZE layout without "65536".
    parameter HS_SQL_HANDLE_STMT_REUSE default 'FALSE '.
    parameter HS_FDS_QUERY_DRIVER if there is no 'TRUE '.
    parameter HS_FDS_SUPPORT_STATISTICS default 'FALSE '.
    The HS_FDS_QUOTE_IDENTIFIER parameter is not defined
    setting in HS_KEEP_REMOTE_COLUMN_SIZE if 'OFF '.
    parameter HS_FDS_GRAPHIC_TO_MBCS default 'FALSE '.
    parameter HS_FDS_MBCS_TO_GRAPHIC default 'FALSE '.
    HOSGIP returned the value "32" for HS_FDS_SQLLEN_INTERPRETATION
    HS_CALL_NAME_ISP layout "gtw$: SQLTables; GTW$: SQLColumns. GTW$: SQLPrimaryKeys. GTW$: SQLForeignKeys. GTW$: SQLProcedures. GTW$: SQLStatistics; "gtw$: SQLGetInfo.
    parameter HS_FDS_DELAYED_OPEN if there is no 'TRUE '.
    HS_FDS_WORKAROUNDS layout by default "0".
    Release of hgosdip, rc = 0
    ORACLE_SID is "AAA1.
    Product information:
    Port RLS / Upd:1 / 0 PrdStat:0
    Agent: Oracle Database Gateway for ODBC
    : Installation
    Class: ODBC, ClassVsn:11.2.0.1.0_0008, Instance: AAA1
    Release of hgogprd, rc = 0
    Hgoinit entries
    HOCXU_COMP_CSET = 1
    HOCXU_DRV_CSET = 31
    HOCXU_DRV_NCHAR = 873
    HOCXU_DB_CSET = 31
    HOCXU_SEM_VER = 102000
    Entry hgolofn to 2013/02/08-22: 01:40
    HOSGIP to 'HS_FDS_SHAREABLE_NAME' returned ' / usr/lib64/libodbc.so.2 '.
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a08f61
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a090e5
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a09c18
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a0b6dc
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a17bc4
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a182e8
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a1bc40
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a1dad8
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a1e6dc
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a20bae
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a20bd0
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a22f44
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a276d4
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a27b90
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2a4a4
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2b574
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2b99c
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2e65c
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2ecd0
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a31db8
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a31ac0
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a0c47c
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a0e884
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a14943
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a1714a
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a19327
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a1d2ce
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a1f648
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a210c7
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a23990
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2414c
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a25d26
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a26cc0
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a288a8
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a28c67
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a29e88
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2c51e
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2ccfa
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2d5c0
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2de92
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a2f088
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a33fa4
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a315fe
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a36de2
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Entry hgolofns to 2013/02/08-22: 01:40
    symbol_peflctx = 0x31a380ec
    hoaerr:0
    Output hgolofns to 2013/02/08-22: 01:40
    Release of hgolofn, rc = 0 to 2013/02/08-22: 01:40
    HOSGIP to 'HS_OPEN_CURSORS' returned '50 '.
    HOSGIP to 'HS_FDS_FETCH_ROWS' returned '1 '.
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536".
    HOSGIP to 'HS_NLS_NUMERIC_CHARACTER' returned '. "
    HOSGIP to 'HS_KEEP_REMOTE_COLUMN_SIZE' returned 'OFF '.
    HOSGIP for "HS_FDS_DELAYED_OPEN" returns 'TRUE '.
    HOSGIP to 'HS_FDS_WORKAROUNDS' returned '0 '.
    HOSGIP to 'HS_FDS_MBCS_TO_GRAPHIC' returned 'FALSE '.
    HOSGIP to 'HS_FDS_GRAPHIC_TO_MBCS' returned 'FALSE '.
    treat_SQLLEN_as_compiled = 0
    Release of hgoinit, rc = 0 to 2013/02/08-22: 01:40
    Entry hgolgon to 2013/02/08-22: 01:40
    name: tytancc2, reco:0, tflag:0
    Entry hgosuec to 2013/02/08-22: 01:40
    Release of hgosuec, rc = 0 to 2013/02/08-22: 01:40
    HOSGIP to 'HS_FDS_RECOVERY_ACCOUNT' returned 'RECOVER '.
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returns "HS_TRANSACTION_LOG".
    HOSGIP to 'HS_FDS_TIMESTAMP_MAPPING' returned 'DATE '.
    HOSGIP to 'HS_FDS_DATE_MAPPING' returned 'DATE '.
    HOSGIP to 'HS_FDS_CHARACTER_SEMANTICS' returned 'FALSE '.
    HOSGIP for "HS_FDS_MAP_NCHAR" returns 'TRUE '.
    HOSGIP to 'HS_FDS_RESULTSET_SUPPORT' returned 'FALSE '.
    HOSGIP to 'HS_FDS_RSET_RETURN_ROWCOUNT' returned 'FALSE '.
    HOSGIP to 'HS_FDS_PROC_IS_FUNC' returned 'FALSE '.
    HOSGIP to 'HS_FDS_REPORT_REAL_AS_DOUBLE' returned 'FALSE '.
    using tytancc2 as the default value to "HS_FDS_DEFAULT_OWNER".
    HOSGIP to 'HS_SQL_HANDLE_STMT_REUSE' returned 'FALSE '.
    Entry hgocont to 2013/02/08-22: 01:40
    HS_FDS_CONNECT_INFO = "AAA1.
    RC =-1 of HOSGIP for 'HS_FDS_CONNECT_STRING '.
    Entry hgogenconstr to 2013/02/08-22: 01:40
    DSN:AAA1, name: tytancc2
    OPTN:
    Entry hgocip to 2013/02/08-22: 01:40
    DSN:AAA1
    Release of hgocip, rc = 0 to 2013/02/08-22: 01:40
    Release of hgogenconstr, rc = 0 to 2013/02/08-22: 01:40
    Entry hgolosf to 2013/02/08-22: 01:45
    Release of hgolosf, rc = 0 to 2013/02/08-22: 01:45
    DriverName:libmyodbc5w.so, DriverVer:05.02.0002
    Name of DBMS: MySQL, DBMS Version: 5.1.66 - community-newspaper
    Release of hgocont, rc = 0 to 2013/02/08-22: 01:45
    SQLGetInfo Returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 192 for SQL_MAX_CATALOG_NAME_LEN
    Release of hgolgon, rc = 0 to 2013/02/08-22: 01:45
    Entry hgoulcp to 2013/02/08-22: 01:45
    Entry hgowlst to 2013/02/08-22: 01:45
    Release of hgowlst, rc = 0 to 2013/02/08-22: 01:45
    SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
    Able TXN: isolation 3, Option: 0xf
    SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 192 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 192 for SQL_MAX_PROCEDURE_NAME_LEN
    SQLGetInfo returns (0 x 60) for SQL_IDENTIFIER_QUOTE_CHAR
    SQLGetInfo Returns Y for SQL_COLUMN_ALIAS
    16 functions for instance will be uploaded
    context: 0x00000000, capno:1964, add info: 0
    context: 0x00000000, capno:1989, add info: 0
    context: 0x0001ffff, capno:1991, add info: 0
    «"" context: 0x0001ffff, capno:1992, info-add: 1, translation:»»»
    context: 0x00000000, capno:3042, add info: 0, translation: "42".
    context: 0x00000000, capno:3047, add info: 0, translation: "57."
    context: 0x00000000, capno:3049, add info: 0, translation: "59".
    context: 0x00000000, capno:3050, add info: 0, translation: "60".
    context: 0x00000000, capno:3066, add info: 0
    context: 0x00000000, capno:3067, add info: 0
    context: 0x00000000, capno:3068, add info: 0
    context: 0x00000000, capno:3069, add info: 0
    capno:3500, context: 0x00000001, add info: 91, translation: "42".
    capno:3501, context: 0x00000001, add info: 93, translation: "57."
    capno:3502, context: 0x00000001, add info: 107, translation: "59".
    capno:3503, context: 0x00000001, add info: 110, translation: "60".
    Release of hgoulcp, rc = 0 to 2013/02/08-22: 01:45
    Entry hgouldt to 2013/02/08-22: 01:45
    NO translation of DD for instance have been downloaded
    Release of hgouldt, rc = 0 to 2013/02/08-22: 01:45
    Entry hgobegn to 2013/02/08-22: 01:45
    tflag:0, original: 1
    Hoi:0x9671a48, ttid (len 26) is...
    00: 54595441 4E2E6438 32323564 62642E32 [TYTAN.d8225dbd.2]
    10: 3433 33313031 [9.7.310143] 392E372E
    tbid (len 10) is...
    0: 1-000700 7FBB0400 0104 [...]
    Release of hgobegn, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopdsc to 2013/02/08-22: 01:45
    Describing the procedure SUBSCRIBERS
    Output hoada
    hgopdsc, line 1406: NO hoada to print
    Release of hgopdsc, rc = 942 to 2013/02/08-22: 01:45
    Entry hgodtab to 2013/02/08-22: 01:45
    number: 1
    Table: SUBSCRIBERS
    Allocate hoada [0] @ 0x3a23590
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:1 (MSISDN): dtype:1 (CHAR), prc / scl:8 / 0, nullbl:0, byte: 8, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:2 (IMSI): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:0, byte: 8, sign: 1, radix: 10
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:3 (ICC): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:0, byte: 8, sign: 1, radix: 10
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:4 (CHECKATTR): dtype:1 (CHAR), prc / scl:200 / 0, nullbl:1, byte: 200, sign: 1, radix: 10
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:5 (REPLYATTR): dtype:1 (CHAR), prc / scl:200 / 0, nullbl:1, byte: 200, sign: 1, radix: 10
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:6 (TIMELEFT): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 10
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:7 (ELIMINATED): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 10
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:8 (Suspended): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 10
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    The hoada for SUBSCRIBERS table follows...
    hgodtab, line 876: print hoada @ 0x3a23590
    MAX: 8, REAL: 8, BRC:1, WHT = 6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x200: TREAT_AS_CHAR, 0x20: NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
    1 TANK N 8 8 0 / 0 0 0 200 MSISDN
    -5 BIGINT 8 8 N 0 / 0 0 0 20 IMSI
    -5 BIGINT 8 8 N 0 / 0 0 0 20 ICC
    1 CHAR Y 200 200 0 / 0 0 0 200 CHECKATTR
    1 CHAR Y 200 200 0 / 0 0 0 200 REPLYATTR
    -5 BIGINT Y 8 8 0 / 0 0 0 20 TIMELEFT
    -5 BIGINT Y 8 8 0 / 0 0 0 20 ELIMINATED
    -5 BIGINT Y 8 8 0 / 0 0 0 20 SUSPENDED
    Release of hgodtab, rc = 0 to 2013/02/08-22: 01:45
    Entry hgodafr, cursor IDs 0 to 2013/02/08-22: 01:45
    Free Hoada @ 0x3a23590
    Release of hgodafr, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopars, id of cursor 1 to 2013/02/08-22: 01:45
    type: 0
    Text SQL hgopars, id = 1, len = 134...
    45 00: 53454 C 43542041 53495344 312E604D [SELECT A1.'MSISD]
    10: 4E602C41 4 534960 2C41312E 312E6049 [NO, A1.] "IMSI', A1.]
    20: 60494343 602C 4131 2E604348 45434B 41 ['ICC', A1' COACHA]
    30: 54545260 60524550 4 594154 2C41312E [TTR ', A1' REPLYAT]
    40: 5452602 C 54494 45 4 454654 41312E60 [TR ', A1' TIMELEFT]
    50: 602C 4131 2E60454C 494D494E 41544544 [', A1.'] ELIMINATED]
    60: 602C 4131 2E605355 5350454E 44454460 [', 'SUSPENDED' A1.]
    70: 4 206053 55425343 52494245 2046524F [A ' SUBSCRIBE]
    80: 52536020 4131 [RS A1]
    Release of hgopars, rc = 0 to 2013/02/08-22: 01:45
    Entry hgoopen, id of cursor 1 to 2013/02/08-22: 01:45
    hgoopen, line 86: NO hoada to print
    Delayed open until the first fetch.
    Release of hgoopen, rc = 0 to 2013/02/08-22: 01:45
    Entry hgodscr, id of cursor 1 to 2013/02/08-22: 01:45
    Allocate hoada @ 0x3a23538
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:1 (MSISDN): dtype:1 (CHAR), prc / scl:8 / 0, nullbl:0, byte: 8, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:2 (IMSI): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:0, byte: 8, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:3 (ICC): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:0, byte: 8, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:4 (CHECKATTR): dtype:1 (CHAR), prc / scl:200 / 0, nullbl:1, byte: 200, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:5 (REPLYATTR): dtype:1 (CHAR), prc / scl:200 / 0, nullbl:1, byte: 200, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:6 (TIMELEFT): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:7 (ELIMINATED): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    Entry hgopcda to 2013/02/08-22: 01:45
    Column:8 (Suspended): dtype:-5 (BIGINT), prc / scl:19 / 0, nullbl:1, byte: 200, sign: 1, radix: 0
    Release of hgopcda, rc = 0 to 2013/02/08-22: 01:45
    hgodscr, line 880: print hoada @ 0x3a23538
    MAX: 8, REAL: 8, BRC:1, WHT = 5 (SELECT_LIST)
    hoadaMOD bit-values found (0x200: TREAT_AS_CHAR, 0x20: NEGATIVE_HOADADTY)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
    1 TANK N 8 8 0 / 0 0 0 200 MSISDN
    -5 BIGINT 8 8 N 0 / 0 0 0 20 IMSI
    -5 BIGINT 8 8 N 0 / 0 0 0 20 ICC
    1 CHAR Y 200 200 0 / 0 0 0 200 CHECKATTR
    1 CHAR Y 200 200 0 / 0 0 0 200 REPLYATTR
    -5 BIGINT Y 8 8 0 / 0 0 0 20 TIMELEFT
    -5 BIGINT Y 8 8 0 / 0 0 0 20 ELIMINATED
    -5 BIGINT Y 8 8 0 / 0 0 0 20 SUSPENDED
    Release of hgodscr, rc = 0 to 2013/02/08-22: 01:45
    Entry hgoclse, id of cursor 1 to 2013/02/08-22: 01:46
    Release of hgoclse, rc = 0 to 2013/02/08-22: 01:46
    Entry hgodafr, id of cursor 1 to 2013/02/08-22: 01:46
    Free Hoada @ 0x3a23538
    Release of hgodafr, rc = 0 to 2013/02/08-22: 01:46
    Entry hgopars, id of cursor 1 to 2013/02/08-22: 01:46
    type: 0
    Text SQL hgopars, id = 1, len = 56...
    45 00: 44454 C 54452046 60535542 524F4D20 [DELETE OF ' SUB]
    10: 53435249 42455253 60205748 45524520 [OF THE TRUSQUINS WHERE]
    20:60535542 53435249 602E604D 42455253 ["SUBSCRIBERS". AM]
    30: 53495344 4E603D3F [SISDN'=?]
    Release of hgopars, rc = 0 to 2013/02/08-22: 01:46
    Entry hgoexec, id of cursor 1 to 2013/02/08-22: 01:46
    octype = 3 (REMOVE)
    hgoexec, line 108: print hoada @ 0x3a23538
    MAX: 1, SIZE: 1, BRC:1, WHT = 3 (BIND_LIST)
    hoadaMOD bit-values found (0x200: TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
    1 TANK N 8 0 0 / 0 31 0 200?
    Entry hgoprbv to 2013/02/08-22: 01:46
    hgoprbv, line 145: print hoada @ 0x3a23538
    MAX: 1, SIZE: 1, BRC:1, WHT = 3 (BIND_LIST)
    hoadaMOD bit-values found (0x200: TREAT_AS_CHAR)
    DTY NULL-OK LEN MAXBUFLEN PR/SC CSE IND MOD NAME
    1 TANK N 8 0 0 / 0 31 0 200?
    Release of hgoprbv, rc = 0 to 2013/02/08-22: 01:46

    Could you please put the table in the MySQL table definition is defined in the MySQL database and the way she is described using the database link (desc 'SUBSCRIBERS"@AAA1)
    What happens when you comment the gateway init parameter:
    HS_FDS_SQLLEN_INTERPRETATION = 32?

    Thank you
    Klaus

    Published by: kgronau on February 11, 2013 07:37

    Successfully tested the DG4ODBC 11.2.0.3 by the definition of a table in MySQL:
    drop table CUSTOMERS;
    create table CUSTOMERS (MSISDN char (8), numeric (28.0) IMSI2, ICC2 numeric (28.0), NTC numeric (28.0));
    insert into CUSTOMERS values (610-0850', 8950167090300132451, 702670161017765, NULL);

    and by using this code:
    SQL > select count (*) from 'SUBSCRIBERS"@MYSQL_DG4ODBC_EMGTW_1123_DB;

    COUNT (*)
    ----------
    1

    SQL > declare
    2
    3 MSISDN2 tank (8);
    4 IMSI2 number (28.0);
    5 ICC2 number (28.0);
    6 NTC number (28.0);
    7
    Begin 8

    9 10 MSISDN2: = 610-0850';
    11 IMSI2: = 8950167090300132451;
    12 ICC2: = 702670161017765;
    13
    14 remove from 'SUBSCRIBERS"@MYSQL_DG4ODBC_EMGTW_1123_DB where"MSISDN"= MSISDN2;
    15 ' ICC' = ICC2 or "IMSI" is IMSI2;.
    16
    End 17;
    18.

    PL/SQL procedure successfully completed.

    SQL > select count (*) from 'SUBSCRIBERS"@MYSQL_DG4ODBC_EMGTW_1123_DB;

    COUNT (*)
    ----------
    0

    Published by: kgronau on February 11, 2013 07:51

    Also successfully tested using DG4ODBC Oracle 11.2.0.1 database and 10.2.0.5

  • Calling functions within an echo in PHP/Mysqli statement

    I have a table written in php that is filled with a mysqli result set.

    It draws on the table and it fills from the result set table, as below, using a properly figurative connection:

    <? PHP / * DRAWN AS AN ARRAY * /.

    echo "< table border = 0 > ';

    While ($row = mysqli_fetch_array ($resultset, MYSQLI_NUM))

    / * $s = (date (a/m/Y ", strtotime ($row [1])"))-it's the conversion of reference * /.

    echo "< tr > < td > $row [0]: $row [4]: $row [2] < table >.

    < td rowspan = 15 >

    < img = name-"picspot\" src =------------.

    width =------"300\" height =-"240\" alt =------"image."

    $row [10] >

    < table >

    < /tr >

    < b >

    < td > pictured: $row [1] < table > / * < td > pictured: $s < table > * /

    < /tr >

    / * more lines go here * /.

    < /table >.

    ? >

    Copy the following code works properly and produced a table in the correct format and value with the data in the table as shown:

    table1.JPG

    $row [1] contains a timestamp in the format 2003-10-17 00:00:00 and prints it in the table next to the word "photo".

    I need to convert this date using something like:

    $s = (date (a/m/Y ", strtotime ($row [1])"))

    If I include this in the echo statement it prints only the above function instead of the date.

    If I do the conversion date immediately after the stated time, and then include

    < td > pictured: $s < table > instead of < td > pictured: $row [1] < table >

    that works very well, but he kills as all the other outputs of the $resultset table.

    table2.JPG

    I'm obviously something wrong, but can not understand.

    Run out of two calls to the application and storing the first $row [1] in a variable, converting it to a date and by printing on a second print request run, looks like overkill, I can't find a solution.

    Can you?

    All suggestions welcome.

    Howard Walker

    After much research, I had to resort to a second query as follows:

    $getID = mysqli_fetch_assoc (mysqli_query ($conn, "SELECT photodate FROM table WHERE ref = $t"));

    $pdate = $getID ["photodate"];

    $pdate = (date (a/m/Y ', strtotime ($pdate)));

    .

    .

    .

    On the photo: $pdate

    produce a correct output.

    Moral - if you work in this long enough there are take a way!

    Have fun!

    Howard Walker

  • Irish (Gaeilge) nature preservation of MySQL

    (Sorry if this is the wrong forum...)

    I am building a web application that uses the Irish language. This is my first time working on a java program that uses a language other than English, so I need to teach myself about the charset encoding and character problems.

    Specifically, I need to retrieve information from the database. I have data in a MySQL database which is in Irish, but when I retrieve a column to help
    rs.getString("column_name")
    ('r' is an instance of the java.sql.ResultSet) and print on a newspaper or the console, I see that it is blurred. The Irish fada is disappearing, and something else makes its appearance.

    If someone can point me in a direction where I can do some relevant reading or provide pointers, I would be grateful. Same ad simple expressions or useful for a Bing/Google search terms would be useful.

    >
    Huh cr * p, I could have you given inaccurate information. It seems that it could still be MySQL which you deceive upward with the character set.
    It is a tricky business trying to debug it remotely...

    Why is the code of values of so different? Should not be the same? Is not that this means that the data are different in both cases?

    Yes, they should be the same, the top row represents the values of bytes that are not converted correctly.

    UTF-8 for character i representation is 2 bytes, 195 173 (i.e. 0xC3 0xAD), that you can see on your the top row. This means that it is at least in the correct form within the database.
    However, at some point it is interpreted as latin-1, it corrupts in this form.

    I don't know if you've already seen this http://stackoverflow.com/questions/138948/how-to-get-utf-8-working-in-java-webapps, but it seems to describe a lot of configuration options for MySQL. You should check them double.

  • How to generate a single random number in a MySQL database

    I create a volunteer and also a separate request form from the seller for an air show. The volunteer and seller info is stored in separate tables in MySQL db, a line by volunteer or the seller. There will be about 100 volunteers and 50 sellers. When the request should immediately be printed by the applicant signed and mailed in. This year we had problems with some people who do not immediately print asked, so I would still give them the possibility to print immediately, but also to send them an email with a link to their specific line in the MySQL database. I have an AutoIncrement primary key for each table field, but I think to send this key to the applicant in an email would be too easy for them to guess a different id and access the information of others.

    I think I should add a column for each table containing a unique random number and then I would send this key in the e-mail to the applicant. So, can anyone suggest a simple way to do this or suggest a better way to give the applicant a way to access their own request and nobody elses not after submitting their form?

    Thank you all.

    Tony Babb

    In your code, you should:

     VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, $s)",
    

    Change the $s to %s and that should solve the problem for you.

    Let me know.  Thank you!

    Chad

  • Help with DW, MySQL and PHP

    Hello

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

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

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

    Thanks in advance

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

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

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

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

    echo "$_POST [incidentID]";

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

  • How to insert date in the record being updated (MySql, PHP)

    I want to be able to update an existing record and automatically include the date that the change was made when I submit the data to the MySql database.

    I saw this thread on how to date on a new record using NOW()

    http://forums.Adobe.com/thread/855152?decorator=print & displayFullThread = true #855152

    After reading it, I have successfully changed my page insert.php.

    Here is the code of my insert.php page that works well:

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "form1")) {}
    $insertSQL = sprintf ("INSERT INTO standardsclient_tbl (client_name, pantone_ref1, pantone_ref1_image, font_ref1, font_ref1_image, 'date') VALUES (%s, %s, %s, %s, %s, NOW())", ")
    GetSQLValueString ($_POST ['client_name'], "text").
    GetSQLValueString ($_POST ['pantone_ref1'], "text").
    GetSQLValueString ($_POST ['pantone_ref1_image'], "text").
    GetSQLValueString ($_POST ['font_ref1'], "text").
    GetSQLValueString ($_POST ['font_ref1_image'], "text").
    GetSQLValueString ($_POST ['date'], 'date'));

    It's the update.php page, I changed 'date' = %s to 'date' = NOW () , but this has made that prevents me from updating the record all the.

    If ((isset($_POST["MM_update"])) & & ($_POST ["MM_update"] == "form1")) {}
    $updateSQL = sprintf ("UPDATE standardsclient_tbl SET client_name = %s pantone_ref1 = %s pantone_ref1_image = %s, font_ref1 = %s, font_ref1_image = %s, 'date' = NOW () WHERE the client_ID = %s",
    GetSQLValueString ($_POST ['client_name'], "text").
    GetSQLValueString ($_POST ['pantone_ref1'], "text").
    GetSQLValueString ($_POST ['pantone_ref1_image'], "text").
    GetSQLValueString ($_POST ['font_ref1'], "text").
    GetSQLValueString ($_POST ['font_ref1_image'], "text").
    GetSQLValueString ($_POST ['date'], 'day'),
    GetSQLValueString ($_POST ['client_ID'], "int"));

    You can see where I have gone wrong?

    Thank you

    In the update query, you have 6 %s but GetSQLValueString 7. That's your problem.

  • AS3, PHP and MySQL help!

    Hello Forum,

    I created an interface using flash, php and mysql.

    The problem I have is that I have 2 fields dynamic text on the stage I want to display their content based on the page that I am.

    My txtTitle is showing two rows of mysql together

    like this: Aboutabout_content = about MySQL

    Here is my code:

    ====================================================

    FLASH ANIMATION

    Copy the following code gets the data from the home page of the database for display
    var PageTitle:String;
    var PageContent:String;
    Assign a variable name for our URLVariables object
    var page_variables:URLVariables = new URLVariables();
    Create the variable URL varSend
    var page_varSend:URLRequest = new URLRequest ("http://localhost/SANDBOX/developments/root/scripts/cms_control_file.php");
    page_varSend.method = URLRequestMethod.POST;
    page_varSend.data = page_variables;
    Build the varLoader variable
    var page_varLoader:URLLoader = new URLLoader;
    page_varLoader.DataFormat = pouvez;
    page_varLoader.addEventListener (Event.COMPLETE, page_var_comp);

    page_variables. SendRequest = "get_about_text";
    Send the data to the php file
    page_varLoader.load (page_varSend);

    function page_var_comp(event:Event):void {}
    All text from mysql database in the field of text
    PageTitle = event.target.data.about_title;
    PageContent = event.target.data.about_content;
    txtTitle.htmlText = "" + PageTitle;
    txtContent.htmlText = "" + PageContent.
    }

    =================

    PHP FILE

    =================

    <? PHP
    connect to your database to MySQL here
    include_once "connect_to_mysql.php";

    CONTENT OF THE LOAD
    If ($_POST ["sendRequest"] == "get_about_text") {}

    $sql = mysql_query ("SELECT title, content FROM cms_content");

    While ($row = {mysql_fetch_array ($sql))}
    $titles = $row ["title"];
    $contents = $row ["content"];
    print 'about_title = $titles. "about_content = $contents";
    #echo $row ["title"]. $row ['content'];
    }
    }
    UPDATE CONTENT
    If ($_POST ["sendRequest"] == "update_about_page") {}

    $titles = $_POST ["title"];

    $content = $_POST ['content'];
    $sql = mysql_query ("UPDATE cms_content SET title = '$titles', content =' $contents '");
    }
    ? >

    Any help?

    your php returns a string, not the variable/value pairs.

  • Unknown column in the PHP/MySQL field list

    I created a feedback form for our airshow site and it works great. I now create some pages of the review, which are also working well, then

    ... I decided to improve one of the review pages and now it does not work... sigh.

    We ask stakeholders to provide their zip code and I have a vision showing the number of responses by postcode, this works very well and can be seen here http://www.hollisterairshow.com/feedback-results.php , so I decided to improve it by adding the City / State based on zip code. I created a new table called 'postcodes' and imported a list of zip codes and city / state info - all the 42,000 + of them.

    The PHP/MySQL, who works is illustrated below

    <? PHP
    Connect MySQL

    $query = "SELECT zip, COUNT (zip) ZIP GROUP BY feedback";

    $result = mysql_query ($query) or die (mysql_error ());

    Print results
    While ($row = {mysql_fetch_array ($result))}
    echo $row ["zip"]. " ". $row ['COUNT (zip)'];
    echo "< br / > ';
    }
    ? >

    As I am now faced with two tables, I thought that I had to add the name of the table in any field, so I added the names of tables and fields to the new table so

    I changed the PHP / MySQL as follows

    <? PHP
    Connect MySQL

    $query = 'SELECT feedback.zip, COUNT (feedback.zip), zipcodes.citystate OF feedback codes postal WHERE feedback.zip = zipcodes.zipcode GROUP BY feedback.zip';

    $result = mysql_query ($query) or die (mysql_error ());

    Print results
    While ($row = {mysql_fetch_array ($result))}
    echo $row ['feedback.zip']. " ". $row ['COUNT (feedback.zip)']. " ". $row ['zipcodes.citystate'];
    echo "< br / > ';
    }
    ? >

    and it fails when I run it says ' Unknown column 'feedback.zip' in "field list '"

    I would be grateful any suggestion on this, I am new on this PHP/MySQL stuff.

    Thank you

    Tony

    Tables listed in the From clause must be separated by commas. As it is, it is evaluated as an alias.

  • On the remote host MySQL database: password encryption?

    Hello

    I discovered the world of PHP and MySQL in the last days. I didn't get all the intricacies still but nevertheless I managed to set up a server "localhost" on my computer, create a MySQL database and display correctly information in this database in HTML using PHP pages.

    I am now at the stage of transferring it to the remote host where the site will happen: I exported my database, imported these information in the database on the server host and I n unexpectedily even just to get my PHP/HTML pages to connect to this database. It's great.

    I have one question. I've read a lot of thread in this forum about this, but haven't seen an answer: must the password encryption? I mean, when I connect to a database using DW CS4, the software creates for me a connections folder in my Web site root folder and stores inside a little PHP to the folder with the server name, database name, user name and password which are necessary to allow PHP to connect to the MySQL database. It is all printed clearly in there. Once which is transferred to the remote host, it is always accessible to anyone? Should I not worry and try to hide the password?

    Any thoughts on this would be greatly appreciated.

    Emilie

    Thread moved to Dreamweaver application development forum, which addresses other issues aside and PHP/MySQL server.

    As long as the server is enabled in PHP, put the connection details in a PHP file like this is not a problem. PHP code is processed on the server. Only its output is sent to the browser. Even if someone guesses the name of your connection file, they won't see anything if they try to load the page in a browser. The only way they can see it is to hack into the server. It is important to have passwords on your FTP account.

  • Loging a user in mysql database example

    I'm looking for a clear example or a tutorial on loging a user in one database mtSQL.  I don't want an automatic connection as you get with the Flex Builder db Wizard.  What I have is a screen where the user enters a user name and password, and then click a button to connect.  I must be able to manage the user enters is not in the user name or password, which manages the mySQL rejecting the connection.  I've done several serches here both Google and can't find anything I need.  Everyone out there can point me in the right direction?

    It's actually a simple thing faily to do... at least I think that's what you try to do based on what you said:

    Here is the code to the MXML set up the login of the user interface:


           
           
           
           
           

    you need a HTTPService call (which the above send button sends) to the PHP file that will check the credentials of the user against what is in the comic book:

    (you mind, I would encrypt the password on the client side too before sending it on the PHP file)


           
                {username.text}
                {password.text}
           

    now, the result of the HTTPService goes to a function called checkLogin (event) that is:

    Import mx.rpc.events.ResultEvent;

    private void checkLogin(evt:ResultEvent):void
    {
    If (evt.result.loginsuccess == 'Yes') {}
    the user is GOOD, do something now
    }
    If (evt.result.loginsuccess == 'no') {}
    mx.controls.Alert.show ("username/password invalid name");
    }
    }

    and to the PHP file, it checks compared to the DB and generates an XML, which is kicking to Flex:

    <>

    connect to DB however you do, I have a function db_connect() which give the floor

    $conn = db_connect();

    $username = mysql_real_escape_string($_POST['username']);
    $password = mysql_real_escape_string($_POST['password']);

    If you have encryption, then make sure you do this here (md5 or other)

    also, make sure that do you post the entries for the SQL injection and XSS attacks, but I'm not that cover here

    $query = "SELECT * from usertable WHERE username = '$username' AND password = '$password" ";
    $result = mysql_fetch_array (mysql_query ($query));

    $output = "";

    {if(!$result)}

    $output. = « no » ;

    $output. = "« ;
    } else {}

    $output. = "yes";

    $output. = « » ;

    }

    print ($output);

    ?>

  • PHP Mysql Date back

    Hello

    I have this page which refers, among other things, a date a table. http://www.southmoorac.com/matches.php

    the problem is, the date is returned in the wrong format. I wanted that it is formatted as dd-mm-aa

    Here is my code:

    $sql = 'sΘlectionner the place, Date, draw, Notes from matches by Date ";


    $result = mysql_query ($sql);

    print ("< table cellpadding = id ="datatab"5px" name = 'datatab' > "");
    Print ("< th > < /th > < th > Date < /th > < th > draw < /th > < th > < /th > Notes");

    While ($db_field = mysql_fetch_assoc ($result))
    {

    print ("< tr align = left > < td >". $db_field ['place'].) "< td >". $db_field ['date']. "< table > < td >". " $db_field ['draw']. "< table > < td >". " $db_field ['notes']. (' ' < table > < /tr > ");

    }
    Print ("' < / table > < other >" ");
    }

    This code works very well, except for the date format.

    I tried

    $sql = "select place, date_format (" Date, ' %d %m %y "), Draw, Notes from matches by Date";

    but that doesn't return any date at all. -even if no error is reported.

    any ideas?

    When you use a MySQL like DATE_FORMAT function, you assign the result to an alias by using the AS keyword. Change your SQL like this:

    $sql = "select Venue, date_format(Date, '%d %m %y') AS theDate, Draw, Notes from matches order by Date";
    

    Your formatting will be available as $db_field ["continue"].

    Note: do not use reserved words, such as 'date', as the name of a column in a database table. MySQL has made an exception in the case of 'date', because so many people have abused it, but it is considered bad practice. You can find a list of words reserved MySQL in the manual here: http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html.

  • MySQL - blocking duplicate entries

    Hello

    The attached code works very well. However, it allows the addition of lines that are duplicated in the MySQL database. How can I reject duplicate rows? (I also want to print an error message if an already existing entry is entered in the HTML form.)

    Thanks in advance,

    John

    "ArizonaJohn" wrote in message
    News:go02ai$CJK$1@forums. Macromedia.com...
    >
    > The attached code works very well. However, it does allow the duplicate lines
    > in the
    > MySQL database. How can I block the duplicate lines? (I join
    > to print
    > an error if an existing entry is entered in the
    (> HTML form).

    To avoid duplicate rows in a MySQL database, add a UNIQUE index
    the column you want to not allow entries double. You can
    Add a UNIQUE index using phpMyAdmin. Make sure first that you have
    removed all the duplicate entries. If you do not use phpMyAdmin, you can
    Run the following SQL query to add a UNIQUE index to the site column
    a tractors named table:

    ALTER TABLE ADD UNIQUE tractors (site)

    If someone tries to insert a value in a column with a duplicated
    A UNIQUE index, MySQL returns the error number 1062, then change the last line
    your code like this:

    $result = mysql_query ("INSERT INTO 'tractors' VALUES
    ('$site', 1, 'vote') ») ;
    If (! $result & mysql_errrno() == 1062) {}
    echo "sorry, $site is already registered."
    }

    --
    David powers
    Adobe, Dreamweaver community expert
    http://foundationphp.com

Maybe you are looking for