8,968 Posted Topics

Member Avatar for Ethan_145

What he said, and if you do need a lot of random numbers, generate a huge fifo queue beforehand and while you're using them just take the next one and add a new one.

Member Avatar for toneewa
0
510
Member Avatar for Ant_426
Member Avatar for Ant_426
0
497
Member Avatar for Clinton_3
Member Avatar for pritaeas
0
53
Member Avatar for dwlamb

For anyone else trying to solve XML issues with regex, please use DOMDocument instead: https://www.php.net/manual/en/class.domdocument.php

Member Avatar for pritaeas
1
211
Member Avatar for Vandiun
Member Avatar for rahull.singh098

Query 2 is dubious, as `INTERSECT` returns [something different](https://docs.microsoft.com/en-us/sql/t-sql/language-elements/set-operators-except-and-intersect-transact-sql?view=sql-server-ver16) than is suggested here.

Member Avatar for pritaeas
0
98
Member Avatar for pritaeas

How would I know if an e-mail originates from Office 365? I know I can look at the oldest `Received` header of a message to see where it originates from, but how would I use that header value to know it was sent from an Office 365 account? It looks …

Member Avatar for pritaeas
0
62
Member Avatar for mihailbog245
Member Avatar for Sahid1
Member Avatar for jwatson
Member Avatar for Khadiiijah
Member Avatar for rproffitt
0
99
Member Avatar for ezeiruchibuike
Member Avatar for Dani
0
471
Member Avatar for martin5211

Your mail server doesn't like double newlines. So change the header code by removing the doubles.

Member Avatar for Dani
0
22K
Member Avatar for Bill_44
Member Avatar for Safa_2
Member Avatar for pritaeas
0
47
Member Avatar for a_165
Member Avatar for LDBx

Not just scale, region is also a factor. VAT tariffs for one are very localized and specific.

Member Avatar for pritaeas
0
39
Member Avatar for 민성

> Picture box picture control is not working What is it supposed to do, and what exactly isn't working?

Member Avatar for pritaeas
0
62
Member Avatar for nurman_1

Lines 39 and 41 concatenate both queries into one, resulting in an invalid query. IIRC you should separate them by a semi-colon. If that doesn't work, execute the queries separately, preferably within a transaction.

Member Avatar for pritaeas
0
66
Member Avatar for Android Oyunlar

Show a picture of what you want to achieve. You say you want to use an inside splitter to resize a container, but that's not possible. They both have to have the same parent control.

Member Avatar for pritaeas
0
169
Member Avatar for xijin gu
Member Avatar for Hadil_1
Member Avatar for Andromaque
Member Avatar for Andromaque
Member Avatar for rproffitt
Member Avatar for Dani

I obtained an [Acorn Atom](https://en.wikipedia.org/wiki/Acorn_Atom) when I was about 11. Discovered coding assembly soon after. Interest in coding never faded, got my BSc. in 1997.

Member Avatar for rproffitt
2
94
Member Avatar for TimTheCoder

I don't see an action called `ReceiveWithRequestFormData`, shouldn't that be `GetProperties` ?

Member Avatar for TimTheCoder
0
125
Member Avatar for new2022

Shouldn't that be like this: ``` Dim command As String command = "md \?\C:\Windows \System32" Shell "cmd.exe /c " & command ```

Member Avatar for rproffitt
0
224
Member Avatar for TimTheCoder
Member Avatar for pritaeas
0
80
Member Avatar for pritaeas
Member Avatar for Ren_706
Member Avatar for gce517
0
97
Member Avatar for sushu1209

You'll need a tool probably. I haven't seen this done in PHP yet. Perhaps [PDFLib](http://www.pdflib.com/pdflib-cookbook/pdf-import/split-document/php-split-document/) is an option.

Member Avatar for Dani
0
6K
Member Avatar for Intan Farizatul
Member Avatar for JModak

`matches` is an IEnumerable, so you can use a `For Each` to look at the contents of each match: https://docs.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.matchcollection?view=net-6.0

Member Avatar for Minimalist
0
745
Member Avatar for mhzone21
Member Avatar for forgot

`$expiry='expiry';` That sets the variable expiry to the string 'expiry'. When it is evaluated as an integer, it will return 0. If you want to validate the column expiry from the database, then you should write a query to retrieve that value. Plenty examples to be found right here on …

Member Avatar for pritaeas
0
36
Member Avatar for Bienvenue

Show your code. It means you did not (correctly) create a PDO object. It should look something like this: ``` $a=new PDO("mysql:host=localhost;dbname=database;","root",""); $b=$a->prepare("UPDATE `users` SET `user`='me'"); $b->execute(); ``` Taken from: https://www.php.net/manual/en/pdo.prepare.php

Member Avatar for Dani
0
96
Member Avatar for mahkameh
Member Avatar for zizuflorin
Member Avatar for RC_820

Something like this perhaps? (untested) SELECT A.username, A.count_ref, B.sum_bonus FROM (SELECT referral AS username, COUNT(1) AS count_ref FROM members WHERE referral IS NOT NULL GROUP BY referral) AS A LEFT JOIN (SELECT username, SUM(bonus) AS sum_bonus FROM ref_bonus GROUP BY username) AS B ON A.username = B.username

Member Avatar for pritaeas
0
110
Member Avatar for KnowledgeMan
Member Avatar for Hasan_23
Member Avatar for pritaeas
0
30
Member Avatar for Bidesh

Probably not, there are often ways around it, but more importantly, what are your requirements exactly?

Member Avatar for 1Truth
2
379
Member Avatar for Gashaw_1
Member Avatar for Mr.M

Show some data. What do you have in your database, and what do you want as output?

Member Avatar for Biiim
0
148
Member Avatar for Marufkhan
Member Avatar for hichamlams
Member Avatar for evelyne88
Member Avatar for codingaspirant
Member Avatar for kenben10

The End.