Ask a Question related to Dreamweaver AppDev, Design and Development.
-
sjmyles #1
A variable in a php statement
Hi This works: <?php if (isset($_GET['frm_sortby'])) {
echo '<input type='hidden' name='frm_catid' value='71'>'; } else { echo
'<input type='hidden' name='frm_catid' value='70'>'; } ?> but this doesnt
and I dont know why <?php if
(isset($_GET['frm_sortby'])) { echo '<input type='hidden' name='frm_catid'
value='$HTTP_GET_VARS['frm_catid']'>'; } else { echo '<input type='hidden'
name='frm_catid' value='70'>'; } ?> I'd love some help please.. Simon
sjmyles Guest
-
#39251 [NEW]: variable variable class array property is read only
From: taskfreak at gmail dot com Operating system: mac os PHP version: 5.1.6 PHP Bug Type: Class/Object related Bug... -
Setting a SQL Statement as a Variable and Running UsingCFQuery
I've got a table with a bunch of sql statements that I need to run and cfdump the results to the screen. I have one <cfquery> tag that pulls the... -
variable select statement
I would like to have a form that gives the user choices for selection parameters for email, printing etc. A real simple example: Give me all... -
Session variable in SELECT statement?
What am I doing wrong here? This works: SELECT Count(ID) AS MyCount FROM mytable WHERE Status = '1' But when I try to add a session value in... -
SqL statement needs to have a variable represent a value
Have you done the old response.write sqlstr? I'll bet you get a result like...... SELECT gameweek, season, dbcode, teamname FROM tblNFLGameData... -
Ross Riley #2
Re: A variable in a php statement
Try th following <?php if (isset($_GET['frm_sortby'])) { echo '<input
type='hidden' name='frm_catid' value='$_GET['frm_catid']'>'; } else { echo
'<input type='hidden' name='frm_catid' value='70'>'; } ?> Ross
Ross Riley Guest
-
sjmyles #3
Re: A variable in a php statement
Thanks I tried that but no good - same error message. Parse error: syntax
error, unexpected T_STRING, expecting ',' or ';' in
c:\Inetpub\wwwroot\NewSite\TMPozvqccxam.php on line 196 I have the variable
frm_catid set as a url variable so im a bit stumped
sjmyles Guest
-
Michael Fesser #4
Re: A variable in a php statement
.oO(sjmyles)
Hint: You can't put unescaped single quotes into a single quoted string.>Thanks I tried that but no good - same error message. Parse error: syntax
>error, unexpected T_STRING, expecting ',' or ';' in
>c:\Inetpub\wwwroot\NewSite\TMPozvqccxam.php on line 196
Micha
Michael Fesser Guest



Reply With Quote

