Jump to content

AE117

Members
  • Posts

    83
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

AE117's Achievements

Member

Member (2/5)

0

Reputation

  1. Above did not work, I had to take this from a completely different approach. Thanks though.
  2. Thats mighty confusing do you have any code I can see the written description is throwing me off
  3. I have an array I would like to search that is being built from a data base as follows $result = mysql_query("SELECT id_one, id_two FROM accounts LIMIT 60"); while ($row = mysql_fetch_array($result, MYSQL_NUM)) { printf("ID_ONE: %s ID_TWO: %s", $row[0], $row[1]); echo "<br>"; } What I would like to do is after the array is created echo out a certain row from that array. Soi if the array looks like this key id_one id_two 1 458 444 2 468 455 3 467 466 I can search the array for 468 and it would return 455 Thanks I will be posting back if I find any new information my self.
  4. That is exactly what I am try to prevent. I dont want to have to call multiple queries to get a set of results. so if the results is to call the to a table id color 1 green 2 red 3 green and get all the green items. I want to be able to store them in an array and then call from that array the results i need. So in this case the array should hold key id color [1] 1 green [2] 3 green then i can call key 2 which would give me the values under that. I just dont know how to do it. I am still looking into it but it appears that arrays and a push statement is on the right track
  5. I have been looking into this and I can find a definite answer. I was wondering if i call a query $query = mysql_query("SELECT * FROM table_name") $rows = mysql_fetch_assoc($query) which returns 50 results can I call and echo a certain result. Lets say I want to echo result number 5 of the 50. I have no idea how to go about this so I was just hoping someone could lead me in the right direction.
  6. Figured it out HTML: <textarea name="description[<?php echo "2"; ?>]" id="description[]" cols="" rows="" style="width:300px;">Content Here</textarea> PHP: foreach ($_REQUEST['description'] as $key=>$checkbox) { echo $key; echo "<br />"; echo $checkbox; }
  7. Is there a way around this so I can get both the value and a id that I state?
  8. dont state exit if the database does not connect exit not only stops php but everything from there down.
  9. I have this. <input name="delete[]" type="checkbox" id="delete" value="1" /> What I want to is get the value from this which is the "1" AND Get the id which would be "delete" I can get the value but i cant seem to get the id This is what I have been using foreach($_REQUEST['delete'] as $index=>$val){ echo $index; echo $val; } echo $index just gives me the num of array I am on and the $val gives the actually value. Can anyone help me out with getting the id or how I can specify a id. THanks
  10. Thanks that last functions worked great, i hadnt even thought about doing it that way.
  11. First let me ask you this. Do You want everyone to know who the email is sent to. When sending an email you can cc people which mean they get a copy but all recipients can see each other. I which case you would just modify your php mail header to have a cc: value. If you are want to just send emails to a list of people that looks like it was just sent to them then a do while loop is what you are looking for.
  12. Im not new to php but I am trying to think if this possible. I want to write a php script that creates a div inside a div until lets say 10 divs are created. I have been trying do while statements but them seem to place them underneth each other not within. I want <div id=one"> <div id=two"> <div id=three"> </div> </div> </div> Only thing I can create is <div id=one"></div> <div id=two"></div> <div id=three"></div> Like I said I dont even know if this is possible or if I am just retarded and can't think of a way to do it but it would be nice to see what others have to say about it.
  13. But the decryption process would, unless your using something like unescape, which because even more pointless.
  14. Thats true...it would create more load on my server anyway. Thanks for the advice.
  15. I think its a good idea... On my page I access the javascript file for the page to use <script src="" you know the rest. if you follow that url you can see the javascript file and the way it is written. Wouldnt it be better to have it encrypted so users can't see whats there?
×
×
  • 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.