Jump to content

foreverhex

Members
  • Posts

    91
  • Joined

  • Last visited

About foreverhex

  • Birthday 10/02/1986

Contact Methods

  • AIM
    Rkxismine
  • MSN
    syblingq@hotmail.com
  • Website URL
    http://www.syblings.net

Profile Information

  • Gender
    Male

foreverhex's Achievements

Member

Member (2/5)

0

Reputation

  1. Dont get me wrong. I use arrays a lot, it just wouldnt be efficient to use then for this script... a lot of implodes and explodes.
  2. for: mgallforever Hey thanks for the suggestion, Im always reluctant to use for and for each. Its working now! Are you really only 15? for: PFMaBiSmAd I didnt put my whole code down. There are a bunch of variables that I am using and my initial idea was to use multi-dimension arrays but that would be a lot more coding than needed. Thanks though
  3. I know Im getting into strange territory, put I need to make a superglobal have a variable that I am looping in a while statement. I think I need to use a variable variable. I figured I needed help because my brain feels backwards. What I want to do is make basically: <?php $ind_id = $_POST[ind_id $num ]; ?> i already know that this is wrong. But its what I'm try to do so that the variable would say $_POST[ind_id1], $_POST[ind_id2] and so on. Is there a way to do this? Or am I backwards and need to do this a completely different way?
  4. OMG! all apologizes... I am so tired, wow, I have been programing with php for 4 years and I forget and then over look that. wow I am so ashamed.
  5. I don't know if its because Im tired or something but I seem to be over looking something. Could some one please help... I think I just lost all sanity. I keep getting This is a normal error, so I go back to see if somethings wrong with my coding in SQL and I can find it. Here is the code <?php //There is other crap before this that in theory shouldn't matter. elseif ($_GET[action] == 'close') { //First get the order and make it nice and viewable include 'rhf_db.php'; mysql_select_db('rhf_orders') or die('Could not select database'); $dbnum = $_SESSION[number]; $sql_getord = ("SELECT * FROM $dbnum WHERE status = 'open' ORDER BY date DESC") or die("Error getting order: " . mysql_error()); $sqlnum = '0'; while ($row_getorder = mysql_fetch_array($sql_getord)) { $preorder = $preorder . $row_getorder[item][$sqlnum] . ' | ' . $row_getorder[quantity][$sqlnum] . '<br>'; $sqlnum++; } echo 'preorder: <br><br>' . $preorder; ?> Thanks in advance!
  6. Yeah, the above is true. I was just grasping for a solution. Another way of doing it... depending on what your final reason is, is to store the encypted number and then store a partially encypted number. Kinda like site do to show you your credit card number. Sorry for the misspells if any, I'm still sleepy.
  7. if you are using SQL of some sort you can store two fields (one encypted and one not) and only access the unencypted one when nessary.
  8. As far as I know, you can't reverse encrypt.
  9. Try replacing: <?php echo $message ; ?> with <?php echo $_GET[message] ; ?> but if you do that your login message will be broken...
  10. Sorry I haven't been on. If you are still having a problem you can try this: I noticed that $num isn't set so. simply put $num = '1'; above the code I gave you.
  11. I'll take a shot in the dark. Im not good with php/java/ajax mix, but what it seems like is you need your loop to increase the marker number. So something like while($row = mysql_fetch_array($result)) { echo" var marker" . $num . "= new GMarker(new GLatLng($lon,$lat), markerOptions); map.addOverlay(marker" . $num . '); GEvent.addListener(marker" . $num . ", 'click', function() { marker" . $num . ".openInfoWindowHtml(WINDOW_HTML" . $num . ");}); "; $num++ } Sorry if this seems stupid. I figured I would help as much as possible.
  12. Yes, this would help. Chances are its simply a quote problem. I get errors like this when I forget to add a quote to something like WHERE username = $blah instead of WHERE username = '$blah'
  13. all you have to do is change this: echo '<div class="$bg">' . "\n"; with this: echo '<div class="' . $bg . '">' . "\n";
  14. The foreach loop looks cleaner, but I just got the while loop to work that blackcell suggested. I don't want to touch it, it may break, lol. Thanks for all your help!
  15. That seems like it would work, I see I needed to loops running. And yes I was having problems cycling the array. I'll give it a try and let you know.
×
×
  • 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.