8,966 Posted Topics

Member Avatar for mario90

You can use `setInterval` if you create a function of the above first. function switchImage() { // your code } setInterval(switchImage, 5000);

Member Avatar for mario90
0
212
Member Avatar for Here4help
Member Avatar for pritaeas

The following code snippet shows how you can parse a DSN (Data Source Name). Why is it useful? You can now pass a single DSN parameter to your database wrapper class' constructor (instead of five separate parameters), and tear it apart into the components you need. The password and port …

1
1K
Member Avatar for Peter_5
Member Avatar for cmsc

From what I've read you need the URL to be the full path to the file. ftp://ftp.example.com/path/file.ext or even: ftp://user:password@ftp.example.com/path/file.ext

Member Avatar for cmsc
0
2K
Member Avatar for ahmad.albab.87

Switch to [MySQLi](http://php.net/manual/en/mysqli-stmt.bind-param.php) or [PDO](http://php.net/manual/en/pdostatement.bindvalue.php) and use bound values.

Member Avatar for ahmad.albab.87
0
249
Member Avatar for Stuugie

Can't you just replace that value with a sub-select? and bsd.BSD_Date_Modified = (SELECT MAX(BSD_Date_Modified) FROM dbo.tblBank_Source_Data)

Member Avatar for Stuugie
0
159
Member Avatar for Krefie

Perhaps unknown to you, MySQL has the following construct: INSERT INTO ... ON DUPLICATE KEY UPDATE ... Technically it makes it possible to use a single query for both the insert and the update. It tries to insert, if the PK exists it does an update.

Member Avatar for C#Jaap
0
210
Member Avatar for joshl_1995
Member Avatar for Rhiannon22
Member Avatar for NardCake

You may want to read [this](http://www.daniweb.com/community-center/daniweb-community-feedback/threads/452623/new-forum-topic-idea).

Member Avatar for NardCake
0
275
Member Avatar for davy_yg
Member Avatar for developer707

Start with this, you just need to select the columns you need: select * from objektet o left join stafi s1 on s1.id = o.id_pergjegjesi left join stafi s2 on s2.id = o.id_punime_civile left join stafi s3 on s3.id = o.id_punime_elektomekanike left join stafi s4 on s4.id = o.id_punime_elektrike

Member Avatar for 1stDAN
0
254
Member Avatar for terryds

What is the exact error? Most likely, the connection failed, echoed an error, causing the `header` not to function. I think it should be: SET NAMES 'utf8' Single quotes, not double.

Member Avatar for code_rum
0
163
Member Avatar for abhi10kumar

Only sometimes if you are friends with someone. This is to protect the privacy, so not just anybody can get a person's full details.

Member Avatar for pritaeas
0
142
Member Avatar for nitin1
Member Avatar for jwenting
0
350
Member Avatar for james.lu.75491856
Member Avatar for scrappy57

Those are [HTTP status codes](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).

Member Avatar for JorgeM
0
125
Member Avatar for OsaMasw

> everything works fine except for the resume download What's not working? Did you use [this one](http://www.richnetapps.com/php-download-script-with-resume-option/)?

Member Avatar for OsaMasw
0
2K
Member Avatar for Dani

Something like [this](http://stackoverflow.com/questions/5877323/intercept-named-anchor-in-javascript)? Not sure if the scrollTo can be used relative (never used it).

Member Avatar for Dani
0
309
Member Avatar for mpc123
Member Avatar for mpc123
0
142
Member Avatar for L-D
Member Avatar for weeraa

You can only do this when you concat strings to build the query, and then execute it with `sp_executesql`

Member Avatar for C#Jaap
0
227
Member Avatar for bradly.spicer
Member Avatar for Octet
Member Avatar for Octet
0
592
Member Avatar for hbm11
Member Avatar for joemathew
Member Avatar for andreiviziru

Do you have this online somewhere to view? My guess is that the path to the CSS is incorrect.

Member Avatar for stbuchok
0
437
Member Avatar for pritaeas

Dani, if I get the following URL: http://www.daniweb.com/api/articles?page=1&orderby=firstpost&access_token=MY_TOKEN it returns the attached JSON result, which fails to `json_decode()`. Can you have a look please?

Member Avatar for Dani
0
298
Member Avatar for sanket044

Not sure if you can get this to work asynchronously. Can you show some code?

Member Avatar for pritaeas
0
83
Member Avatar for hallianonline

> I want to decrypt my code i don't know how it can be done for both codes Your code? If you created this, you must have the original. Looks very suspicious/illegal to me.

Member Avatar for broj1
-1
211
Member Avatar for diafol

It's based on the email address, but I can't remember the name. It's similar to what SO uses as default.

Member Avatar for Dani
1
209
Member Avatar for Mike_H

Your update query runs on ALL records, so you'll have to add a WHERE so it runs on only one at a time.

Member Avatar for Mike_H
0
123
Member Avatar for Dani
Member Avatar for Reverend Jim
3
1K
Member Avatar for skp03

I suggest you talk to a lawyer. If you don't have access to his website anymore, blocking is impossible. If you have a contract, a lawyer is your best option.

Member Avatar for <M/>
0
224
Member Avatar for riahc3
Member Avatar for pritaeas
0
266
Member Avatar for devianleong

Since the start is always constant, I suggest you store it in a variable and then you can just do a `str_replace`

Member Avatar for devianleong
0
183
Member Avatar for son jo

The error means your query failed. I suggest you add error checking to find out why: $results = mysql_query($query) or die(mysql_error() . '<br/>' . $query);

Member Avatar for pritaeas
0
330
Member Avatar for Olagsfark
Member Avatar for shazam
Member Avatar for aarviii

In MySQL you can use [DATEDIFF](http://www.http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_datediff), [MSSQL](http://msdn.microsoft.com/en-us/library/ms189794.aspx) supports it too.

Member Avatar for pritaeas
0
217
Member Avatar for mpc123

`ucwords` is a PHP function, it will not work in an SQL query. I don't think you need it, unless your database is configured to be case-sensitive.

Member Avatar for mpc123
0
226
Member Avatar for kanoy83

1. If you give the dropdown values the ID of the category, then you can use that directly from the POST array. 2. Not sure what you mean, can you explain?

Member Avatar for kanoy83
0
3K
Member Avatar for y.chen

If they provide the regular OAuth, then the Facebook library should work. It should follow the same logic.

Member Avatar for pritaeas
0
76
Member Avatar for Olagsfark

Welcome to DaniWeb. Click the Code button (3rd button in the editor's toolbar) and paste your code there.

Member Avatar for pritaeas
0
138
Member Avatar for akshit

Are you sure all columns are of type string ? We could be of more help if you post the table structure. Have you tried: [code] mysql_query(...) or die(mysql_error()); [/code] to see if there is an error ?

Member Avatar for TomH.PG
0
8K
Member Avatar for BadManSam
Member Avatar for spowel4
Member Avatar for spowel4
0
218
Member Avatar for pritaeas

This snippet shows how you can get the headers for an URL, for example to detect a redirect. I had to use the ANSI functions to ensure correctly returned headers. Manual entry for [HttpQueryInfo](http://msdn.microsoft.com/en-us/library/windows/desktop/aa385373(v=vs.85).aspx). Let me know if you have any questions/remarks.

Member Avatar for vrkiro
1
356
Member Avatar for vision2030
Member Avatar for Szabi Zsoldos
0
252

The End.