Jump to content

matt121400

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

matt121400's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello so somehow their are a ton of random phpfiles with numbers behind them then were created when replacing files that look like this test.php1323434435 and i am looking to delete them. I have created this which works for deleting them when its in the same folder <?php $files = glob('test.php1*'); array_map('unlink', $files); ?> my question is how do i get it to search all the subdirectories and do the same thing
  2. I am looking to upload a file to my server through a php page, I could do this normally with a file input box thing BUT i need the input to be a text box for certain reasons so if i put C:\pic.jpg it will upload pic.jpg from my C:\ drive Is this possible?
  3. so i have a php page update that adds 1 to the tally like this mysql_query("update table set entry1 = entry1 + '1' where user = '$user'"); The problem is it is being used SO quickly so often that it seems it is missing alot of updates. What would be a better way of doing this that guarantees each update is counted?
  4. sorry i think i may have confused you i meant to have it show all the citys where in the column food cookie has appeared atleast 5 times
  5. ok i know how to connect to the mysql database and all that jazz. The question i have is lets say i have 2 columns: 1)city(ex. baltimore) 2)food(ex. cookies) there are several cities in the database and they reappear all the time, same with the food column what i want to show is a list of cities where lets say the food 'cookies' appears most often and ordered from most to least, and also wondering how i can have it only show all the cities with at least 5 occurences of 'cookies' in the food column.
  6. ok so i understand submitting forms and got that all fine and dandy but i have one problem which i couldn't find the answer too on the internet. for one submission to mysql id like it to be the input they had for username then automaticly @google.com at the endfor example. so i have $emailapp = $_POST['username'];(what do i put here to get the @google.com added on?????????) mysql_query("INSERT INTO tablename(emailapp) VALUES('$emailapp' )") but i need to know how to tack pon the @google.com to the end of the username how do i do that?
  7. ok so i realized i can give the label a id and do it like that but how do i do 2 input onclicks at once to make this work?
  8. ok i am able to hide/show the menu based on a radio button but how would i also be able to hide/show the label that corresponds to the menu also? I have included the code i am currently using thanks! <input type="radio" input onclick="javascript:document.getElementById('relocate').style.visibility='visible'" name="relocate2" class="fieldradio" onclick="relocate2Change(this);" /> yes <input type="radio" name="relocate2" class="fieldradio" onclick="relocate2Change(this);" /> No </span> </p> <LABEL for="relocate">Relocation: </LABEL><select name="relocate" id="relocate" style="visibility:hidden"/> <option value="No" checked='checked'>No Relocation</option> <option value=N"Alabama">Alabama</option> <option value="Alaska">Alaska</option> <option value="Arizona">Arizona</option> <option value="Arkansas">Arkansas</option> <option value="California">California</option> <option value="Colorado">Colorado</option> </select>
  9. ok well my situation is kinda wierd im using a macro program and would like to pull the info from 1 table and some of the things the macro fills out has NY and MN and so on for their drop down menus and some have New york and Minnesota as the choices so what i would need is to have Mn in 1 colum and Minnesota in the next column as i am writing each sites macro individually and can pick and chose which column goes in which site anyway so ya that is why i need it
  10. i have a program that needs it to do it the way i described so ya..
  11. ok so i am making a form and i need 1 text box from a form to produce 2 seperate entries into the mysql for example when someone picks a state from a drop down menu i would like it to send New York and NY as seperate fields in mysql how would i go about this? i was thinking hidden fields possibly but i am new at this so i am not quite sure how to go about it.
  12. is it possible with PHP to take a users registration info or user submitted data and a file and go to several other sites and post that information there? if so how would i go about writing this or are there any scripts for this out 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.