Nakor
-
Posts
13 -
Joined
-
Last visited
Never
Posts posted by Nakor
-
-
From what I understand of your question: You simply need to receive input from the user when they submit the flash form and then display the appropriate background flash image. In which case your example of $_POST['file_name'] should work. Although I don't believe you can actually use a flash image as a background for a webpage with the HTML you provided.
-
I'm not 100% sure what you're asking but I assume you are asking how to structure if statements? If so all you need to do is place your parentheses properly.
Example:
if ( ($condition1 || $condition2) && ($condition3 || $condition4) )
-
<?php $input = array( array('filename' => 'home.html', 'title' => 'home page'), array('filename' => 'products.html', 'title' => 'products'), array('filename' => 'contact.html', 'title' => 'contact'), array('filename' => 'prices.html', 'title' => 'prices')); //echo add_accesskeys($input); function add_accesskeys($arr) { $output = '<ul>'; foreach($arr as $key => $data) { $output .= '<li><a href="'. $data['filename'] .'" accesskey="'. $data['title']{0} .'">'. $data['title'] .'</a></li>'; } $output .= '</ul>'; return $output; } ?>
-
Shouldn't it be
$total_pages = ($post_count / 10);
?
-
PHP's integration with Oracle would be no more efficient than it's integration with MySQL. Unless you are running an enterprise system there would be little to no difference between the two.
-
Yep that'll work =)
-
These days almost every search engine can index dynamic pages just fine =) But you will find that the first link-type will be indexed a lot faster than the second deep-folder link.
-
<?php $conn = mysql_connect('removed','removed', 'removed'); mysql_select_db('removed',$conn); $delete = "TRUNCATE TABLE logins"; mysql_query($delete,$conn); ?>
You need to include the start and end tags for PHP.
-
You will have to manually change your links.
-
Left out the closing tag, my bad
eval('echo $test'. $i .';');
Tested and works =)
-
Because you are just concatenating two variables.
Your code:
$test = 'default'; $test1 = 'a'; $test2 = 'b'; $test3 = 'c'; for($i = 1; $i <= 3; $i++) { echo $test . $i; } /* Output: default1 default2 default3 */
My code:
$test = 'default'; $test1 = 'a'; $test2 = 'b'; $test3 = 'c'; for($i = 1; $i <= 3; $i++) { eval('echo $test'. $i .';'); } /* Output: a b c */
-
The above example will not do what you are after. Try the following:
eval('echo $test'. $i .';');
[SOLVED] Can this exsiting code be modified to check fields have been filled in
in PHP Coding Help
Posted