Project Detail

Simple Mysql statement  

Simple Mysql statement is project number 165662
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: bendriss

Budget: $30-100

Created: 08/06/2007 at 9:07 EDT

Bid Count: 4

Average Bid:
$ 50

08/07/2007 at 9:07 EDT

Project Creator: dhurd7333
Employer Rating: 9.9167/109.9167/109.9167/109.9167/109.9167/109.9167/109.9167/109.9167/109.9167/109.9167/10 (12 reviews)

Bid On This Project
 

Description

I have the following code :
$userp = mysql_query("SELECT users.*, users_profile.*, users_theme.* FROM users, users_profile LEFT JOIN users_theme ON(users.id=users_theme.user_id)
WHERE users.id=users_profile.mid AND users.username = '".$member."'");
$userp = mysql_fetch_assoc($userp);
$smarty->assign('userp', $userp);


This code works fine , however there is a field in the users table I want to include in this statememnt. The field is user_group and has a single digit numerical value .

I want to be able to use the following code with the above corrected statement :

{if $userp.user_group != '2'} do something {/if}

If needed a new variable can be assigned as long as it is capturing the value of table user , field user_group .

I need this literally in an hour , for a good mysql guy this should take less than 5 min .


Job Type

See more: ., code, hour, include, long, mysql, simple

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

50

0 days

08-06-2007 09:25 EDT

Five minute work for me.

help

 

30

0 days

08-06-2007 09:28 EDT

Hi, See pm

help

 

80

0 days

08-06-2007 09:27 EDT

here i'm! carlo italy

help

 

40

0 days

08-06-2007 09:27 EDT

(No Feedback Yet)

Hi, Please check you PM, Thanks

help


    Bid on this Project