8,966 Posted Topics

Member Avatar for McLaren

Personally, I agree. If the method is so obvious, skip the test. Focus your attention on the complex ones. Can you explain what the above method is testing? Just to see if an array is returned? Shouldn't it test inserting specific data and test whether that is returned correctly?

Member Avatar for davidkroj
0
510
Member Avatar for harrietlucia
Member Avatar for pritaeas
-1
240
Member Avatar for mrvijayakumar
Member Avatar for showman13

I would set the background image on the `li` so you can add padding-top or margin-top to the `a`. Adding margin-bottom to the li will get your spacing between the blocks.

Member Avatar for showman13
0
183
Member Avatar for chrispitt

http://www.daniweb.com/web-development/aspnet/threads/23808/difference-between-asp-asp.net

Member Avatar for BMXDad
0
344
Member Avatar for akkbkht

Why is there javascript code? Your `if`'s will always fail. Use: if ($_POST['qty'] != "")

Member Avatar for EvolutionFallen
0
213
Member Avatar for PF2G
Member Avatar for pritaeas
0
251
Member Avatar for Tinnin

Does this not work? UPDATE A SET Active = 0 WHERE A.NAME IN ( SELECT A.Name FROM B INNER JOIN A ON B.NameCodeB = A.NameCodeA GROUP BY B.NameCodeB HAVING MAX(B.VisitDate) < DATE_SUB(CURDATE(),INTERVAL 2 MONTH) AND A.Active = 1 ) Do you get an error?

Member Avatar for Tinnin
0
200
Member Avatar for Stefano Mtangoo

If you have a key, just download the install ISO and do a reinstall. Just changing the key should be possible too. I no longer have win7, but in win8 you can just input a new key.

Member Avatar for BigPaw
0
195
Member Avatar for ak47carbon

Which page is the real one (that does processing)? The php or the html one? If the real one is the php one, then you're doing this backwards.

Member Avatar for ak47carbon
0
285
Member Avatar for Bibek_NS

It's still being standardized, but it's a HTTP header to request a webservice to disable it's user tracking. Am not sure if it's already adopted somewhere.

Member Avatar for pritaeas
0
106
Member Avatar for yibrahim

If you tell us how you want the flow of your programs/data to be, then perhaps we can guide you. Are both running on the same machine?

Member Avatar for yibrahim
0
1K
Member Avatar for designershiv

