8,966 Posted Topics
Re: If you can show the structure and some data, we can help you write the query. | |
Re: You should pass the inputs as parameters to your `tracker.php` script. You can see how in the jQuery documentation for `ajax`. | |
Re: The regex you show checks for spaces after the word match. Is it an option to first remove all spaces from your string? Perhaps if you show some background or samples, that we can help you better. | |
Re: This is probably because you echo out the response from another server, yet you do not have the required images/css on your server. | |
Re: > For use of header - whitespace, static html or php-derived output or in simple terms (not a complete description), anything that could remotely be seen in the browser 'view source' should NOT be placed before it. I just want to add one less obvious item to this list, a … | |
Re: [This code snippet](http://www.daniweb.com/web-development/php/code/437655/getting-products-details-from-categories-subcategories-with-ajax-call-) shows you how to build one using AJAX. | |
Re: Not very familiar with Oracle, so not sure if the first name constraint is causing this, but a Google search appears to confirm this. Make `AthleteID` the PK, and make the first name a unique index instead. | |
Re: > It isn't the easiest thing in the world to setup a REST api [Restler](https://github.com/Luracast/Restler) can help with that. | |
The docs page for the DW API is off in IE10 (Win8), in Opera it works fine. Screenshot attached.  | |
Re: [QUOTE=TJVR;1310397]I want te php to automatically save the file and overrides the previous downloaded file.[/QUOTE] This is not possible, because the download/overwrite is handled by the browser. | |
Re: The only way I can think of right now is to: 1. Use LEFT 2. REVERSE the result of 1 3. Use CHARINDEX on the result of 2 to search for a space 4. If 3 returns NULL, 0 or 1 use TRIM else continue with 5 5. Use SUBSTRING … | |
Re: Not possible. You'll need a server-side script in between them. | |
Re: > SELECT * FROM Products This always selects all products. You should add a `WHERE` clause, something like: $search = 'iphone'; $data = mysql_query("SELECT * FROM Products WHERE name LIKE '%$search%'") | |
Re: Between line 24 and 25, put `echo $sql;` and see what is generated. One of your functions can introduce unexpected results. | |
![]() | Re: It's in the project properties, target framework, read more [here](http://msdn.microsoft.com/en-us/library/bb772098(v=VS.90).aspx). |
Re: [Here](http://www.mikesdotnetting.com/Article/45/Programmatically-accessing-data-from-DataSource-controls)'s another way to bind you data. | |
Re: You'll need to connect to the selected instance and run the `sp_databases` stored procedure (assuming you have the priviliges to do so). | |
Wasn't sure yet whether to post this publicly. I've adjusted the PHP code snippet for the OAuth. Curl allows you to trap a redirect and this snippet just shows how to do that for the token. The regex searches for the redirect url in the returned header, it can be … | |
Re: > When you used the include function in PHP you have to used php file not html Incorrect. Quoted from [the documentation](http://www.php.net/manual/en/function.include.php): *"When a file is included, parsing drops out of PHP mode and into HTML mode at the beginning of the target file, and resumes again at the end. … | |
Re: What exactly do you have, and what do you want to achieve? | |
Re: Show your table structure, some records, and the required output. | |
Re: Do you mean something like [this](http://kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/)? | |
Re: If some columns are used often, and other columns only for cheater analysis, dividing and joining them when needed is the logical choice. You can always create a view to simplify your client-side query. | |
Re: Sub-domain creation is something which your webhost **CAN** have an API for, ask them for more information first. Installing a web application is usually copying files, and replacing some configuration settings, all of which can be done in PHP. | |
Re: [Here is a thread](http://www.daniweb.com/web-development/web-design-html-and-css/threads/444955/common-color-patterns) containing several tools to help you decide. | |
Re: http://davidlynch.org/projects/maphilight/docs/ | |
Re: The comma after `LOB` is messing it up I think. Are you sure you want to update without a where clause btw (affecting all records)? | |
Re: Technically, one can suffice. | |
Re: You can create an asset, book, magazine and widget table, where the last three have a foreign key to the asset. A join/union can always retrieve the information you need. Another way is to introduce a link table, connecting the asset with the other three. Technically, it would be possible … | |
Re: There are a lot of cUrl samples already in this forum. [Here](http://www.daniweb.com/web-development/php/threads/446170/downloading-a-webpage-text-with-curl)'s one. | |
Re: What database are you using? Can you show the table structure for emp? | |
Re: Shouldn't line 4 be: myArray[y] = new Array(animal.length); | |
Re: Since you are starting PHP, [start right](http://www.phptherightway.com/). | |
Re: It is quite possible that workbench locks the database while exporting. You can check the MySQL documentation for more details. | |
Re: Have a look at using COUNT in HAVING. Since btitle is a varchar column, you cannot compare it to an integer (it does not know you want to count). | |
Re: Book, chapter, part, devision, section and subsection should each have their own table. Records in it should point to their parent (foreign key). You should always have a part and devision, but you can hide it from showing if there is only one child in it. | |
Re: Care to share what solved your issue? | |
Re: We have had similar issues even with XE2 and have finally abandoned it. Somehow what's generated is not usable enough, or a lot of definitions are missing. We've been unable to find any reasonable solution around this problem. Even changing the output by hand was not enough to get things … | |
Re: There's a thread about this somewhere. Sub-forums are not taken into account, hence the difference. Second, there may be a lag as they are cached. | |
Re: - BeOS - AmigaDOS http://en.wikipedia.org/wiki/List_of_operating_systems | |
Re: Install a mail server (Mercury for example). Windows does not have a built-in one. Another option is to use a tool like PHPMailer and connect to your GMail account (assuming you have one). | |
Attached image shows funny layout in top stats on IE10 and Opera on Win8 (both metro and desktop).  | |
Re: Insert the rows with a unique `supplier_nr` for each row and an existing `supplier_id`. | |
Re: In short, what you should do is either use `SUM(Present)` or use `WHERE Present = 1`. `COUNT` just counts the number of rows in the result set. | |
Re: All you need is in the source of that page, just take what you need. | |
I came across this plugin called [baraja](http://tympanus.net/codrops/2012/11/13/baraja-a-plugin-for-spreading-items-in-a-card-like-fashion/) by accident. Looked interesting enough to share. |
The End.