Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. OrganizedChaos

    Run script to add remove email users.

    Hi All, I am running Scalix email server and I am looking for a way to build a web interface to add and remove users (this would be much like the way one would add and remove linux users). I have set the apache user to have rights to run the program in the /etc/sudoers file. While apache came...
  2. OrganizedChaos

    Good way to bind 2 server folders from a web page

    Hi there, I am trying to make an interface to do some scripting tools I normally run from a bash script and convert them to php pages. I need to figure out how to run the command from a webpage mount --bind /olddir /newdir This allows me to access files in /olddir by going to /newdir (I'm...
  3. OrganizedChaos

    PHP Upload - Allow .exe files

    Currently, I am using the following to test an upload page I am building. <form enctype="multipart/form-data" action="test.php" method="post"> <div align="center"> <p> Upload</p> <p><input name="userfile" type="file" /><br /> <input type="submit" value="Upload" />...
  4. OrganizedChaos

    Change current PHP page that uses POST to a timed script

    I have a page that I currently enter a name into a text box and hit submit to POST that data to another PHP page which then uses this name to run a couple of functions and make changes to a mySQL db. What I am looking to do is either; A. Turn the 2nd page into an executable that instead of...
  5. OrganizedChaos

    Get data from a web page and insert into DB

    Hi there, I am looking to provide a link to a PHP script, have it parse the comma delimited data on that page so I can enter the data I want into a mysql DB.. Here is an example of the page http://www.fftwelve.com/totstatsfx.php?folder=Monsters&pos=QB&weekstat=YTD&list=all&cnf=1&howmany= Can...
  6. OrganizedChaos

    Create mysql table with $variables

    I was wondering if it is possible to use variables in a sql statement when creating MySQL tables.. For example, if I wanted to add a table called "good" to my database, this would be it.. $sql = 'CREATE TABLE `good`( `id` int( 5 ) NOT NULL AUTO_INCREMENT , `good` int( 4 ) NOT...
  7. OrganizedChaos

    CSS - ouline text

    Is there a way with CSS to outline text on a page? I have some large text that is blue on one of my pages and I want to outline the text with a black 1px border.. Thanks, Mike
  8. OrganizedChaos

    PHP Array, display items and how many times each appear

    So lets say I have an array $array=array(1,2,3,4,5,6,7,8,9,10,4,5,6,4); I want an output of each number and how many times it appears in the array.. for example this would be great 4 - 3 times 5 - 2 times 6 - 2 times 1- 1 time etc.... Is there any built in function to do this? Thanks, Mike
  9. OrganizedChaos

    Is javascript the best option here?

    Hi there, I have a form that I am working on that uses PHP to populate 2 listboxes with info from a mySQL db. in each listbox, you can select a item and click a button (calls a JS function) and move the selected item to a listbox directly below it. Now, the top left listbox has a drop down...
  10. OrganizedChaos

    Nested &lt;div&gt; issue with Firefox

    I have a issue with some CSS, please take a look at this. CSS for page #results_head { background-image: url(images/button_rest.gif); text-align: center; color: #fff; width: 630px; border-left: 1px solid #000; border-top: 2px solid #000; border-right: 1px solid #000; padding: 2px; } #results...
  11. OrganizedChaos

    Check if listbox is empty and...

    When I click a button, I currently have a script that will move an item from one listbox to another. What I would like to do is have this script move the item to one of 3 listboxes. I would like to know if there is a way I can check each box to see if they are empty, and move the item to the...
  12. OrganizedChaos

    Help getting items from listbox to POST to another page

    Hi there, I need to find a way to get items that have been moved into a listbox caputred and sent as POSTed items to a php page to be entered into a database. I will be using a submit button to send other data to this page (IE text fields etc..), but I dont know how to get the listbox data...
  13. OrganizedChaos

    Compare 2 lists of numbers and only print unique #'s

    I have 2 arrays build with numbers in both, I want to compare the numbers from both group and only print the unique numbers from the second group. So, for example array1[0]=1 array1[1]=2 array1[2]=3 array1[3]=4 array2[0]=5 array2[1]=4 array2[2]=3 array2[3]=2 array2[4]=1 So in this example, I...
  14. OrganizedChaos

    Help with nested loop...

    I have a piece of code that is extracting info from a XML feed, parsing it and displaying the data on a PHP page. The last piece of code diplays the array, but I seem to have an issue with it. Here is the code snippit: $roster='12'; $number='15'; $i=0; while ($i < $roster) { $fran =...
  15. OrganizedChaos

    Steps needed to read a XML file and Insert that data into MySQL

    Hi there, I have been trying to find a way to do this that I can comprehend, it seems to be quite a bit over my limited web programming skill level. Here is what I am working with. -Fedora Core 3 server with PHP and MySQL installed -A site that exports its data to XML for custom use -A need...
  16. OrganizedChaos

    Help make code look same in IE and Firefox please

    Hi there, I have a piece of code that searches for a name in all the fields of a table, if it finds that name, I then display some of the contents of that row that it found it in. Now with the loop, the code reads each row of the db and displays the data if the if statement is true. What is...
  17. OrganizedChaos

    Is there a better way to do this? PHP --&gt; MYSQL code help.

    Hi all, First off ***DISCLAIMER*** Still very green to PHP/MYSQL, all help is appriciated. Ok, I am working on an app that acts as a ranking system. What I currently am doing is: The app will track up to 30 places in a tournament, it tracks place, position, assigns points, and calculates win...
  18. OrganizedChaos

    Passing checkbox variables that are displayed from a db

    I have some code that reads from a db and displays all contents of one of its fields.. As you can see it reads from the managers table and is sorting it by the name field. here is the code.. <? mysql_connect('localhost',$username,$password); mysql_select_db($database) or die("Unable to select...

Part and Inventory Search

Back
Top