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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.