php include not working
i don't understand why i can't move on to the next step. the preview shows the content from the favorites.php file, but it won't accept the code.
can anyone help me please?
index.php


a few of my favorite things
a few of my favorite things



php include 'favorites.php' ?
you are missing a semicolon at the end :)
try this and try to modify accordingly -



```
<?
//content is the array of titles which comes from the content.php page or the entire code can be put in the content.php
$content = array('title1 - This is the Homepage','title2 -Find new friends','title3 - Get your visa cleared now','title4 - bark about your wife here','title5 - Dont have kids yet','some other page');

$arr = explode('/',$_SERVER['PHP_SELF']);

$current_page = $arr[count($arr)-1];
//list your pages here
$pages  = array("1=>index.php","2=>friends.php","3=>nicks.php","4=>rent.php","5=>test.php");
for($i = 0; $i<count($pages);$i++)
{
	if($pages[$i] == trim($current_page))
		$pages_index = $i;
	else $pages_index = 6;
}
//This will echo the title
echo $content[pages_index];
?>
```

ask,if you stuck up somewhere. can you try with other dropdowns? if its working , nothing wrong with your code and something to do with that specific drop down. [image]

[how to enable error reporting in php](https://www.000webhost.com/forum/t/how-to-enable-error-reporting-in-php/43038) [tutorials](/forum/c/tutorials)

this tutorial is for those who get internal server error. so your website is not working and you are struggling to find out why. you see error 500 and do not know what to do next. if you try googling error 500 this wil… May be the function is executed before the document is ready.
Try to use document.ready function like this:



```
$( document ).ready(function() {
    $('#machines').change(function() {
        var $selected = $(this).find(':selected');
        $('#description').html($selected.data('description'));
    }).trigger('change');
});

``` Hi BenzZz,



as far as I understand this is a HTML-problem. Try setting the initial value with



```
value=""
```

to an empty string.



Otherwise I can suggest:  

- Open your source code in your browser and see if you have any artifacts from your php parser  

- make sure you have your JavaScript deactivated



I hope that helps, Simon hi ofer, - - this is not supported as well. you can only have 1 listview with 1 scroller attached to it. in general having multiple scrollers for the same listview is an approach that cannot be found in any of the native components as well. - - regards, - kiril nikolov - telerik -   - - join us on our journey to create the world's most complete html 5 ui framework - download kendo ui now! - - Try this... Save the value to an input element of type "hidden" from your PHP code. The information wont be visible but it will be accessible client side. Then client side, grab the value using jQuery assign it to a variable then work with that variable in your Ajax routine. Please post the insert\_validation.php script also since the values should be accessible there (assuming that the queries return expected values). oh, sorry everyone. lemme try to help.

fair warning: it’s well after midnight and i should be asleep. i haven’t tested this config but i have verified that it loads successfully.

this is probably what you want:

localhost

templates

encode gzip

file\_server

root * /home/html

php\_fastcgi unix//tmp/p… Shawn,
 
If no brighter suggestions appear, you may try the list:
 
 
 
THE LIST
 
 
If things that should work simply refuse to (all possibilities exhausted including the A) - D) below (and carefully making sure you are performing (all) the needed things)), you may try (the relevant part(s) of) the list 1) - 8 ) below.
 
 
Sometimes, (certain) things may fail or stop working for no apparent reason. When the (other) possible reasons/cures fail to work, it may be some kind of (temporay or permane...