Jump to content

Recommended Posts

            $clb_id = $_GET["clb_id"];

$query = "SELECT id FROM flashchat_rooms WHERE cld_id=".$clb_id;

IF( $clb_id == "0" ) { $chatroom = '1'; } else {

$chatroom = $query->single; }

 

Does not work. so i break it up

 

$clb_id echo's fine

$query echo's fine

$chatroom Does NOT echo fine.

 

So i'm left to wonder if i could just do

 

$chatroom = mysql_query($query);

 

echo'd again, still a no go.

 

So i smarten up right? I go through the other code to find what the other programmers did...

 

 

$this->getUserInfo  = new Statement("SELECT * FROM members AS m,profiles AS p WHERE m.mem_id = p.mem_id AND m.mem_id=? LIMIT 1");

 

and i'm like "how's this help me" So i look further to see how they connected..

function getUserProfile($userid)

{

$rs = $this->getUserInfo->process($userid);

if(($rec = $rs->next()) == null) return null;

include(DOC_ROOT."/themes/".THEME."/modules/profiles.inc.php");

return $profiles["url"]."/".$rec["folder"];

 

}

 

 

Any ideas?!

Link to comment
https://forums.phpfreaks.com/topic/52175-smarty-controls/
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.