sufian Posted July 26, 2009 Share Posted July 26, 2009 Hey how do I get a php code like <?=username?> to get the info from a mysql database? Link to comment https://forums.phpfreaks.com/topic/167500-php-tags/ Share on other sites More sharing options...
smerny Posted July 26, 2009 Share Posted July 26, 2009 mysql queries Link to comment https://forums.phpfreaks.com/topic/167500-php-tags/#findComment-883240 Share on other sites More sharing options...
mmarif4u Posted July 26, 2009 Share Posted July 26, 2009 <?=username?> That is old style of echoing record. No more supported in new version. <?php echo $username?> Can you tells us more... Link to comment https://forums.phpfreaks.com/topic/167500-php-tags/#findComment-883243 Share on other sites More sharing options...
vineld Posted July 26, 2009 Share Posted July 26, 2009 You need to connect to a database and do sql queries in order to fetch the data. Read up on basic sql with php and you will find what you're looking for. Try avoiding short tags as well. Although they will work in virtually all shared hosting environments it is bad practice in the long run. It will still be supported in newer php versions as well though so what mmarif4u told you is not entirely true. Link to comment https://forums.phpfreaks.com/topic/167500-php-tags/#findComment-883244 Share on other sites More sharing options...
sufian Posted July 26, 2009 Author Share Posted July 26, 2009 Basicly I need it so when some one is logged in it checks the session and then looks in the database for a username and password some one has stored from their settings panel and this reads off it so log them in when they access the page for tweeting. Link to comment https://forums.phpfreaks.com/topic/167500-php-tags/#findComment-883249 Share on other sites More sharing options...
mmarif4u Posted July 26, 2009 Share Posted July 26, 2009 So did you write any code for it??? that we can help Link to comment https://forums.phpfreaks.com/topic/167500-php-tags/#findComment-883254 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.