News:

Wondering if this will always be free?  See why free is better.

Main Menu

A bit of PHP help, please

Started by TonyJ, February 23, 2020, 05:55:10 PM

Previous topic - Next topic

TonyJ

I'm modifying a PHP file, found on the SMF forums, that allows me to import 300 users into the database.

As I don't have their email addresses, as yet, I need to do something like this to complete the importation. Can someone tell me what syntax I need to append Key(4) to the following, please.

    'email' => $key[4], + "@youremail.com"

Thank you.
I want to die in my sleep like my Grandfather. Not kicking and screaming like his passengers!

live627

string concatenation uses the dot character not the plus sign.

TonyJ

Sorry, but I'm not a PHP coder. :-( Can you show me how the concatenation should look, please.

Quote from: live627 on February 23, 2020, 06:14:25 PM
string concatenation uses the dot character not the plus sign.
I want to die in my sleep like my Grandfather. Not kicking and screaming like his passengers!

vbgamer45

You would use the . instead of +
So
    'email' =>  $key[4] . "@youremail.com"
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

TonyJ

Perfect! Thanks very much for your help.  :)
I want to die in my sleep like my Grandfather. Not kicking and screaming like his passengers!

Advertisement: