8,966 Posted Topics
Re: If you don't include the function, then top.php can't execute it. I think line 13 is missing an echo. | |
Re: Since you'll be running PHP, why not choose the [URL="http://www.zend.com/en/products/php-cloud/"]Zend platform on Amazon[/URL]. | |
Re: Can you please explain what is wrong with your output (or what you want changed). | |
Re: Without showing your code, this is most difficult to guess... | |
Re: According to the example/tutorial you should reset the column after using MultiCell. See tutorial 4 for code. | |
Re: I think it is best if you change your function to this: [CODE] function hasChild($hc) { if (($hc != null) && $hc->hasChildNodes()) { foreach ($hc->childNodes as $c) { if ($c->nodeType == XML_ELEMENT_NODE) return true; } } return false; } [/CODE] I added the null check, because somewhere in your code … | |
Re: What password do you mean ? If you mean that from a user, then no, you can't (it's a hash). | |
Re: mikulucky already give you the answer. | |
Re: [QUOTE=BradChesney79;1730660]mysql_query will return false if no records are returned.[/QUOTE] This is incorrect. [ICODE]mysql_query[/ICODE] will return [ICODE]true[/ICODE] (or a resource) if the query succeeds. Even if there are no results, the query is still successful. If [ICODE]mysql_query[/ICODE] returns [ICODE]false[/ICODE], then the query is incorrect (or the user does not have permission). | |
Re: Try: [CODE] if ($("#about").css("opacity") == 0.47) { } else { } [/CODE] With a value it sets, without it gets. | |
Re: Probably you do not have PHP version 5.3 or higher. | |
Re: Either use: [CODE] echo '<a href="http://website.com/' . $code . '">The Kooks</a>'; [/CODE] or: [CODE] echo "<a href=\"http://website.com/$code\">The Kooks</a>"; [/CODE] | |
Re: The dollar sign has to be after the single quote, not before. [CODE] mysql_query("UPDATE products SET quantity = quantity - 1 WHERE product = '$product'"; [/CODE] | |
Re: mgs_user is not a valid user, or you supplied the wrong password, or the user has no permissions. | |
Re: You can do a [iCODE]WHERE position_1 NOT IN (SELECT mem_id FROM members)[/iCODE] If you want more detailed info, post your tables structures and some example data. | |
Re: Line 44 has an opening curly bracket too much. You can avoid these errors easily, by indenting your code better. | |
Re: [url]http://php.net/manual/en/ini.core.php[/url] Search on the page for [iCODE]post_max_size[/iCODE] | |
Re: Can you explain better what you mean by "Cannot run in IE" ? It makes no sense, PHP runs on the server, and only the output is displayed in the browser. ![]() | |
Re: Check your double quotes, they are in really weird places. I think you pasted [iCODE]$list .= "[/iCODE] too often. | |
Re: [url]http://www.nouveller.com/web-design/how-to-easily-display-a-facebook-page-feed-on-your-website/[/url] | |
Re: Have you tried your command on the command line first ? | |
Re: Can you give an example of what you want to do (required steps for example) ? | |
Re: [CODE] while ($row = mysql_fetch_array($result)) { echo 'Name: ' . $row['name']; echo ' Age: ' . $row['age']; } [/CODE] | |
Re: [quote]exclusive: When exclusive is set to true, recursive model deletion does the delete with a deleteAll() call, instead of deleting each entity separately. This greatly improves performance, but may not be ideal for all circumstances.[/quote] Found under hasMany here: [url]http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html[/url] Do you have that set ? Have you tried specifying … | |
Re: Since jQuery opens your popup, it should be jQuery that fills the editboxes with the right text. | |
Re: [url]http://www.php.net/manual/en/function.imap-base64.php[/url] | |
Re: If you have phpmyadmin on both systems, then you can use the database export and import tool. | |
Re: Did you specify the user when starting the command prompt ? | |
Re: For issue 2: [CODE=html] <input type="password" name="password" id="password" /> [/CODE] | |
Re: What is the output you get, and what is the output you want ? If you look at [URL="http://php.net/preg_match"]the manual[/URL], you can see that [iCODE]$match[/iCODE] is an integer. If you want to get the text, you'll need to use [iCODE]$table[1][/iCODE] (assuming your regex is correct). | |
Re: If the class is a one off copy of the table, why not let the class load it's columns and default values from the table. See the [URL="http://dev.mysql.com/doc/refman/5.5/en/show-columns.html"]mysql manual[/URL] for more information. From the PHP side, I suggest you ditch your class properties, and switch to the __get() magic method. … | |
Re: Are you perhaps using MyIsam tables ? Another reason could be (which I encountered myself recently) that your webhost has that option turned off. | |
Re: [url]http://php.net/manual/en/security.php[/url] [url]http://phpsec.org/projects/guide/[/url] [url]http://phpsecurity.org/[/url] (two free chapters) | |
Re: Dump it to an [iCODE].sql[/iCODE] file, it will contain the full structure and data. | |
Re: The last one is IMHO the right way to do it. Since you are using classes, there should be no need for globals. Passing you DB class in the constructor for account is valid. | |
Re: Is there nothing in the manual about this, or in the support forum ? | |
| |
Re: You can build your query, based on the output of the [iCODE]SHOW DATABASES[/iCODE] query. Note that this can get real slow. | |
Re: Are you trying to execute PHP code in a javascript function ? This is not possible, unless you use AJAX. | |
Re: [QUOTE=anthonyjpv;1727616]How to INSERT INTO product table linking to specified Category Table?[/QUOTE] 1. Make sure your category is in your category table 2. If it is, get it's ID 3. Insert your product with that category ID | |
| |
Re: A jQuery solution can be found here: [url]http://www.pritaeas.net/demos/jq-dropdown/[/url] cities.php is as simple as this: [CODE] <?php include 'defines.inc.php'; // my connection settings $state = isset($_GET['state']) ? $_GET['state'] : 0; $cities = array (); if ($state > 0) { $link = @mysql_connect(HOST, USER, PASS); @mysql_select_db(DATABASE); $query = "SELECT id, name FROM … | |
Re: First read the [URL="http://www.daniweb.com/web-development/php/threads/191031"]sticky thread[/URL] on top of this forum. | |
Re: You need to create an ajax request, you cannot mix php and js like that, only if you need a static result (like fobos' example). | |
Re: Use an array with those five integers, so you can loop it. Then make a function to count distinct values. One of them should have a count of three or more. | |
Re: Your link tables require the id's of the items you just inserted. You can find these by using [URL="http://php.net/manual/en/function.mysql-insert-id.php"]mysql_last_insert_id[/URL]. | |
Re: [CODE] $query = "SELECT * FROM movlog WHERE driver='$driver' BETWEEN '$date_out' AND '$date_in'"; [/CODE] Make sure that your variables are in the format [iCODE]yyyy-mm-dd[/iCODE] and date_out is smaller than date_in. If that still doesn't work, echo your query, and try it in phpmyadmin. | |
Re: eregi is not meant to be used anymore, use preg instead. Change: [CODE] $emailCHecker = eregi_replace("`", "", $emailCHecker); [/CODE] to: [CODE] $emailCHecker = preg_replace("/`/", "", $emailCHecker); [/CODE] |
The End.