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

Linux, Apache, MySQL, PHP

 
GeneralRe: problem with session varaibles Pin
MacRaider48-Jul-11 7:54
MacRaider48-Jul-11 7:54 
GeneralRe: problem with session varaibles Pin
MacRaider48-Jul-11 8:42
MacRaider48-Jul-11 8:42 
AnswerRe: problem with session varaibles Pin
MacRaider48-Jul-11 7:53
MacRaider48-Jul-11 7:53 
GeneralRe: problem with session varaibles Pin
Thomas.D Williams21-Jul-11 5:08
Thomas.D Williams21-Jul-11 5:08 
GeneralRe: problem with session varaibles Pin
MacRaider421-Jul-11 5:18
MacRaider421-Jul-11 5:18 
GeneralRe: problem with session varaibles Pin
Thomas.D Williams21-Jul-11 5:34
Thomas.D Williams21-Jul-11 5:34 
GeneralRe: problem with session varaibles Pin
MacRaider421-Jul-11 5:39
MacRaider421-Jul-11 5:39 
QuestionTrying to set more than one style at a time without CSS... [modified] Pin
Joan M6-Jul-11 23:40
professionalJoan M6-Jul-11 23:40 
Hello all,

In a piece of PHP code, I'm trying to set two styles at the same time for a set of dynamically created divs...

The code I'm trying to use is:

echo('<div id="'.$DivId.'"  style=width:'.$width.'; display:none>;');


As you can see $DivId is a variable that depends on a loop.
I need to set the width (another parameter).
And at the beginning that DIV must be not shown hence the display:none.

If I try to modify the style one at a time it works well... I mean that if I try to change the width only or the display only it works well... but I don't know how to chain the two changes.

Any advice?

Thank you in advance! Thumbs Up | :thumbsup:

PS: I've tried to Google for "php more than one style", "php change styles", "php style guide"... no luck here...
[www.tamelectromecanica.com] Robots, CNC and PLC machines for grinding and polishing.
modified on Thursday, July 7, 2011 5:51 AM

GeneralRe: Trying to set more than one style at a time without CSS... Pin
Joan M7-Jul-11 4:47
professionalJoan M7-Jul-11 4:47 
GeneralRe: Trying to set more than one style at a time without CSS... Pin
Joan M7-Jul-11 5:30
professionalJoan M7-Jul-11 5:30 
AnswerRe: Trying to set more than one style at a time without CSS... Pin
Graham Breach7-Jul-11 3:12
Graham Breach7-Jul-11 3:12 
GeneralRe: Trying to set more than one style at a time without CSS... [modified] Pin
Joan M7-Jul-11 3:25
professionalJoan M7-Jul-11 3:25 
GeneralRe: Trying to set more than one style at a time without CSS... Pin
Graham Breach7-Jul-11 3:54
Graham Breach7-Jul-11 3:54 
GeneralRe: Trying to set more than one style at a time without CSS... Pin
Joan M7-Jul-11 4:01
professionalJoan M7-Jul-11 4:01 
GeneralRe: Trying to set more than one style at a time without CSS... Pin
Graham Breach7-Jul-11 4:18
Graham Breach7-Jul-11 4:18 
GeneralRe: Trying to set more than one style at a time without CSS... Pin
Joan M7-Jul-11 4:45
professionalJoan M7-Jul-11 4:45 
GeneralRe: Trying to set more than one style at a time without CSS... Pin
Graham Breach7-Jul-11 5:35
Graham Breach7-Jul-11 5:35 
GeneralRe: Trying to set more than one style at a time without CSS... Pin
Joan M7-Jul-11 5:30
professionalJoan M7-Jul-11 5:30 
QuestionTrack traffic sources using PHP get? Pin
weinerschizel6-Jul-11 12:07
weinerschizel6-Jul-11 12:07 
AnswerRe: Track traffic sources using PHP get? Pin
GregStevens6-Jul-11 15:18
GregStevens6-Jul-11 15:18 
AnswerRe: Track traffic sources using PHP get? Pin
DLChambers9-Jul-11 14:43
DLChambers9-Jul-11 14:43 
QuestionProblem in integrating php with apache under window 7 environment Pin
nishant rawat5-Jul-11 21:28
nishant rawat5-Jul-11 21:28 
AnswerRe: Problem in integrating php with apache under window 7 environment Pin
Claudio Ludovico Panetta29-Jul-11 6:06
Claudio Ludovico Panetta29-Jul-11 6:06 
QuestionPHP installation Pin
Member 415987129-Jun-11 19:43
Member 415987129-Jun-11 19:43 
AnswerRe: PHP installation Pin
enhzflep1-Jul-11 0:01
enhzflep1-Jul-11 0:01 

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.