Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
Galih
Posts: 28
Registered: ‎01-31-2012
My Device: 8520

Some one can help me?

Dear All

 

if (!is_null($rpmrbt->download))
		    	{
echo "<li><a href='sms:$rpmrbt->number?body=message'><h3>SMS</h3><p>$rpmrbt->download</p></a></li>";
				}

 I need to send sms get from database, i had a finished to used a number from a database mysql, some one can help me for a body text get from database too??

im try

<a href='sms:$rpmrbt->number?body=$rpmrbt->message'>

it's doesn't work..

 

Need help Pliss...

 

Thanks

Developer
greenback
Posts: 550
Registered: ‎10-17-2010
My Device: (BlackBerry Z10)-> Q10/Passport Dual Use

Re: Some one can help me?

Can you please expand on your code? I am not familiar with the $rpmrbt->download(etc) object methods you are using. Are these javascript?

I suspect you may be using PHP inside the app, and therefore your code does not work. PHP is a server technology.


The way I would get the data would be to:

  1. Write an AJAX call to my mysql database (which is on the server)
  2. The call returns data
  3. I loop through the results
  4. Assign each value to a variable. i.e. var smsnumber = data.number[i];
  5. Dynamically generate page that's populated as a screen in your app
  6. Based on user input or page logic, send sms

If you are still having trouble implementing, I have some sample code for you. Just DM me. 

If this helped, mark my answer as "Solution" or "Like".

 

:Cool2:

Contributor
Galih
Posts: 28
Registered: ‎01-31-2012
My Device: 8520

Re: Some one can help me?

yah...
im using PHP at my program to connect with my server user PDO_mysql.
for $rpmrbt->download ( nothing, just a link for download some file save from server and database )

im just confused in here :
<a href='sms:$rpmrbt->number?body=$rpmrbt->message'>
for get body message from database too, same with a number.

are u have some sample code with use ajax for connect to server??

Ty for helping