Jump to content

MYSQL AND PHP


marky167

Recommended Posts

Hello on my site im doing a video function and i need help this is how it work's

the user clicks on the link that will go to http://mysite.com/video/play.php?video=146 and it goes to the mysql database and gets info from the table and goes to the line that has the id no 146 and outputs the code. Could you please help me by giving me the mysql (PHP) code ONLY thank you soo soo much for anyone that helps thanks

 

Mark :):)

 

If you need to conatact me use the address spikymark@hotmail.com

Link to comment
Share on other sites

$query = "SELECT * from mytablename WHERE id = '146'";
$result = mysql_query($query) or die("Error: ". $mysql_error(). " with query ". $query);
$row = mysql_fetch_array($result);
$somefield = $row['somefield'];
etc

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.