Jump to content

sptrsn

Members
  • Posts

    57
  • Joined

  • Last visited

Everything posted by sptrsn

  1. AbraCadaver you are awesome! That worked great. Thank you so much. I actually have been reading several articles about the ' and ". Just not the brightest crayon in the box. Thanks again.
  2. Could someone help an absolute beginner? I've been searching for hours and can't figure it out. I have an array and I would like to position each of the variables in various positions around a page. I have a div tag with an absolute position statement, how would I wrap it around the one variable below..."$name" ? I actually have several variables in the array. I've reduced it to one for simplicity. Thanks so much for any help. <?php $query = "select * from todolist where id='$id'"; $result = mysql_query($query); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) extract($row); echo "$name"; //this is the element that I want to position ?> I had envisioned that it would be something like this.... '<div id="position1">' echo "$name" '</div>'; But yea, that doesn't work.
  3. Thanks for the input. I'm not a coder, but I could probably work my way through it as just php, but forget javascript. I'm clueless. I'll post whatever I end up doing. I'm kind of thinking it'll be pretty cool.
  4. I have a little php site that looks up data in my crm database quickly and easily on my iphone. Right now it's wide open because I'm in and out of it all day and trying to input uid/pw into a secure login page is a pain in the rear. (we're not talking about sensitive data here and I'm the only user.) So, I would like to design a screen with several large graphic buttons and be able to touch those buttons in a specific sequence that would functionally allow a secure login. Similar in concept to the android screen lock. You touch a sequence of numbered buttons and voila, the screen unlocks. It does not open a text field for data entry into two separate fields. So if my access code was 1,2,3,4 and the screen was divided into quarters with a large number on each one, I would touch the buttons in that order and it would open the main page. How would this best be accomplished? Is there a php function to essentially build a variable through successive key presses? then with a final submit it would just check that against a "secret code" and allow access. Thanks for any input.
  5. Thanks. I've read that page 5 times and ....well.....I'm stupid. I think this is what I want........ number_format(2, ',', '.'); But where do I insert it, or how do I combine these statements? "Amount:{$row['amount']}<br>" .
  6. Thanks for any help. I'm not a programmer, but have pieced together a bit of code to allow us to look up basic data on our mobile phones. I need to round the number in one of the fields to zero decimals. The data coming out of the 'amount' field has 4 decimal places, and all I need is a whole number. I've been reading all over the place and have tried several different techniques, but just can't quite get it. Sure appreciate your help. Thanks, Steve Here's my code.... **************************************************************** $result = mysql_query($query); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "Name: {$row['last_name']}, {$row['first_name']}<br>" . "Company: {$row['company']}<br>" . "Amount: {$row['amount']}<br>" . *****************************************************************
×
×
  • 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.