Jump to content

sleepingpeace

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Posts posted by sleepingpeace

  1. I'm retrieving a height value from a database as a string that is valued as 5'6", 6'11", etc...

     

    My code is this

     

    $('select[name=height] option').each(function ()

    {

        if ($(this).val() == '<?php echo $height ?>')

    $(this).attr('selected', 'selected');

    });

     

    What I'm doing here is going through each option in a select dropdown and comparing the retrieved value from the database to the option's value and auto-selecting that option when the match is found. The issue is that the height value, say 5'6", contains a single and double quote which terminates the string in the evaluation prematurely. What is the best option to fix this?

  2. I'm trying to use MySQL to insert some values for an enum column. The values contain height measured in feet and inches such as 6'2". Problem is that it contains the single and double quotes and doesn't quite work the way I'd like. So I tried entering a value of '6''2"' or '6\'2\"' and neither work... Who's got the answer to this one?

  3. Good day script kiddies. Looking for replies from professionals (specifically your are employed in the field by an employer, not just a freelancer) in regards to web design and development cost. I'm talkin' done from scratch, including logo etc... Let's say it has a home page with the logo, a list of ladies and thumbnails, with a table detailing their stats such as cup size, hair colour, etc... And the thumbnail would bring up each ladie's profile with a gallery of them. There are contact options with sendmail forms and I'm thinkin' of some kind of option to have the boss enter the status of each lady at any given time, available/not available. I would also need in the admin panel, to allow the boss to create/update/delete ladies profiles as well since they come and go.

     

    This is the bare minimum. I'm also taking care of her hosting needs, etc... So.... For the pros, what does your COMPANY charge for a site similar to this?

  4. Good day folks,

     

    My class created a DAL with what the instructor gave us but I feel it to be a bit limited. Is there any other ones around that someone can recommend? It has to be able to cover all possible SELECT, INSERT, UPDATE, DELETE variations including adding a WHERE clause such as WHERE 'X' = 'X' AND 1 = 1. The one I have allows only for WHERE 'X' = 'X', and I can't add the AND to it, which limits everything I need to do.

     

    Thanks

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.