![]() |
PHP MYSQL Query
I am trying to write a query, am making myself nuts and could use some help...
What I want is a PHP file that; based on the userid of the person logged in, will retrieve the the content of "field7" in the table "userfield" and assign it to a variable so I can pass it to a url in an iframe... Make sense? I hope so because my brain is fried! Here's what I have so far: Code:
<?php Thanks in advance! -Bill Ok... I am making progress here... This seems to be working: Code:
<?php Also, the iframe only seems to display correctly in IE, FireFox and Opera both display HTML instead of the content... Any ideas!?? |
Here:
Code:
<?php Code:
<?php |
Cool... The second one worked perfectly...
Do you know if I can use the Code:
$vbulletin->userinfo['field7'] I have an rssfeed module that displays this same information that I didn't think I would be able to use... It displays the rss feed from this url: Code:
http://www.weathermeister.com/whiskeyVictor/metar?ident=CNO |
BB code is possible, but you'll have to do a plugin for it to work - they aren't parsed as you'd expect.
Where does "CNO" come from? |
The CNO that is on that URL is hardcoded for test... it's an airport identifier...
I have a custom field in the users profile where they can put their airport identifier: field7 in userfields table ...and would like to be able to pull the data automatically |
All times are GMT. The time now is 03:33 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|