Click here to Skip to main content
15,886,518 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: php Pin
Dr.Walt Fair, PE19-Dec-10 6:17
professionalDr.Walt Fair, PE19-Dec-10 6:17 
AnswerRe: php Pin
cjoki20-Dec-10 4:37
cjoki20-Dec-10 4:37 
AnswerRe: php Pin
Luc Pattyn20-Dec-10 6:23
sitebuilderLuc Pattyn20-Dec-10 6:23 
AnswerRe: Manually redirect to error.php & send 404 in HTTP header? Pin
Luc Pattyn16-Dec-10 10:55
sitebuilderLuc Pattyn16-Dec-10 10:55 
GeneralRe: Manually redirect to error.php & send 404 in HTTP header? Pin
User 741604616-Dec-10 11:06
User 741604616-Dec-10 11:06 
AnswerRe: Manually redirect to error.php & send 404 in HTTP header? Pin
Luc Pattyn16-Dec-10 11:11
sitebuilderLuc Pattyn16-Dec-10 11:11 
GeneralRe: Manually redirect to error.php & send 404 in HTTP header? Pin
User 741604616-Dec-10 11:15
User 741604616-Dec-10 11:15 
GeneralRe: Manually redirect to error.php & send 404 in HTTP header? Pin
User 741604616-Dec-10 12:15
User 741604616-Dec-10 12:15 
QuestionWeb Services, WSDL and SOAP Pin
Dills100215-Dec-10 1:23
Dills100215-Dec-10 1:23 
QuestionLive update of data? Pin
MacRaider413-Dec-10 6:37
MacRaider413-Dec-10 6:37 
AnswerRe: Live update of data? Pin
cjoki13-Dec-10 11:39
cjoki13-Dec-10 11:39 
Questionmultiple tables Pin
MacRaider48-Dec-10 2:18
MacRaider48-Dec-10 2:18 
First off I haven't done anything PHP in about 8 years so please bear with me. I'm currently changing over my work from ASP to PHP as we are now running a Linux Server. What I'd like to do is be able to shorten up my "work" by using functions (I think that is the correct term) but I'm not sure if I can do what I want.
What I would like to do is put something similar into a function so I can obviously change some of the parameters based on the department for a phone list. I figured I'd start off easy so chose this page first.

//Portland Collections
echo tr td colspan=4 Portland Collection Department /td /tr;
echo tr td Name /td td ext /td td eMail /td td Position /td /tr>;
$result = mysql_query("SELECT name, extension, email, position FROM employee where department = 'Collection Department'");
$cnt=0;
while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
row_color($cnt++,"9966CC","FFFFFF"); //e0e0e0
echo td>.$row{'name'}."/td>";
echo "td>".$row{'extension'}."/td>";
echo "td>".$row{'email'}."/td>";
echo "td>".$row{'position'}."/td>/tr>";
}


I'm going to probably change some of the layout but if I can get the basics down again it'll give me a good place to start. Thank you in advance for your help.
AnswerRe: multiple tables [modified] Pin
cjoki8-Dec-10 9:59
cjoki8-Dec-10 9:59 
GeneralRe: multiple tables Pin
MacRaider48-Dec-10 12:53
MacRaider48-Dec-10 12:53 
GeneralRe: multiple tables Pin
cjoki9-Dec-10 4:57
cjoki9-Dec-10 4:57 
GeneralRe: multiple tables Pin
MacRaider49-Dec-10 5:18
MacRaider49-Dec-10 5:18 
QuestionChanging the content of a div tag help required Pin
djhankypark6-Dec-10 2:25
djhankypark6-Dec-10 2:25 
AnswerRe: Changing the content of a div tag help required Pin
cjoki6-Dec-10 4:25
cjoki6-Dec-10 4:25 
AnswerRe: Changing the content of a div tag help required Pin
Yvan Rodrigues12-Dec-10 13:45
professionalYvan Rodrigues12-Dec-10 13:45 
QuestionHow to make a binary tree structure in php Pin
amanarora3-Dec-10 18:43
amanarora3-Dec-10 18:43 
AnswerRe: How to make a binary tree structure in php Pin
Dr.Walt Fair, PE12-Dec-10 12:31
professionalDr.Walt Fair, PE12-Dec-10 12:31 
GeneralRe: How to make a binary tree structure in php Pin
amanarora12-Dec-10 20:28
amanarora12-Dec-10 20:28 
QuestionNot able to debug my application Pin
PeriyasamyRamachandran3-Dec-10 3:37
PeriyasamyRamachandran3-Dec-10 3:37 
QuestionNot able to log in - Fatal error [modified] Pin
PeriyasamyRamachandran2-Dec-10 22:25
PeriyasamyRamachandran2-Dec-10 22:25 
QuestionUsing Perl to automate the software installation build process Pin
Blair Symes2-Dec-10 6:34
Blair Symes2-Dec-10 6:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.