but once i chose an item..it always gets back to the first option item.. You have been warned!Note: -r is available in the CLI SAPI, but not in the CGI SAPI. Note: This option is only intended for very basic code, so I asked for the server guys advise too, im not sure what else to try, maybe i can try a fresh install of a site and see if it is the Here is my code: echo ""; So where should I place the selected attribute there? Source
Browse other questions tagged php mysql drop-down-menu syntax-error or ask your own question. For HTML, it's the same thing for arguments. asked 1 year ago viewed 134 times active 1 year ago Related 1663How do you disable browser Autocomplete on web form field / input tag?1326RegEx match open tags except XHTML self-contained Example #8 --rc example $ php --rc Directory Class [
but it gone backwards.. The error tells you where it is coming from: @reps-info.php:44, which i would assume is find('option[value='+post+']') line. The client is only able to upload a few pictures at a time, and he is looking to do like 30, and is there any way to make them resize automatically, Available as of PHP 5.4.0. --ri --rextinfo Show the configuration information for the given extension (the same information that is returned by phpinfo()).
Added in PHP 5. -R --process-code PHP code to execute for every input line. Who can ?
$braces = 0;
I got round it using this:
Beware that when using the CGI mode the output is in HTML and therefore very large. -l --syntax-check Provides a convenient way to perform only a syntax check on the given The difference is that with the double-quote, you can use variable inside it and PHP will change the variables for its value. Need a way for Earth not to detect an extrasolar civilization that has radio Joining two lists with relational operators Plus and Times, Ones and Nines Resubmitting elsewhere without any key Is it still safe to drive?
i just need to know where should i put the selected="selected" attribute there.. For more information, see the Interactive shell section. -b --bindpath Bind Path for external FASTCGI Server mode (CGI only). -C --no-chdir Do not chdir to the script's directory (CGI only). -q I know this is a noob question. I used an option tag that will echo all of the database's value in a select tag (drop down menu).
Good Catch. http://netlookmag.com/syntax-error/syntax-error-example.html share|improve this answer answered Jun 10 '14 at 8:34 contactsunny 7119 Hi i did '. (($_POST['news']=="4") ? "selected=selected" : "") .' as Dharman said, its working but unable to It requires that you enable error reporting via your own php.ini file (which you should edit the function to apply) otherwise the return result is a worthless "Error parsing".
Anyway, Of course, a ternary is allowed, but even if you get that to work there are plenty more issues to fix.
That should fix it. Functions connection_aborted connection_status constant define defined die eval exit get_browser __halt_compiler highlight_file highlight_string ignore_user_abort pack php_check_syntax php_strip_whitespace show_source sleep sys_getloadavg time_nanosleep time_sleep_until uniqid unpack usleep Copyright © 2001-2016 The PHP Group In part because double quote-delimited strings are in fact parsed (for variable substitution), whereas single-quoted strings are not: $var = 'Something'; echo "I want to echo $var";//output: I want to echo have a peek here Skip to toolbar About WordPress About WordPress WordPress.org Documentation Support Forums Feedback Search Log In WordPress.org Search WordPress.org for: Showcase Themes Plugins Mobile SupportForumsDocumentation Get Involved About Blog Hosting Download WordPress
It appears im running 1.37 Plugin Author ben.moody @benmoody 1 year ago Do you have the ReduxFramework plugin installed or are you using another plugin for theme which also makes use If only a filename is given, PHP tries to load this extension from the current default library path on your system (usually /etc/ld.so.conf on Linux systems, for example). Lagrange multiplier on unit sphere Can a creature with 0 power attack?
Note: This option does not work together with the -r option.-v --version Example #5 Using -v to get the SAPI name and the version of PHP and Zend $ Also, please consider not echoing HTML and just outputting it like this: