8,966 Posted Topics

Member Avatar for Naga14

Are you using `ftp_put` or `ftp_fput`, you mention the first, but the warning shows the second. Their functionality is different.

Member Avatar for pzuurveen
0
278
Member Avatar for akkbkht

> i mean in design view, i add table. then when i enter a data in the cell, so can i add this cell text to a field in DB table? Do you mean to do this in DreamWeaver? > Also how can i add extra row when someone clicks …

Member Avatar for akkbkht
0
273
Member Avatar for maxelcat
Member Avatar for maxelcat
0
134
Member Avatar for terrier_unknown

> I found out that you can always use methods To what are you referring, can you give an example? Classes provide structure, an abstract separation of code pieces.

Member Avatar for ddanbe
0
144
Member Avatar for OsaMasw

See what it contains. If it's the (slow) query log, and you have a backup, it will be safe to delete.

Member Avatar for OsaMasw
0
223
Member Avatar for AmrMohammed

> My first question is: Is it better design to put the UnitPrice field within the Products table or to put it within UnitsInStores table (As is happening already) This depends on your requirements. If a product can have a different price, it makes sense to NOT put it in …

Member Avatar for AmrMohammed
0
264
Member Avatar for Papa_Don

Missing quotes on your values. When omitted it searched for column names: INSERT INTO PRINTERMAINT(PrinterName, PrinterNumber, PrinterLocation, PrinterAddress) VALUES ('printName', 'printNo', 'printLoc', 'printAdd')

Member Avatar for Papa_Don
0
1K
Member Avatar for Vijaysurya

I don't recommend to use a single regex for all the checks (if that's what you meant). It's much easier to just loop through your string and count what category each character falls in.

Member Avatar for masterjiraya
0
205
Member Avatar for 4fridi

That looks like incorrect saving of unicode characters, so my guess is that someone is using arabic, cyrillic or any other non latin encoding in your search.

Member Avatar for 4fridi
0
1K
Member Avatar for lukas.vandendijssel

The problem here is that the PHP user on Apache already has rights to all those folders. This is not easily solved. If you want I can move this to the linux forum, perhaps someone there knows a way. Please refrain from shouting.

Member Avatar for lukas.vandendijssel
0
302
Member Avatar for garyjohnson
Member Avatar for Tinnin

I suggest getting the total number of rows (if possible), and then work your way backwards through the rows. Anything that will shift will not affect you.

Member Avatar for Tinnin
0
4K
Member Avatar for daniel36
Member Avatar for Simon180

Something like this: var IdHTTP: TIdHTTP; Stream: TStringStream; Result: string; begin IdHTTP := TIdHTTP.Create(nil); Stream := TStringStream.Create; try try IdHTTP.Get(aURL, Stream); Result := Stream.DataString; except Result := ''; end; finally Stream.Free; IdHTTP.Free; end; end; Then you can try to put result in a string list and read it line by …

Member Avatar for pritaeas
0
1K
Member Avatar for ManthanB

Assume you have this XML in column `XmlData`: <item><title>1<title><description>A</description></item> <item><title>2<title><description>B</description></item> You can select nodes using a `CROSS APPLY`. Something like: SELECT node.value('(./title)[1]', 'VARCHAR(100)') AS title, node.value('(./description)[1]', 'VARCHAR(1000)') as description FROM table CROSS APPLY XmlData.nodes('/item') t(node)

Member Avatar for ManthanB
0
238
Member Avatar for unikorndesigns

