546 Posted Topics
Re: Did you already declare '$parent_menu' correctly? The error means that there is no 'ecount' unique key in the '$parent_menu' at the location of '$row->parentId'. Check '$parent_menu' with 'var_dump($parent_menu)', and make sure that there is array rooms which are associated with the unique key 'ecount'. | |
Re: [QUOTE]<input type="checkbox" onclick="selectinactivebatch(this.value);" id="inactive_batch" name="inactive_batch" <?php if(isset($_POST['inactive_batch'])) echo "checked";?>>[/QUOTE] Where is the value of that checkbox ? You must have already put that checkbox value. Like: [code] <input type="checkbox" onclick="selectinactivebatch(this.value);" id="inactive_batch" name="inactive_batch" value="<?php echo $value; ?>" <?php if(isset($_POST['inactive_batch'])) echo "checked";?>> [/code] Hope this help. | |
| |
Re: IE 7 and older cannot support pseudo element except anchor tags. Use black circle image as background-image and define the class to the first 'li' element and set the background-image in your CSS for the 'li' element and put appropriate spacing (padding left/right) to place the black circle. | |
Re: Put DTD at the top of your HTML. IE ignore some CSS property while the DTD was missing. | |
Re: Vertical margin or padding cannot apply to the inline-elements. Set the 'display: block' to alter the block-level for that inline-element will work perfectly. | |
Re: Try that: [code] <?php include_once "connect_to_mysql.php"; $extract = mysql_query("select * from tbl_competition WHERE fld_closed='N'"); if(mysql_num_rows($extract) < 0){ header( 'Location: nocompetition.php' ) ; } else{ header( 'Location: competition.php' ) ; } ?> [/code] Hope that help. | |
Re: You should not use '[]' by repeating in the loop. The '[]' will generate array room every time you assign it. You have 7 elements each time mysql_fetch looping. Specify the index for one looping. For example: [code] $count = 0; while ($row = $result->fetch()) { $output[$count] = '<tr>'; $output[$count] … | |
Re: Check out there. [URL="http://www.w3.org/TR/CSS21/box.html"]http://www.w3.org/TR/CSS21/box.html[/URL], [URL="http://css-tricks.com/the-css-box-model/"]http://css-tricks.com/the-css-box-model/[/URL] | |
Re: You must setup mail server on your machine. | |
Re: Use 'the_excerpt()' function and you need to insert the content in the excerpt field at wordpress back-end. | |
Re: What mean the proper format ? Sorting, order or what ? Please be more precise will be appreciate for us. | |
Re: Better post at PHP or CGI forums. | |
Re: What error are you receive ? Post the error message. So, we can approach the problem quickly. | |
Re: Try this one. [CODE]<!-- function Show_Stuff(Click_Menu) // Function that will swap the display/no display for // all content within span tags { var content = document.getElementById(Click_Menu); if (content.style.display == "none") { document.getElementById(Click_Menu).style.display = "block"; } else { document.getElementById(Click_Menu).style.display = "none"; } } -->[/CODE] | |
Re: Mail function does not work on localhost. If you want to test the mail function on your localhost, you need to setup the mail server on your machine. You can search on google. | |
Re: [QUOTE]<a href="profile.php?uid=<?php echo $id; ?>" title="Go to your profile" id="list">Profile</a><BR><BR> <a href="photos.php?uid=<?php echo $id; ?>" title="Go to your photos" id="list">Photos</a><BR> <a href="blog.php?uid=<?php echo $id; ?>" title="Go to your Blog!" id="list">Blog!</a><BR> <a href="friends.php?uid=<?php echo $id; ?>" title="Your Friends" id="list">Friends</a><BR> <a href="groups.php?uid=<?php echo $id; ?>" title="See your Groups" id="list">Groups</a><BR> <a href="pages.php?uid=<?php echo … | |
Re: The line-height with the form elements are depending on the browser and the version on each browser. In my experience, Firefox cannot understand the line-height property with the form elements while IE and other modern browsers are working well. Put the padding top/bottom is better and already solved for cross-browser … | |
Re: Remove the white space and empty line before and after the PHP enclose tags. [code] <?php //Start your PHP code here. Do not left a space or empty line //End your PHP code here. Do not left a space or empty line ?> [/code] | |
Re: Try this: [code] foreach($correctanswer as $answers){ if($answers[0] == TRUE){ echo "Your answer is true."; } } [/code] | |
Re: [QUOTE]else(state=='none') { document.getElementById(id).style.display = 'block'; }[/QUOTE] You don't need to put the expression into 'else' statement. Replace with below: [code] else { document.getElementById(id).style.display = 'block'; } [/code] Also, place the codes in code tags. | |
Re: [QUOTE]$photo="http://www.facebook.com/dialog/feed?picture=http://facebookmini.zxq.net/upload/.$new_file_name['ufile']['type]."&redirect_uri=http://facebookmini.zxq.net/photoupload.php"[/QUOTE] Missing double quotes. Replace with: [code] $photo="http://www.facebook.com/dialog/feed?picture=http://facebookmini.zxq.net/upload/".$new_file_name['ufile']['type]."&redirect_uri=http://facebookmini.zxq.net/photoupload.php"; [/code] | |
Re: With the understanding of your question, I concluded that you might used the keyword of the items to delete from the cart. Using the 'id' number of the items is more simpler than using the keyword/name of the items. As you mentioned above, you may get the item with the … | |
Re: [code] //Get the id for the row to delete $row_id = $_POST['linklabel']; //Write the query $sql = "DELETE FROM pages WHERE id=" . $row_id; //Execute the query $query = mysql_query($sql); if($query){ echo "The row is successfully deleted from the database."; } else{ die("Cannot delete the row. " . mysql_error()); exit; … | |
Re: Make this thread 'Solved' if it was solved. | |
Re: Simply show the small info of image such as the file name by following Kraai way. Use Javascript DOM for create more visual effects. For example, when the user hover the image, the description of the image appears with pop-up layer. And you can add more effect like fade-in/out as … | |
Re: [code] mysql_query("select * from oocust") or die("Faile to select table " . mysql_error()); [/code] Using the error handling should be use with the coplex code block. Learn more about Mysql error types [URL="http://dev.mysql.com/doc/refman/5.5/en/error-types.html"]here[/URL]. | |
Re: Post the codes where the problem that you think. Show us the focus and it may save our time. | |
Re: Add 'top' property and set it to '0' to reset for all browser. | |
Re: Post you codes that you have been thinking where the problem was. | |
Re: [code] $data = $_POST['input_field_name']; [/code] Catch the data with the above in the page that you want to process those data. | |
Re: Make sure that the image extension is 'jpg'. Sometimes JPEG image has the extension 'jpeg'. | |
Re: #container { height:1200px; width:1980px; margin: 0 auto; position:relative } Where is the container ? You might be forgot to wrap the site with this container. | |
Re: [code] $dir = dirname(__FILE__); [/code] $dir will have the current directory of the file. So, you can import the file you want from the current file. Here is some example. [code] include($dir.'../somedir/somefile.php'); //somefile.php under the somedir folder which is same root of the folder that the current php file was … | |
Re: Set the highest value for the z-index of the sticky footer. | |
Re: Check the file path of CSS. Is it correct place? You can easily check the file path by clicking the link of your CSS in the view source. If the CSS codes has been shown, the path is correct, otherwise, your path is wrong. | |
Re: [QUOTE]img.decor a:hover{background-color:#CCCCCC;}[/QUOTE] The syntax is a little bit wrong. In your HTML, the image tag is the child of the anchor tag. So it should be [icode]img.decor:hover[/icode] or [icode]a:hover img.decor[/icode]. Place the parent element or selector first, and the childs in the next hierarchically, as the structure of the HTML … | |
Re: [url]http://codex.wordpress.org/Function_Reference[/url] Check out first there. | |
Re: Concatenation needs period '.'. You need to place the period between the string or variable that you want to concate. [code] $string1 = "This is string 1"; $string2 = "This is string 2"; $string 1 . $string2; ---------------------------------- $string1 . ". " . $string2; [/code] | |
Re: What is the purpose of what you are doing ? Send data without form or POST method ? You need HTML form in which data passed by this form and send to the specific CGI and process that data, otherwise use the GET method that passes via URL. | |
![]() | Re: [code] <!DOCTYPE html PUBLIC "-//W3C DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-us"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title></title> <style type="text/css"> <!-- body { height: 768px; margin: 0; padding: 0; } h1 { font-size: 14pt; margin: 0 0 10px; padding: 0; } #wrapper { background: #8a0202; height: 100%; margin: … ![]() |
Re: You can store the value with the specific key. Like the example: [code] $health = array('chicken'=>20,'dragon'=>50,...); [/code] Then parse the value due to the options [code] $chr_health = $health[$_POST['chr_pet']]; [/code] Hope this help. | |
Re: [icode]session_start();[/icode] must start first line of the fiile. | |
Re: [CODE]$query3="SELECT * FROM selling WHERE name LIKE %item% AND state='$state' LIMIT 0,30"[/CODE] Where does the '$state' come from ? | |
Re: [QUOTE]<script type="text/javascript"> $('#searchsubmit').click(function(){ var keyword = $('#se').val(); window.location = [url]http://www.domain.com/default.aspx?st=FT&ss=+keyword;[/url] }); </script>[/QUOTE] You need jquery library to work the above method. And [icode]window.location = 'http://www.domain.com/default.aspx?st=FT&ss='+keyword;[/icode] is wrong. Should be [icode]window.location = 'http://www.domain.com/default.aspx?st=FT&ss='+keyword;[/icode] You must link the jquery library to work the above method, or try with simple js. [code] <script … | |
Re: I am not sure where do you want to insert the image. Insert image with message in Gmail, go to Gmail settings. Open the labs tab, there is a lot of application that can be working with gmail. Find 'Inserting images' and choose 'Enable', and then click 'Save Change', when … | |
Re: Where are you using CSS ? Is it in your document by embedding or external ? Post your complete HTML and it is close to find the problem. |
The End.