xymalf Posted July 13, 2012 Share Posted July 13, 2012 <!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. Quote Link to comment https://forums.phpfreaks.com/topic/265632-calling-auth-and-storing-keys-in-a-database/ Share on other sites More sharing options...
Pikachu2000 Posted July 13, 2012 Share Posted July 13, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/265632-calling-auth-and-storing-keys-in-a-database/#findComment-1361352 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.