546 Posted Topics
Re: What does 'alert(str)' show ? | |
Re: Solved ? Mark this thread as 'Solved' and let us know that this thread is clear. | |
Re: [CODE]$query = "SELECT * FROM my_table WHERE email_id = $email_id";[/CODE] This should work if you built the specific email id in the same table. | |
Re: You can escape HTML from the PHP delimiter and echo the value in their specific '<td>'. Example below: [code] <? php /* Shuawna Norris June 13, 2011 Part two Working with money */ $balance=55.75; $newShirtCost=15.75; $earns=20.00; $bar=.55; ?> <body> <h1>Balance</h1> <TABLE border=’1’>”; <tr><td colspan="3">Starting balancebalance</td></tr> <tr> <td>Purchase: Clothing Store:<?php echo … | |
![]() | Re: That's not enough info. Post the code you're using or link to the site where you're using. You can do rounded corner simply in CSS, most of the modern browsers and IE9 support this feature except IE-8 and older. Example shows [URL="http://www.css3.info/preview/rounded-border/"]here[/URL]. ![]() |
Re: What is the problem ? Doesn't the validation run ? | |
Re: If you want to process in the same page, use form. Otherwise you can use link. But you can't retrieve the data with '$_POST[]' by pass with the link, whether the form can be retrieve both '$_POST' and '$_GET'. Here is example below: With the anchor link: [code] <a href="page.php?param1=blabla¶m2=blabla">Go … | |
Re: Please mark this thread as Solved if your problem was solved. It will make use clear that there is no need to answer in this thread. | |
Re: Make sure that you've access permission for the web folder (ie. xampp). | |
Re: Perhaps, you should ask in Facebook developer forum. [URL="http://forum.developers.facebook.net/"]http://forum.developers.facebook.net/[/URL] | |
Re: Fill the background-color for demo. [code] <div style="margin: 50px 100px; background-color: red;"> [/code] Check that the layer is staying where it should be. | |
Re: <script type="text/javascript"> var myform=new formtowizard({ formid: 'fslide', persistsection: true, revealfx: ['slide', 500] }) </script> `formid: 'fslide',` Can you change this instead ? `formid: 'formID',` | |
Re: Your post is unclear. What do you want to do ? Change the active image for the current page ? Be more precise will be appreciate for us. | |
| |
Re: It means that 'UsersController::header()' is missing in the file '/home/tsiplanm/public_html/secure/cake/libs/controller/controller.php'. I never used CakePHP before and I don't know anything about that framework. Perhaps, the file is corrupted and some codes missed when you're downloading. Try to download the new one and install again or find the documentation on the … | |
Re: What does the code returns ? Is any errors or what ? Echo the value pass via form first and ensure that the data are correct. Need more clear detail. | |
Re: [QUOTE]$title = $_GET['q']; $_SESSION['title'] = $title;[/QUOTE] Where does the '$title' pass from ? Via form or url ? This statement may encounter the problem if there is no request for '$_GET['q']'. Set the default value if there is no request for '$title'. [code] $title = (isset($_GET['q'])) ? $_GET['q'] : 'default_value'; … | |
Re: Attach event handler. [code] <input type = "text" name = "somename" value = "" onkeydown="document.getElementById('myID').value=this.value" /> [/code] | |
Re: Post your code where the 'session_start()' was used. 'session_start()' normally should write at the top of the PHP file before processing any PHP codes. ![]() | |
Re: [icode]$_POST['textfield'][/icode] for post method and [icode]$_GET['textfield'][/icode] for get method. Isn't what you want ? | |
Re: Put the correct host of MySql database. Not just one, ( host, username, password ) all must be correct input. | |
Re: @ardav is right. You need to ask your hosting provider to increase the upload size. You may need to recharge for that. | |
Re: Greek unicode collation was already supported in MySql. Change the unicode collation for your table that is using Greek language. Go to your phpMyadmin, and select your database, go to Operations tab and select the appropriate unicode in Collation options. Hope this help. | |
Re: You have not already defined the variable '$no'. Define this variable outside of the loop before starting the loop. Like below. [code] $no=0; while($dataTampil=mysql_fetch_array($qryTampil)) { $no++; ?> <tr bgcolor="#FFFFFF"> <td> <?php echo $no; ?> </td> <td> <?php echo $dataTampil['pertanyaan']; ?> </td> <td> <?php echo $dataTampil['hasil1']; ?> </td> <td> <?php echo … | |
Re: What IDE did you use for coding PHP? This may relate with the format how you save this file. Open your PHP file with text editor, notepad is the best in this case. Click 'file' and choose 'Save as'. Then select 'UTF-8' in the Encoding option, and then click OK. … | |
Re: [QUOTE]<div id="setTestiRow" >[/QUOTE] 'id' is unique id for CSS selector and you must identified only one element in one document. [QUOTE]<div id="setTestiRow" align="center" >[/QUOTE] Remove 'align="center"'. | |
Re: Maybe, it is only one reason, your file does not allow to read and this file has no permission to the users. It may encounter when the file was developed in the local and upload to the server. Check your php file permission and set it to '755'. | |
Re: Note that "ereg_replace" is deprecated. Use "preg_replace" instead of "ereg_replace". | |
Re: [QUOTE]<input type="text" value="n1text">[/QUOTE] Replace above with below one: [code] <input type="text" name="n1text"> [/code] | |
Re: Go step by step. You should start with those comments in another php file and check all are properly work. Then, hook via ajax in another. | |
Re: [QUOTE]onclick="getId(id)"[/QUOTE] Missing argument. Put the value of id that was identified to accept the ajax result. Like this one: [code] onclick="getId('your_div_id')" [/code] ![]() | |
Re: Not smooth ? What does it mean ? It is working nicely in my PC. | |
Re: [CODE]if(preg_match_all('/<img\s[^>]+>/', $content, $images)){ var_dump($images); }[/CODE] It may help you or maybe I'm wrong. | |
Re: Maybe, your need is this one. [CODE]<script language="javascript"> function toggle(ele){ var msgbox = document.getElementByID(ele.id); if(msgbox.style.display == "block") { msgbox.style.display = "none"; ele.innerHTML = "Reply"; } else { msgbox.style.display = "block"; ele.innerHTML = "Hide"; } } </script>[/CODE] Hope this help. | |
Re: [QUOTE]foreach($lines as $line){ $parts = preg_split("/:([^\/|^\\])/", $line); $output .= "<tr>{$parts[0]}<td></td><td>{$parts[1]}</td></tr>"; }[/QUOTE] Use below instead of above: [code] foreach($lines as $line){ $parts = preg_split('!\s*+[:]{1}\s!', $line); $output .= "<tr>{$parts[0]}:<td></td><td>{$parts[1]}</td></tr>"; } [/code] It should work. Hope this help. ![]() | |
Re: Maybe, 'setAttribute' and 'getAttribute' method you are meaning. These methods won't work on older IE version. Maybe, I'm wrong. ![]() | |
Re: Let us see your HTML. | |
Re: Attach the screen-shot of your PhpMyadmin or show the structure of your table. For example: [code] -------------------------------------------------- | id | serial_no | price | description | quantity | -------------------------------------------------- | 1 | 1234567890 | 10$ | Loram ipsum | 3 | [/code] P.S: Please wrap your code in code tags. … | |
Re: What can be done with your post ? The PHP statement cannot work inside the JS function. Javascript only work on browser (client), PHP work on server (web-server). You should make a function that collect the data and send this data to the php file that you want to process. | |
Re: You can use function and attach this function with 'click' event to that button you want to do this process. Post your codes is more appreciate to us. | |
Re: Every programming languages have their own taste and own pretty structures. With my opinion, there is only two options. 1,) Programming for the windows application, 2.) Programming for the web application. The number 1 is related with software engineering. You can choose many languages such C, C++, C#, Java, and … | |
Re: Too much codes...! Please be precise and post the part of problem you think. | |
Re: Better post at PHP or Javascript forum. | |
Re: Maybe, file permission. Set the permission for that file '755'. Hope this help. | |
![]() | Re: [QUOTE]mysql_query("SELECT * FROM products WHERE `category` = "$POST['category']" ORDER BY dateadded DESC");[/QUOTE] I am not sure that you have category id or name in the product table. The category table and product must be related with each other like foreign key in one table and another in primary. |
Re: [QUOTE]$mark = mysql_query("select * from product order by product_id DESC"); [/QUOTE] Make ensure that the field names are correct (`product`, `product_id`). Recommend to do as hielo's way. | |
Re: You can use ':hover' CSS pseudo class for making the affect when the user mouse-over on that selector(s). You can use both [code]img:hover {statement}[/code] or [code]a:hover img {statement}[/code]. For the second case, the HTML image tag must be child of the HTML anchor tag, and it will be apply the … | |
Re: Try that: [code] HTML: <div class="column">Column 1</div> <div class="column">Column 2</div> <div class="column">Column 3</div> CSS: .column { float: left; /* set the direction right/left you want to */ width: 100px; /* Give the width for each column. Float needs static width, if not, it will cause many problems with the layout … |
The End.