Jump to content

foreverhex

Members
  • Posts

    91
  • Joined

  • Last visited

Everything posted by foreverhex

  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.
  16. I don't know if its somewhere else in your script but you need to point your script to the database that the table is in. Maybe that can help.
  17. I don't know if this is possible. It sounds like it should be. Hopefully I can explain, but here I go: I have an array that is combined with varibles that say either 1 or 0 (true or false). What I want to do if possible, is take that array, everytime the arrays value = 1 ($array[0] = 1) show a script. Which will be a while loop also to handle some mysql arrays. My main goal is so I don't have to copy paste the while script over and over. Thanks for any help!
  18. and I can install that on to windows without a server OS? I'll give it a try.
  19. I was wanting to know if there was a program to simulate MySQL on a winxp system? I don't really want to have half my computer as an apache server just so I can test some php/mysql scripts. I already have php 5 on my computer and I was just wondering if I could have its favorite SQL. Thanks for any help.
  20. I agree akitchin. The guy still hasn't gotten a hold of me. I think its day 6 or 7. So I think he is going to try and do it himself, with that ready made system that he got. Oh well.
  21. No, what happen is I told him 3500 and I don't think he liked that. lol
  22. Yeah, the guy said he invested over $2k already. On what, I'm not sure. But I think the rate I gave him freaked him out. Like you were saying. So he went out and bought a community based php program called dolphin, $100. I think it’s like PHPNuke. LAME! But he still needs me to make the layout fit and do a few custom things. So I still get paid, but more or less in the hundreds instead of the thousands. No one else got the job except a company that charges WAY less. boooo.
  23. I started learning web programming around the same age. You'll grow a lot with it. I guess I know your meaning by webdesign being art... kinda, design and art are on a fine line in my head. I love this place also, the people here have helped me tons of times. Welcome!
  24. The guy gave me a detailed map of what he wanted. Like I said he had a programmer start the project and then bailed. So the layout is there and the mySql tables are there, some basic scripts. But like you said it'll take me a hour just to figure out where everything is. I put a lot of what you all said into mind. I end up asking him $3500 and now I'm waiting for an answer. Also he is coming to me for upgrades which I can charge him again. For teng84: > how big is the company (if company) -They just started, but are expecting the company to get big. > how much they can pay you -He won't say, he would rather me give him my rates > how rich they are -Meh, not sure. > how much they need that -They need the site lots and lots > how long -I'm expecting only 2 months for me to get it done. > who will provide some data needed -The owner, some of the data is already up... some. Thanks a lot, you have all helped me think more about the value of my skill. I'll keep you all updated.
  25. Wow, I had no idea that programing was such and expensive thing... I guess I can tell the person what I already know, and what you all have mentioned. This is a big project. I just hope that they'll expect to spend a big number. $200 for a file uploading system? Wow!
×
×
  • 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.