Jump to content

TWO TABLES and RESULTS


justapilot

Recommended Posts

I have a variable called clientid being passed via a url. I place that in a variable called $clientid

 

I have two tables, client and web_info

 

I want to select all from client and web_info for the appropriate clientid. I may not have my tables set up correctly. The primary key on the table client is auto genereated and titled client_id the primary key on web_info is e_mail and I want to pull information from the table web_info where the e_mail columns match.

 

Below is my PHP:

 

$query = "SELECT * FROM client WHERE $clientid = client_id and FROM web_info WHERE client.e_mail = web_info.e_mail";

$result = mysqli_query($connection,$query);

$row = mysqli_fetch_array($result);

 

I know I probably screwed all this up but please help :)

Link to comment
https://forums.phpfreaks.com/topic/215465-two-tables-and-results/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.