8,966 Posted Topics
Re: Because your tag attributes aren't enclosed within quotes, as per html specifications. [CODE] echo '<input type="hidden" name="value" value="' . $value[0] . '" />'; [/CODE] Or this: [CODE] echo "<input type='hidden' name='value' value='{$value[0]}' />"; [/CODE] | |
Re: An iframe doesn't work if you want only part of a webpage. [URL="http://www.roseindia.net/ajax/jquery/jqueryloadcontent.shtml"]Here[/URL]'s an introduction on how to use the jQuery method. First try this (learn to get it to work). Then come back and ask how to get only the part you want from that website. | |
Re: Have a look at this jQuery plugin: [URL="http://datatables.net/"]datatables[/URL]. | |
Re: What are you looking for, how to do this with a query ? Can you show the code you have so far ? | |
Re: Were you looking for a [URL="http://alexgorbatchev.com/SyntaxHighlighter/"]syntax highlighter[/URL] ? There are many more than the one I linked. (I know this was solved, but it may help others.) | |
Re: Please add code tags, and indicate which line has the error. | |
Re: You may want to read [URL="http://www.daniweb.com/web-development/php/threads/191031"]the sticky thread[/URL] first. | |
Re: Can you please add a textual explanation of what you mean with combining them ? ![]() | |
Re: As long as you are using relative addressing, you would have no issues. If you are referring to http:// based content, then the user would get a warning. This would most likely apply to third party plugins. | |
![]() | Re: It means that it will execute that action, when you are trying to insert a new record with a primary key that already exists. |
Re: If the string you're inserting has the zeroes, but the column doesn't, then perhaps there is a trigger removing them on insert (assuming your column is of type string/char). | |
Re: Hard to tell if you do not show your code. Most likely [iCODE]$price[/iCODE] does not get a value. | |
Re: The easiest way will be to install a package like WampServer or XAMPP on your computer. It installs Apache, PHP and MySql for you, ready to use. A site in HTML only will not be able to insert into MySql, you will need PHP to do that (or any other … | |
Re: Check if you are allowed to write into your folder. Most likely you can change this in your cPanel or via your FTP client. | |
Re: [URL="http://thinkdiff.net/mysql/encrypt-mysql-data-using-aes-techniques/"]Here[/URL] you'll find a nice introduction to AES. | |
Re: My guess is that it cannot find the referenced CSS files. Also, the [iCODE]<link>[/iCODE] tags only function correctly when they are in the [iCODE]<head>[/iCODE] section of your page. | |
Re: The javascript is probably executed before the HTML body is ready. Try putting the javascript code just before the closing body tag. | |
Re: Can't you just join the two queries and use a single loop ? [CODE] mysql_query("SELECT name,quantity FROM ingredient JOIN recipeingredient ON ingredient.ingredientid = recipeingredient.ingredientid WHERE recipeingredient.recipeid = '" . $recipeid . "'"); [/CODE] | |
Re: It is caused by incorrect usage of quotes. Probably a rogue single quote messing up your string, you need to escape them. | |
Re: A [iCODE]mysql_query[/iCODE] returns a resource, not a string. So after your query you can use [iCODE]mysql_fetch_array[/iCODE] to get to your description. See [URL="http://php.net/manual/en/function.mysql-fetch-array.php"]the manual[/URL] for examples. | |
Re: [url]http://css-tricks.com/snippets/css/text-rotation/[/url] | |
Re: I think you can only do this, if you're gonna post your form data using javascript (AJAX). | |
Re: [url]http://www.php.net/manual/en/function.similar-text.php[/url] ![]() | |
Re: [url]http://php.net/manual/en/simplexml.examples-basic.php[/url] | |
Re: Most likely your code crashes somewhere. Either echo some messages to see where you get, or enable error reporting while testing. | |
| |
Re: Jquery has not much to do with it. It is just a form, and the input box has some elaborate CSS styling. Inspect the source for details. | |
Re: If you pass less than 4 items in the $column_set, the query will fail. ![]() | |
Re: [CODE] SELECT * FROM table WHERE (county='Jefferson' OR county='Bingham' OR county='Butte' OR county='Bonneville' OR county='Madison') AND state='ID' [/CODE] | |
Re: A quick search showed that you should use tls and port 587, however I've never tried these settings myself. The latest version of PHPMailer is 5.2.0 | |
Re: No, it does not. MySql triggers work on the MySql server only, and do not provide feedback to other applications. Basically, I think it could be possible to write your own user defined function for MySql, but that would be written in C, not in PHP. In PHP you would … | |
Re: SetLength does the appropriate memory management for you, if you are not using objects in it. Why not use a TList instead of constantly resizing an array. | |
Re: I'd make them properties. Then you can set them as you like, you can remove them from the function call, and they are still accessible after your first call. | |
Re: A scheduled task is exactly what you are looking for. If your application has to be in PHP, then there are no real other options. | |
Re: Of course, the Zend website is the place to be, but I found [URL="http://robertbasic.com/blog/starting-with-zend-framework/"]this description[/URL] pretty okay. | |
Re: [iCODE]$customers[/iCODE] is never assigned a value, unless some code is missing. | |
Re: This should do it: [CODE] SELECT * FROM table GROUP BY item_code ORDER BY item_code, date DESC [/CODE] | |
Re: I think he wanted to link to this: [url]http://jqueryui.com/demos/autocomplete/[/url] | |
Re: [CODE] <td colspan="2" align = "center" style="color:#FF0000; font-weight:bold;">' . ((isset($_GET['error']) and ($_GET['error']=='recaptcha')) ? $sb->dt('Error: The captcha was entered incorrectly. Please try again.') : '') . ' </td> [/CODE] | |
Re: You could try to run an older version. You can find a history of xampp versions [URL="http://www.oldapps.com/xampp.php"]here[/URL]. I don't think you can find anything really useful to help you port to a newer version. It will probably require a lot of work. You can always fork the project and try … | |
Re: Just put the file in your website root. However, if it is empty, you cannot check anything. | |
Re: Won't line 5 echo '4', instead of '3' ? (Don't think I'm nagging, just keeping you on your toes :) ) | |
Re: [CODE] if(!preg_match("~[0-9A-Za-z-/]+~", $url_key)) {} [/CODE] The ~ marks the begin and end of the regex (any 2 matching chars). You do not need a comma to separate the items. The + says it has to be one or more of the preceding characters. | |
Re: It says $members is an empty string. Check with debug tools whether your hidden input has a value set, before submitting the form. If it is empty, then there is something wrong with your javascript. | |
Re: IIRC, this only works if the column names are the same in both tables. Another option would be to create a foreign key between the two columns with ON DELETE CASCADE. | |
Re: You have to setup a cron job. You can search this forum for examples. | |
Re: Date format is incorrect, use Y-m-d format or the mysql NOW() function. |
The End.