I have a [plugin](https://github.com/pritaeas/hp-jquery/blob/master/plugins/jquery.hp-highlight.js) (hp-highlight) for that, written a long time ago. Get the source, and see how it can be done.

Member Avatar for designershiv
0
3K
Member Avatar for ahudson
Member Avatar for JorgeM
0
382
Member Avatar for rhaylee
Member Avatar for Ritesh_4

Yes, the scheduler will work fine. To copy the files securely (with retries and such) I can recommend [Robocopy](http://technet.microsoft.com/en-us/library/cc733145(v=ws.10).aspx) which is available from MSDN somewhere (don't remember which SDK).

Member Avatar for Ritesh_4
0
197
Member Avatar for mpc123
Member Avatar for mpc123
0
263
Member Avatar for mjsmitten

> Is there any way to make images and at least the thumb a exact width x height Basically yes. If the image is larger than the thumbnail, you could resize first and then crop to get an exact WxH size.

Member Avatar for pritaeas
0
196
Member Avatar for sathishnadu

Deadlock is two threads infinitely waiting on the same thing. Lockwait timeout means one thread timed out while waiting to get a lock, thus preventing a deadlock.

Member Avatar for pritaeas
0
61
Member Avatar for <M/>
Member Avatar for smgeshi
Member Avatar for momonq1990

> it doesn't work for me. Doesn't work is too vague. What have you done, what did you expect, and what isn't working? Do you have an example?

Member Avatar for momonq1990
0
246
Member Avatar for nice_true

You can only do that if you build your query as a string and execute it with `sp_executesql`

Member Avatar for pritaeas
0
123
Member Avatar for moomal.razak
Member Avatar for bops
Member Avatar for bops
0
286
Member Avatar for RigaConnectCom
Member Avatar for ndeniche

That's tricky. Some members (even me) here have endorsements on topics they hardly know. How will you make this trustworthy?

Member Avatar for ndeniche
1
270
Member Avatar for bfitzgerald

http://php.net/setcookie "Cookies must be deleted with the same parameters as they were set with. **If the value argument is an empty string, or FALSE, and all other arguments match a previous call to setcookie, then the cookie with the specified name will be deleted from the remote client.** This is …

Member Avatar for bops
0
253
Member Avatar for joshl_1995
Member Avatar for riahc3
Member Avatar for mrvijayakumar
Member Avatar for mogaka

You are selecting into variables. If you want to use `for each row` you'll need to select into a table.

Member Avatar for pritaeas
0
212
Member Avatar for OsaMasw

SELECT username FROM users u, files f WHERE f.addedby = u.username GROUP BY username Rest depends on what's in table files and what you need to retrieve of that table. Probably something like this: SELECT username, COUNT(*) AS filecount FROM users u, files f WHERE f.addedby = u.username GROUP BY …

Member Avatar for OsaMasw
-1
174
Member Avatar for McLaren

I think because `result` is an iterator, calling `->position` just returns the `current` item, which you can move with `next` or `rewind`. Because Iterator is implemented as an interface, print_r (old function) has no way to detect this. Outputting `result` just calls the Iterator showing all `position` objects.

Member Avatar for pritaeas
0
119
Member Avatar for baruchM

Are you sure you copied everything to your database ? Is there a reason you use multi query for a single stored procedure call ?

Member Avatar for pritaeas
0
274
Member Avatar for Ali Musa
Member Avatar for vizz

I really doubt you can get control over the sent data packets to spoof IP addresses in PHP. Are you trying to run this on a machine at home, or on a hosted server?

Member Avatar for harry247
0
794
Member Avatar for asif49
Member Avatar for jwenting
0
206
Member Avatar for ngkevi1994

`if ("north")` is always `true`. You need to compare the variable `word` (I think). if (word == "north")

Member Avatar for Lucaci Andrew
0
392
Member Avatar for noahwilson
Member Avatar for mbarandao

Google has excellent documentation. Next time, start a NEW thread for your question.

Member Avatar for pritaeas
0
1K
Member Avatar for rayidi
Member Avatar for Papa_Don

> I have to wonder why anyone would use TABLOCK over TABLOCKX. Technically, the lock will only lock the rows in question (if possible), so other data can still be read and modified. Lockx will block all other queries (select queries too).

Member Avatar for Papa_Don
0
1K
Member Avatar for asrsmunna

> Using that kind of URLs will make my website and database a bit safe from hackers. What makes you think that?

Member Avatar for pritaeas
0
193
Member Avatar for Priti_P

What's the format of the resume? If there is no predetermined format, it's lots of work determining all possible combinations.

Member Avatar for sarthakkumar
0
472
Member Avatar for grant.baker

You need to build your query (string concatenation) using the information in the information_schema and then execute it.

Member Avatar for grant.baker
0
245
Member Avatar for anisha.silva

I'm not sure why you write them manually. If you have Visual Studio, you have `xsd.exe` which will generate them for you.

Member Avatar for anisha.silva
0
169
Member Avatar for mbarandao

Using `include` to run a script, doesn't use the GET params AFAIK. I think it's more suitable to use `file_get_contents` if you want to pass parameters.

Member Avatar for diafol
0
2K
Member Avatar for maglarp

That code looks okay. What's in the event handler? What happens when you step through it with the debugger?

Member Avatar for maglarp
0
282
Member Avatar for Varunkrishna

This probably: for (i = 0, ii = result.length; i < ii; i++) Yes, it's valid. The initialization can contain multiple items (the others too probably).

Member Avatar for JamesCherrill
0
224

The End.