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...
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...
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" />...
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...
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...
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...
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
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
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...
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...
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...
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...
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...
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 =...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.