Jump to content

NoDoze

Members
  • Posts

    199
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

NoDoze's Achievements

Member

Member (2/5)

0

Reputation

  1. Excuse me...! Who's the one whinning??? Sorrrry for "asking you to devote your free time"...but I never recall asking YOU to devote your precious time! Wow you people are on some high horse! If you're so worried about your free time, why are you even in a "community forum"...??? Or perhaps the status of this forum has changed since the last time I was in here...? Clearly you enjoy your free time bashing, flaming, and criticizing.... Sheeesh, I was stumped, and attempted to throw the issue out there in the "community"...but clearly this was the wrong venue... ...I missed where it said, "for the chosen who are willing to devote their time to the minions." I was looking for some professionals.... What does this even have to do with what I'm talking about??? In your example, he would be your BOSS, it would be his prerogative. End of subject. Would you kids like to continue with the flaming...?
  2. Don't get me wrong, it helped ALOT. They are one in the same, because the values are coming from a form, I'm not sure how to explain it. And I can't just paste code because it's too sensitive, it would be a lot of work to "clean it". I used to come here LONG time ago to get quality help. If I knew I was going to get criticized, I would have never returned. If that's what I'm getting now, no thanks. Great way to discourage and drive away people! I'll figure out a solution using another method.
  3. This looks like it would work... But I forgot to mention the arrays are coming in as variables...how would I do this...? $data = Array ( 0 => $row ) , 1 => $id ) , 2 => $stat1 ) , 3 => $stat2 ) , 4 => $stat4 ) ); $new = array(); foreach ($data as $arr) { foreach ($arr as $k => $v) { $new[$k][] = $v; } } echo '<pre>',print_r($new, true),'</pre>'; Thanks!
  4. I'm totally stumped...!!! Currently I have: Array ( [0] => row1 [1] => row2 ) Array ( [0] => 17240475 [1] => 17240475 ) Array ( [0] => 28.92 [1] => 165.01 ) Array ( [0] => 2 [1] => 1 ) Array ( [0] => 62.00 [1] => 165.01 ) OR Array ( [0] => Array ( [0] => row1 [1] => row2 ) [1] => Array ( [0] => 17240475 [1] => 17240475 ) [2] => Array ( [0] => 28.92 [1] => 165.01 ) [3] => Array ( [0] => 2 [1] => 1 ) [4] => Array ( [0] => 62.00 [1] => 165.01 ) ) I need this to be grouped by key so that it's like this: [0] => row1 [0] => 17240475 [0] => 28.92 [0] => 2 [0] => 62.00 [1] => row2 [1] => 17240475 [1] => 165.01 [1] => 1 [1] => 165.01 Is it even possible...? Should it be even in a multidimensional array format...? Or am I going about this the wrong way? Any help is appreciated, Thank you very much!
  5. Sorry...looked like php to me...! LOL
  6. function toggleGroup(type) { for (var i = 0; i < markerGroups[type].length; i++) { var marker = markerGroups[type][i]; if (marker.isHidden()) { marker.show(); } else { marker.hide(); } } } Currently when the map loads, the markers are shown. And when the checkbox is checked, the markers are hidden. I need this to be the opposite....So that when the map loads, the markers are hidden, and when the checkbox is checked the markers show. I tried marking the checkboxes initial state as checked when loaded, but this just enables the markers to be shown when the page loads. How do I reverse this function? I can't find anything on google about it, and all the examples I find are like what I show above. Thanks!
  7. Ahhhhh!!! Never thought about it like that! Worked like a charm! Thanks!
  8. I'm really rough with javascript...and need to do this from php: if (!empty($row['url'])) { echo 'url="' . $row['url'] . '" '; } ...in javascript... var html = "<span class='gmap-text-header'>" + name + "</span><br>" + if(url!=null) { document.write("<a href='" + url + "'>Link to Realtime Station</a>" +); } "</span>"; So that if there is no url, it only displays the name. And if there is a url it displays both the name and url. Thanks!
  9. Second question.... What would be an alternative to sending an HTML email? Not everyone accepts HTML emails... Is there a way I can generate the php page to a text file, then email the contents of the text file? The data in the email is generated using php and mysql...its info from a database. How would I send this via email? Thanks!
  10. oh wow! I forgot all about the HEREDOC... and didn't even know about the file_get_contents! Thanks!
  11. heh....LOL The $msg variable is for a php email. The $msg is a complex html email pulled together with data using php and mysql. I know normally it would look like this: $msg = '<html>'.<php>.'<ect>'; But to go through the ENTIRE page putting '. and changing ' or "...it would be much easier to just include the email template... Hence the $msg = include='page.php'; Does that clarify some? LOL Possible?
  12. $msg = "".include 'emailtemp1.php?val=$var&val2=$var2'.""; Any options or ideas on how to make it work? Thanks!
  13. ok, since I'm getting no responses, maybe I'm making it a bit too confusing....so let me try to explain what I'm trying to do better.... ok...I have a table with these entries.... 0-5-8-3 0-4-6-7 1-4-6-7 1-5-8-3 1-7-2-3 I need to display all the rows with 0's...but if there isn't a '0' row for 1-7-2-3, I need it to display 1-7-2-3. That's it in a nut shell... Any ideas? Can I do this with a mysql query? Or can I do this with an if statement? My guess is a select * mysql query, but then need an if statement to determine if the row has a 0 or 1...? I'm stumped! ANY direction, examples, ideas = HELP Thanks!
  14. ok....so no responses yet!?! LOL Guess no one is up for my challenge! Well, this is what I have so far... <?php include 'config.php'; include 'opendb.php'; $query="SELECT * FROM dates WHERE username='$username' AND team='$team' ORDER BY date"; $result=mysql_query($query) or die("SELECT Error: ".mysql_error());; mysql_close(); $num=mysql_numrows($result); $i=0; while ($i < $num) { if ($type == $date && $time ==$location) { unset ($num); } $id=mysql_result($result,$i,"id"); $id2=mysql_result($result,$i,"id2"); $type=mysql_result($result,$i,"type"); $date=mysql_result($result,$i,"date"); $time=mysql_result($result,$i,"time"); $location=mysql_result($result,$i,"location"); $avail=mysql_result($result,$i,"avail"); include 'schedoption1.php'; ++$i; } ?> ...but this only shows one result.... ...any help is appreciated... Thanks!
  15. I'm not sure how to go about this, so I'm just going to put it out there for some ideas... This is for web based scheduling team practices... table id id2 date time avail - I have the admin entering the practice schedule. Including an id2 value '1' - A player pulls up the schedule...the pull down menu submits the avail... I already have it set so that if the schedule has an id2 value it makes an insert, if the id2 has no value it does an update. That way the admin entries are retained, and the players avail is retained. - now when a player pulls up their schedule, as you can see now I run into the schedule having multiple entries for each player depending on the avail for each date/practice. Because the select statement is for all practices both the admin entered and the player avail entries. - I want the admin entries to ALWAYS stay there. - But I need a query select all entires for a player, but if a particular date/time is identical to only show the one with no id2 value (aka the one with the players avail). Basically, if the player hasn't entered their avil, I want it to show the admin entry. And vise vera, if the player has enter their avil, the admin entry doesn't show. What kind of query would that be!?! I suspect I query all entires = result take that result, and foreach entry that is identical (==), it picks the entry with id2='' then shows that new result. Is my thinking correct? How would I go about doing this? ...Or is there a better way of doing it? ...any ideas? 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.