User Profile

Collapse

Profile Sidebar

Collapse
Yew12
Yew12
Last Activity: Apr 27 '08, 08:45 PM
Joined: Mar 14 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Yew12
    replied to Simple Login using Ms Access ODBC
    in PHP
    Sorry for the late repaly.

    Everything working as planned

    Thanks.
    See more | Go to post

    Leave a comment:


  • Yew12
    replied to Simple Login using Ms Access ODBC
    in PHP
    Ok first form the one which get the users input

    [PHP]<form name="form1" method="post" action="Logon1. php">
    <td>
    <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFF F">
    <tr>
    <td colspan="3"><st rong>Login </strong></td>
    </tr>
    ...
    See more | Go to post
    Last edited by Yew12; Apr 25 '08, 12:08 AM. Reason: spelling

    Leave a comment:


  • Yew12
    replied to Simple Login using Ms Access ODBC
    in PHP
    I have changed it so it now reads

    [PHP]$sql="SELECT * FROM $tbl_name WHERE username='$user name' and password='$pass word'";
    $stmt=odbc_prep are($conn, $sql) or die (Print "odbc prepare error".odbc_err or());
    $result=odbc_ex ecute($stmt) or die (Print "result error ".odbc_error(). '-'.odbc_errormsg ());
    [/PHP]

    Any other ideas.

    Thanks so much
    See more | Go to post

    Leave a comment:


  • Yew12
    replied to Simple Login using Ms Access ODBC
    in PHP
    Thanks, added it in the error reads

    result error 07001-[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2.

    I have tried looking checking that the names are right and everything but still no luck.

    Also thanks for helping a novice you are helping more that you think.
    See more | Go to post

    Leave a comment:


  • Yew12
    replied to Simple Login using Ms Access ODBC
    in PHP
    Thanks very much, but unfortunatly i still get an 07001.
    See more | Go to post

    Leave a comment:


  • Yew12
    replied to Simple Login using Ms Access ODBC
    in PHP
    I get the result error. with out a odbc error number.
    See more | Go to post

    Leave a comment:


  • Yew12
    replied to Simple Login using Ms Access ODBC
    in PHP
    Sorry I will try to clarify,

    I have one HTML page with two input boxes on and it passes the variables username and password to this php script where I want to check to see if they are valid and if so send them to another page, if not then display message "Wrong Login".

    Any other questions just ask.
    See more | Go to post

    Leave a comment:


  • Yew12
    started a topic Simple Login using Ms Access ODBC
    in PHP

    Simple Login using Ms Access ODBC

    I am trying to create a simple login for my webpage, but Im a bit of a novice and cannot see where Im going wrong any help would be much appreciated.

    I'm using an access database and ODBC.

    The code I have got is below;

    [PHP]<?php

    $tbl_name="tblC ustomer";

    $connstr = "DRIVER={Micros oft Access Driver (*.mdb)}; DBQ=" . realpath("2Poin tB.mdb").";";...
    See more | Go to post

  • Yew12
    replied to Trying to update data in access database
    in PHP
    Thanks very much that help a lot. At least now I get an error.

    [PHP]<html>
    <head><title> Customer Information Updated</title></head>
    <body>

    <?php

    $connstr = "DRIVER={Micros oft Access Driver (*.mdb)}; DBQ=" . realpath("2Poin tB.mdb").";";
    $conn=odbc_conn ect($connstr,'' ,'') or die(Print "connect error: ".odbc_error()) ;...
    See more | Go to post
    Last edited by Yew12; Apr 16 '08, 10:42 PM. Reason: thanks

    Leave a comment:


  • Yew12
    started a topic Trying to update data in access database
    in PHP

    Trying to update data in access database

    I have been trying to update the details in a access database but, all I get is a white screen and all the errors I have built-in give me no help at all.

    All help is greatly appreciated.


    [PHP]<html>
    <head><title> Customer Information Updated</title></head>
    <body>

    <?php

    $connstr = "DRIVER={Micros oft Access Driver (*.mdb)};...
    See more | Go to post

  • Yew12
    started a topic T_constant_encapsed_string
    in PHP

    T_constant_encapsed_string

    I'm hoping some one will know where I've gone wrong with the following.

    [PHP]<?php

    putenv("TNS_ADM IN=/u1/oracle/Produdcts/shu10g/network/admin");

    $con = OCIlogon("Usern ame","Password" ,"shu10g");

    $query "Begin p_room_content( 1,1,:var_room_i d, :var_fixture_id , :var_fixture_de scription); End; ";

    $stmt = OCIParse($con, $query)...
    See more | Go to post

  • Yew12
    started a topic Connecting to a Access database using ODBC and no DNS
    in PHP

    Connecting to a Access database using ODBC and no DNS

    Hi, I'm having problems connecting to a Microsoft Access database. Im using PHP and ODBC but im not using a DNS.

    The scripts below give no errors but I they only give me a blank white screen.

    Any would be greatly appresiated. Please help.

    Script 1
    [php]
    <HTML>
    <HEAD>
    <TITLE> Browse the race table </TITLE>
    </HEAD>
    <BODY>
    ...
    See more | Go to post
    Last edited by ronverdonk; Apr 12 '08, 10:56 PM. Reason: code tags corrrectly placed

  • Yew12
    started a topic Using a text box disply date and time.
    in PHP

    Using a text box disply date and time.

    We are trying to get the following script to display the full date and time. The field we are calling does have both date and time in. Unfortunatly its only returning the date.

    So I tried putting the sql "to_date('Adate ','dd/mm/yyyy hh24:mi')" to disply the full field. No Luck

    Any help is much appresiated. Thanks.[php]<HTML>
    <HEAD><TITLE> Property Results </TITLE>
    </HEAD>...
    See more | Go to post
    Last edited by ronverdonk; Apr 11 '08, 05:53 PM. Reason: warning and code tags!

  • Yew12
    replied to Adding minutes to a date field
    Sorry I found out that () brackets were the key, so I include the code for others

    Select TO_CHAR(adate, 'dd/Mon/yyyy hh24:mi')as adate, to_CHAR(ADATE + ("Duration(Min) "/1440), 'dd/Mon/yyyy hh24:mi') as NEW_ADATE, "Duration(M in)" from Appointment;

    Thanks anyway
    See more | Go to post

    Leave a comment:


  • Yew12
    started a topic Adding minutes to a date field

    Adding minutes to a date field

    Ok I have a date field called ADATE and I want to add the column "Duration(M in)" to this date.

    I have had ago at the code but it still doesn't work.

    I have tried dividing the added "Duration(M in)" but the answers are incorrect each time.


    Select TO_CHAR(adate, 'dd/Mon/yyyy hh24:mi')as adate, to_CHAR(ADATE + "Duration(Min)" , 'dd/Mon/yyyy hh24:mi') as NEW_ADATE, "Duration(M in)"...
    See more | Go to post

  • Thanks

    Now to execute the code we used the following statment

    VARIABLE g_error VARCHAR2(200);

    EXECUTE p_check_room_al loc_dates (26, 1, '12-MAR-2008', '24-MAR-2008', :g_error);

    Print g_error;

    As we know that the following booking is already in use it does give the error and does not insert the record, but if we enter data that should not fail the g_error comes back blank but...
    See more | Go to post

    Leave a comment:


  • After messing with the code some more and taking out the line p_error varchar

    the compliation errors go away.

    But the script still doesn't perform the correct action.

    hope this helps...
    See more | Go to post

    Leave a comment:


  • No. It gives me the response

    Warning: Procedure created with compilation errors.

    So I used the following script to check the errors.

    show errors procedure p_check_room_al loc_dates

    That's how I got the unhelpful responses from PL/SQL
    See more | Go to post

    Leave a comment:


  • Sorry but we are unsure as to what you mean.

    If you are meaning the p_error then we have used it several times.

    This procedure is only going to be used on one table.

    Thank you very much for your patience with a novice.
    See more | Go to post
    Last edited by Yew12; Apr 1 '08, 02:53 PM. Reason: Sp

    Leave a comment:


  • PL/SQL:PLS-00410 duplicate fields in RECORDTABLE or argument list are not permitted

    Hi,

    The following code is supposed to stop a booking being made if falls between another bookings start and end date.

    Unfortunately I get the following error message

    PLS-00410: duplicate fields in RECORD,TABLE or argument list are not permitted

    Any help would be greatly appreciated.

    Thanks in advance

    [code=oracle]

    CREATE OR REPLACE PROCEDURE...
    See more | Go to post
    Last edited by amitpatel66; Apr 1 '08, 01:20 PM. Reason: code tags
No activity results to display
Show More
Working...