As for Spring, you should definitely try it. If you learn this, there are other languages too, that have implemented Spring (E.g. Delphi, C#).

Member Avatar for stultuske
0
203
Member Avatar for akkbkht

This is not how PHP works. You cannot add code after a button, and expect it to execute when you click it. PHP is executed on the server, and HTML resides on the client. For every button you'll need to trigger some action on the server, either with a separate …

Member Avatar for akkbkht
0
227
Member Avatar for Lennox

The IDE may have issues because it uses graphic modes which are no longer supported. The compiler should work fine though.

Member Avatar for Lennox
0
1K
Member Avatar for asif49

> everytime a few new elements are added to the page If you are not the one controlling this, you're stuck with what you have for now.

Member Avatar for stbuchok
0
167
Member Avatar for semontuffel
Member Avatar for OsaMasw

If you look at the RSS feeds on the site you mention, you can see that they do not provide any content. They provide links to content, so if you want that content, you need to get it yourself (scrape the page).

Member Avatar for OsaMasw
0
303
Member Avatar for chila

> I am stuck on how to model the entity types. Can you explain a little more?

Member Avatar for chila
0
167
Member Avatar for andika.kurniawan.121
Member Avatar for yap.junjie.7

Missing semi-colon on line 5. Line 15-17 should be this I guess: $result = mysql_query($query, $handle) or die ("ERROR: Cannot execute $query: " . mysql_error($handle)); I doubt `mysql_connect` will work without a username specified. The query won't run because you need to select a database first with `mysql_select_db` or specify …

Member Avatar for TonyG_cyprus
0
396
Member Avatar for pritaeas

http://www.daniweb.com/web-development/php/code/452374/rss-dashboard I attached a zip file. I can see it when I "Edit Article", but it's not showing for download. Perhaps because it's a zip, or a code snippet?

Member Avatar for Dani
0
114
Member Avatar for fheppell

What usually happens is that you store the email address and a generated code in a database, which you use to create the link. When the user clicks the link, he is taken to a page that verifies the code against the database.

Member Avatar for Squidge
0
195
Member Avatar for <M/>

I can recommend this [(e-)book](http://www.packtpub.com/cms-design-using-php-and-jquery/book).

Member Avatar for pritaeas
0
158
Member Avatar for sumeshpremraj
Member Avatar for joshl_1995

To avoid spam, I definitely recommend some system to prevent bot posting. If registering is easy enough, it won't block bots either.

Member Avatar for joshl_1995
0
275
Member Avatar for minitauros

"And so on" may explain it for you, but for a regex you need to specify what you want. That means writing out every combination you want matched and "or" them, since a regex cannot "guess". When you have all patterns, there may be shortcuts. 1 sept 07 - 16 …

Member Avatar for minitauros
0
341
Member Avatar for natehome

> even when a visitor goes to another page on my website If the page reloads, the music will stop. My guess is the only way would be a single page with all content dynamically loaded through AJAX.

Member Avatar for natehome
0
345
Member Avatar for savedlema

10049 means address not available, it's a socket error. Port seems to be missing the equal sign, so check your syntax.

Member Avatar for savedlema
0
3K
Member Avatar for dinhunzvi
Member Avatar for edensigauke

Perhaps [this guide](http://install-climber.blogspot.nl/2013/02/windows8-how-to-setup-iis8-for-php5-integration.html) will help.

Member Avatar for edensigauke
0
253
Member Avatar for ranjithcs75

Here's a [list of RTF codes](http://e-sword-users.org/users/node/3969#comment-2871). In short: /par for <p> /b for <b> /i for <i> /ul for <u> Last three optionally followed by a `1` for on, `0` for off.

Member Avatar for pritaeas
0
134
Member Avatar for ringo_tech
Member Avatar for <M/>

Do yu want to build it yourself, or do you want to use something like HighSlide (ready made and free) ?

Member Avatar for <M/>
0
165
Member Avatar for TMacFarlane

Debug. Output your variables and the resulting query. Then you can test with phpMyAdmin against your database. It's quite likely something small you've overlooked. Apart from that, I prefer a construct like this: $where = array (); if (isset($_GET['loc'])) { $loc = $_GET['loc']; $where[] = "project_locations.locat_id = $loc"; } if …

Member Avatar for pritaeas
0
370
Member Avatar for ACRDepos
Member Avatar for ACRDepos
0
141
Member Avatar for gogs85

Create a single insert query. It may time-out though. Depends also on how you are accessing your images, and how you want to store them.

Member Avatar for gogs85
0
149
Member Avatar for Nirmeen Ased

Replace line 2 with: $rs = mysql_query($sql) or die(mysql_error()); It could be a problem with the sub-select, but hard to diagnose without any sample data.

Member Avatar for Webville312
0
117
Member Avatar for pol.bala
Member Avatar for daniel36

If you precede an integer with a zero, it is assumed to be in octal notation. If you need an integer outputted with a leading zero, use `sprintf()`.

Member Avatar for masterjiraya
0
170
Member Avatar for dlaverick
Member Avatar for dlaverick
0
144
Member Avatar for diafol

> I was working on a SQL-type interface Y u no Linq? ;) Am interested anyway though...

Member Avatar for diafol
1
481
Member Avatar for dlaverick
Member Avatar for Echo89

> not tested, but theoretically should work This alone made me want to hit the vote down button, but I refrained ;) It's an acceptable start. *"In theory, theory and practice are the same. In practice, they’re not."* Room for improvements (IMHO): - Returning `false` is a little weird, you …

Member Avatar for Echo89
-1
2K
Member Avatar for davidjennings

> I am not sure where to start to solve this problem. Do you know how to use/build a class? Do you know how to use the Twitter API? That should be your start.

Member Avatar for pritaeas
0
237
Member Avatar for JySysAdmin

I think you can only do that if you pass a replace function. You cannot do it with a single replace string in this case, and Javascript regex does not accept arrays as parameters (unlike PHP).

Member Avatar for pritaeas
0
236
Member Avatar for New-Reign

The End.