User Profile

Collapse

Profile Sidebar

Collapse
shanehenery
shanehenery
Last Activity: Jul 5 '10, 07:35 AM
Joined: Feb 11 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • shanehenery
    replied to I have an error in your SQL syntax;
    in PHP
    Hi

    I have changed that and made it all the same

    Code:
     $result="CREATE TABLE `course`(
    `cname` varchar(50) NOT NULL default,
    `cid` int(6) NOT NULL auto_increment,
    PRIMARY KEY (`cid`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1";
    but I am still getting the same error
    See more | Go to post

    Leave a comment:


  • shanehenery
    started a topic I have an error in your SQL syntax;
    in PHP

    I have an error in your SQL syntax;

    Hi

    I am getting this error #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '$result="CREAT E TABLE 'course`(
    `cname` varchar(50) NOT NULL default,
    `cid` in' at line 1
    when I am adding my code to the data base
    I dont understand the error that well and cant find any problem to my code can you pleas help is is my server...
    See more | Go to post

  • shanehenery
    replied to error, unexpected T_STRING in
    in PHP
    HI
    it is just an example ones there is no error on the script I will add it to my db
    but my db don't want to accept the code be cos there is a error
    See more | Go to post

    Leave a comment:


  • shanehenery
    replied to error, unexpected T_STRING in
    in PHP
    HI
    if that is all I need to do it is still no working
    now it gives me a error unexpected , in line 20
    Code:
    `sname` varchar(40) NOT NULL default",
    See more | Go to post

    Leave a comment:


  • shanehenery
    started a topic error, unexpected T_STRING in
    in PHP

    error, unexpected T_STRING in

    Hi
    I will like to add this below code to my data base but I have a string error that I cant correct be for I put it in my db can you pleas help

    I cant find any thing wrong with this line but it tels me that I have a "unexpected T_STRING" error in line 11 that is the line starting with "CREATE TABLE `course` and I sagest if this one line gives me a string error the rest of the lines will give me a error to be cos...
    See more | Go to post

  • shanehenery
    started a topic parse error, unexpected T_VARIABLE
    in PHP

    parse error, unexpected T_VARIABLE

    Hi



    I have a "parse error, unexpected T_VARIABLE" in the following php code

    it is in line 43 that will be the line starting with $sno=$row['0'];



    I have tryed different things like including { } in the beginning and the end of the string

    that is not working at all

    can you pleas help me out



    Code:
    
    
    ...
    See more | Go to post

  • shanehenery
    replied to calculation problem
    Discount Deduction Calculation Problem

    Hi

    I have a problem in my coding I will like to deduct 15% from my RentalAmountTex tBox to be displayed in my
    AmountDueTextBo x

    Code:
    AmountDueTextBox.Text = RentalAmountDecimal - 0.1
    then in my AmountDueTextBo x it only displays -0.1
    it is not doing the calculation
    an you pleas help

    Code:
    Public Class VideoBonanza
    ...
    See more | Go to post

    Leave a comment:


  • shanehenery
    replied to calculation problem
    Hi

    and it is giving me this message "A first chance exception of type 'System.DivideB yZeroException' occurred in mscorlib.dll" and "A first chance exception of type 'System.FormatE xception' occurred in mscorlib.dll"

    where can I look for the code so then I can fix it
    See more | Go to post

    Leave a comment:


  • shanehenery
    replied to calculation problem
    Hi

    ok I left DISCOUNT_RATE_D ecimal as a Const
    and deleted the one that was extra in dimensioning(li ne 13)
    it is calculating the dscount as 0.15D thats fine now
    but it is showing "0.00" in the DiscountTextBox
    when I click calculate.

    but the rest of the calculation is not working
    be cos from ther I need to calculate the summary af the Total Discount , Total Discount Amount...
    See more | Go to post

    Leave a comment:


  • shanehenery
    replied to calculation problem
    Hi

    I have added the individual Try/Catch block of each calculation
    and I have removed the "C"and"N"
    it is still not calculating at all

    only thing it is calculating is the "QuantityTextBo x"+ "PriceTextB ox" ="ExtendedPrice TextBox"
    See more | Go to post

    Leave a comment:


  • shanehenery
    replied to calculation problem
    HI

    This is the code I am using
    It needs to calculate the amount of books you bye with its discount of 15%
    nothing is calculating


    Code:
    Public Class Form1
    
    'Declare module-level variables and constants
        Private QuantitySumInteger, SaleCountinteger As Integer
        Private DiscountSumDecimal, DiscountedPriceSumDecimal As Decimal
        Const DISCOUNT_RATE_Decimal
    ...
    See more | Go to post

    Leave a comment:


  • shanehenery
    replied to calculation problem
    Hi

    Yes , I can remove the 'D' but it doesn't make to program to calculate
    it is still not working
    See more | Go to post

    Leave a comment:


  • shanehenery
    replied to calculation problem
    Hi

    It is still not working

    I cant change the
    Code:
    Const DISCOUNT_RATE_Decimal As Decimal = 0.15D
    0.15D to a lower case d

    It gos back to a D by defult

    And I have declared
    Code:
    Const DISCOUNT_RATE_Decimal As Decimal = 0.15D
    as a Decimal
    See more | Go to post

    Leave a comment:


  • shanehenery
    replied to calculation problem
    Hi

    Yes this is my 3rd project
    I have put in a breakpoint and went from line to line with F10
    from this line
    Code:
     Const DISCOUNT_RATE_Decimal As Decimal = 0.15D
    and it stops by this line
    Code:
     Private Sub RnR_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    once it stoped then my project pops up and it gives me a message in a Immediate window...
    See more | Go to post

    Leave a comment:


  • shanehenery
    replied to calculation problem
    Hi
    Once I debug it gives me a message
    ( A first chance exception of type 'System.FormatE xception' occurred in mscorlib.dll )


    then I add my numbers to calculate
    the red dot of the breakpoint gets that yellow arrow on it and the code turns yellow
    after I click calculate then there is a message telling me
    (not Responding)
    then I need to end the program
    See more | Go to post

    Leave a comment:


  • shanehenery
    replied to calculation problem
    Hi

    I have put in a breakpoint in line 3
    then when I debug the hole program doesn't work
    I had to end the program
    See more | Go to post

    Leave a comment:


  • shanehenery
    replied to Calculate Discount
    in .NET
    Hi

    it is South African rands it is the currancy that South Africa use
    the simbol is a "R"
    See more | Go to post

    Leave a comment:


  • shanehenery
    started a topic calculation problem

    calculation problem

    Hi

    It is a calculating form to indicate on how many books you bay and the total discount you will get after you click calculate
    it is not all the coding in the hole form
    just the calculate part
    It is not calculating the 15% discount
    DiscountTextBox
    , discount price
    DiscountedTextB ox
    it only gifs me a 0.00 amount

    ore any of the calculations in the summary group...
    See more | Go to post
    Last edited by tlhintoq; Apr 14 '10, 02:53 PM. Reason: [CODE] ...Your code goes between code tags [/CODE]

  • shanehenery
    replied to Calculate Discount
    in .NET
    Hi

    can you tell me how do I change the currency from dollar to rand
    in a TextBox
    it needs to calculate in rands and add the R symbol in front of the calculation
    ex: R1.00

    Thanks
    See more | Go to post

    Leave a comment:


  • shanehenery
    replied to Calculate Discount
    in .NET
    Hi
    I am using vb.net
    It is a calculating form to indicate on how many books you bay and the total discount you will get after you click calculate
    it is not all the coding in the hole form
    just the calculate part
    Code:
    'Calculate the price and discount
    
            Dim QuantityInteger As Integer
            Dim PriceDecimal, ExtendedPriceDecimal, DiscountDecimal, DiscountedPriceDecimal, AverageDiscountDecimal,
    ...
    See more | Go to post
    Last edited by Frinavale; Apr 14 '10, 01:26 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.

    Leave a comment:

No activity results to display
Show More
Working...