Filtering Tables


Posted on 16th Feb 2014 07:03 pm by admin

Hello Thanks for any help any one can give Im very new to PHP..

I need to pull data for clients that share 2 diff services into one table.

mysql_select_db($database_pull, $pull);
$query_Recordset1 = "SELECT * FROM RR_services WHERE USER_ID='XXXXX' and ( GAME_ID = 'RR6261678786234' or GAME_ID = 'RR4148833526812' )";
$Recordset1 = mysql_query($query_Recordset1, $pull) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>

This does what i need but i have to define the USER_ID i would like it to search all users and just display results of those that have both services..

Thanks

290 Like 52 Dislike
Previous php-forum Next php-forum
Other php-forum

I need help with formatting date from mysql! with php!
Hello guys

*Note: this is a php question not MySQL question, please do not move it to mysql s

Convert .fdf to .pdf
I currently have a web form that uploads the form data to an .fdf file and emails it.

However

Rounding a number queried from a database
I know that to display a rounded number you just do echo "round($number)";. But how would

Form help: Syntax & Logic
Hello again all,

I'm working on a form and ran into a wall (again) and can't seem to think th

Website Direction...
I recently used this code to try and make it so the page loads as http://www.domain.com/ when you ty

db entry based on primary key
My "topics" table contains 10 entires
*--------------*
topicid topic
------

onclick problem
I have <input type="text" name="message">
<a href=page2.

Loop column after 2 results
Hello All.

Here is what I have:

Client ID Company name Clien

Display Database
I need to create a shopping cart. I found this code online: http://conceptlogic.com/jcart/
Unfort

SQL Injection
In my attempts to protect my database from mySQL injection I have created another problem for myself

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash