|
Posted by Michael Trausch on 05/21/05 05:39
noSpAm0000 wrote:
> I'm trying to take email addresses from a MySQL database and then place
> them on a page, hiding the email addresses from spam harvesting software
> using JavaScript.
>
> I'm a beginner at PHP -- is there a way I can take the email addresses out
> of the database and split each of them into 3 variables that I can
> reassemble on the page with JavaScript? I have about 10 email addresses
> per page.
>
> Thanks.
>
>
Using string manipulation functions, you can break it apart into two or
three variables, and then output it however you like. Check out the PHP
manual online and read up on the PHP functions to put it together. Your
best bet would be to put this in a function that you'd pass the e-mail
address in as a parameter, and return an array.
- Mike
Navigation:
[Reply to this message]
|