Hello!
First of all i want to say "thank you" to all appgini contributors!
I need some help on a situation:
this is a part of my textsend.php that it is integrated to appgini app:
.....
$text = $db['Text'];
$telefon = $db['Numar_telefon'];
$curl = curl_init();
$details = '{
"phone": "+40740123456",
"shortTextMessage": "Test msg"
}';
.....
So like this works like a charm. But i need to get info from the appgini db and i tried like this but no luck:) :
$details = '{
"phone": $telefon,
"shortTextMessage": $text
}’;
I also tested and the variables $text and $telefon works corectly (in the page i have the code to extract all data corect).
The problem is that i can not integrate them on $details .
Thank you verry much for your time!! Hope you can help me
db fields insert + php+ curl
Re: db fields insert + php+ curl
Code
Result
Given the following test-data...
... this will be the content of
PS: Please put code fragments in
Code: Select all
<?php
// ...
$text = $db['Text'];
$telefon = $db['Numar_telefon'];
$data = [
"phone" => $telefon,
"shortTextMessage" => $text
];
$details = json_encode($data);
// ...
Given the following test-data...
Code: Select all
$text = "Hallo";
$telefon = "+491234567890";
$details
variable:Code: Select all
{"phone":"+491234567890","shortTextMessage":"Hallo"}
[ code ] YOUR CODE HERE [ /code ]
, see here: app.php/help/bbcode#f2r1Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools
Re: db fields insert + php+ curl
Works verry good.
Thank you!!! thank you! Thank you!!!!!!!
Thank you!!! thank you! Thank you!!!!!!!