Jump to content

Calling Auth and storing keys in a database.


xymalf

Recommended Posts

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

 

<?php

 

$link = mysqli_connect('217.174.253.', 'xymalf' , 'pocol');

if (!$link)

{

$output = 'unable to connect to database server.';

include 'output.html.php';

exit();

}

 

if (!mysqli_select_db($link, 'xymalfco1'))

{

$output = 'unable to locate db';

include 'output.html.php';

exit();

 

}

 

$output = 'connected.';

include 'output.html.php';

 

 

 

?>

 

</body>

</html>

 

I have managed to get an SQL connection. I need help with writing the callback eg application page.

The above module is called connect.php

I want the callback file to be index.php

I want the index file to call the auth file auth();

connect to SQL not sure how I put the link code to module above.

Then I want to store users tokens in the SQL database so my application recognizes them if they visit again.

I want to display users flickrs photos and those of people he follows.

 

1) I don't know if you realize it or not, but you've posted your database credentials on the internet and the whole world can see that information. Go change the username and password right now.

 

2) When posting code, enclose it within the forum's

 . . . 

BBCode tags.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.