Jump to content

Help


ecabrera

Recommended Posts

right now i have it like this

$query = mysql_query("SELECT * FROM movies WHERE id='$getid'");
	$numrows = mysql_num_rows($query);
	if ($numrows == 1){
		$row = mysql_fetch_assoc($query);
		$id = $row['id'];
		$user_id = $row['user_id'];
		$user_name = $row['user_name'];
		$title = $row['title'];
		$description = $row['description'];
		$keywords = $row['keywords'];
		$category = $row['category'];
		$movieid = $row['movieid'];
		$views = $row['views'];
		$comments = $row['comments'];
		$date = $row['date'];

		$description = htmltext($description);

Link to comment
Share on other sites

We don't know what you call your columns/tables/ etc. in MySQL so we won't be able to just give you the query you can copy and replace with. You will need to report a little bit more on your system before we can fully help you.

 

You say you want to search your mysql database based on a constraint. This constraint is on the genre of the movies (action movies if i remember correctly.) So my question to you is do you store the genres of the movie in your table? If so what is this column called that stores the genre? What format is it in (is it a varchar?enum?) if its a string do all action movies have the genre set as "action"? or are they random strings with action as part of them (IE just action, or something like:"sci-fi action adventure!")

 

When you can answer questions like these, we will be able to help you better

Link to comment
Share on other sites

Ok? What, do you want us to do it for you? There is a freelance forum if you don't want to do your own work. If you want help thats fine, but at least try to put forth a little bit of effort. This is a volunteer forum. You get out what you put in, and if your not even willing to think then you won't get any help. How do you represent the value of "action" genre? Do you know how to create a query? The fact that what you are asking for is so incredibly simple yet you seem to refuse to put forth any work towards figuring it out makes me think you don't want help, but rather someone to do your work for you.

Link to comment
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.