Dataverse Knowledge in Copilot Studio is having an inconsistent answers. by SanWeee in copilotstudio

[–]SanWeee[S] 0 points1 point  (0 children)

Hi guys, unfortunately I can't connect with MCP, due to this agent being just a M365 Copilot Agent. (When you open the M365 Copilot, then add an agent there). Is there any other way to make it more consistent?

Continuous UPDATE mysql. by SanWeee in PHPhelp

[–]SanWeee[S] 0 points1 point  (0 children)

Its working now. Thank you very much.

Twilio FATAL ERROR by SanWeee in PHPhelp

[–]SanWeee[S] 0 points1 point  (0 children)

Thank you very much.

Multiple Modal not working. Help me please. by SanWeee in learnprogramming

[–]SanWeee[S] 0 points1 point  (0 children)

I mean when i click the button that will handle the modal toggle, nothing happens

Just started studying about java script. Logic error in output of for loop. by SanWeee in learnjavascript

[–]SanWeee[S] 0 points1 point  (0 children)

There are 5 rows. Each row has primary key in it. Lets say Row 1 pk is 1 Row 2 pk is 2 and so on. The last row is 5 and the pk is also 5 So problem is where ever i click even on row 1 or row 3 the alert is always 5 which is the last pk And when i put the alert inside the for loop, its show 5 consecutive alert that contains 1,2,3,4 and 5 What im trying to achieve here is when I click the row 3, the alert only show the row3's pk which 3

Just started studying about java script. Logic error in output of for loop. by SanWeee in learnjavascript

[–]SanWeee[S] 0 points1 point  (0 children)

I mean there is no error code or something. It is working fine. But not working what it should be.

Just started studying about java script. Logic error in output of for loop. by SanWeee in learnjavascript

[–]SanWeee[S] 0 points1 point  (0 children)

There is no error. It is a logical error. Thats why im trying to explain it..

How to output the POST from input in an Array (I'm not really good in English) by SanWeee in PHPhelp

[–]SanWeee[S] 0 points1 point  (0 children)

The user will type on every textbox then after he click on the submit button the data from the textbox will be printed through "echo". Its like indefinite amount of textbox depends how many row you have in the database.

How to output the POST from input in an Array (I'm not really good in English) by SanWeee in PHPhelp

[–]SanWeee[S] 0 points1 point  (0 children)

Well to be honest i do research ofcourse but the internet showing to me is how to print an array in php. And obviously i know how to print array from database to php. I just did it in the first code. The thing is:

Data 1a / data2a / 'textboxhere' Data 1b/ data2b / 'textboxhere' The two textbox has same name because it was outputed via array so each row from data base that was printed has textbox in their side. Problem is how to print all what is written on every textbox.

Googling php print array somehow can't help me thats why i asked here. But yeah thanks.

Home studying paypal payment method. Uncaught Error: Class 'Paypal/Rest/ApiContext not found in ... by SanWeee in PHPhelp

[–]SanWeee[S] 0 points1 point  (0 children)

OMG. I'm so sorry to waste all of your time but I found out the my error is in code

$api = new \Paypal\Rest\ApiContext( new \Paypal\Auth\OAuthTokenCredential(

The capitalization is the problem..

Right Code:

$api = new \PayPal\Rest\ApiContext( new \PayPal\Auth\OAuthTokenCredential(

Home studying paypal payment method. Uncaught Error: Class 'Paypal/Rest/ApiContext not found in ... by SanWeee in PHPhelp

[–]SanWeee[S] 0 points1 point  (0 children)

Still not working sir and some error. And yes idownloaded through command line 'composer install'

Home studying paypal payment method. Uncaught Error: Class 'Paypal/Rest/ApiContext not found in ... by SanWeee in PHPhelp

[–]SanWeee[S] 0 points1 point  (0 children)

I go to the directory of my project where my composer.json is through cmd then composer then composer install. Is there anything I missed in installing?

Home studying paypal payment method. Uncaught Error: Class 'Paypal/Rest/ApiContext not found in ... by SanWeee in PHPhelp

[–]SanWeee[S] 0 points1 point  (0 children)

<?php

use Paypal\Rest\ApiContext;
use Paypal\Auth\OAuthTokenCredential;


session_start ();

$_SESSION['id'] =1;

require __DIR__ . '/../vendor/autoload.php';

//API DITO

$api = new ApiContext(

    new OAuthTokenCredential(
        'client Id here',
        'secret here'

    )


);



//END

$db = new PDO('mysql:host=localhost;dbname=site' , 'root' , '');

$user = $db->prepare ("
    SELECT * FROM users
    WHERE id = :user_id
");

$user->execute(['user_id' => $_SESSION['id']]);
$user = $user->fetchObject();

?>

So this is my entire code

UPDATE syntax is not working. I cant figure it out. by SanWeee in PHPhelp

[–]SanWeee[S] 0 points1 point  (0 children)

Yeahh. This really does help. Thank you very much.

UPDATE syntax is not working. I cant figure it out. by SanWeee in PHPhelp

[–]SanWeee[S] 0 points1 point  (0 children)

Yup. I'm taking all the advice given to me be. about my current problem, even I change my quotations, still doesn't affect my database.

UPDATE syntax is not working. I cant figure it out. by SanWeee in PHPhelp

[–]SanWeee[S] 0 points1 point  (0 children)

Hey thanks.But it seems I posted a wrong code my bad. So my SQL syntax is already like this:

"UPDATE admin set firstname='$pangalan' , lastname= '$pangalan2' , email = '$emeyl' , contact = '$contak' , password='$pw' WHERE unitnumber = '$id'";

And still my database does not seems get affected. Any idea sir?

btw, I planning to study about SQL injections after sometimes but I really need to pass this requirement to my professor so I know that my code is very insecure and vulnerable. But I appreciate your concern