Jump to content

Query


Daney11

Recommended Posts

Hey guys,

 

Im not quite sure how to solve my problem. Basically i have a variable

 

$name = "namehere";

 

$nameQuery = "SELECT * FROM `name` WHERE name_url = $name";

 

There is a table in the database called name_url. I want to be able to convert the name_url to the name_id.

 

name_id

name_url

 

How would i go about doing this?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/77927-query/
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.