Jump to content

How to do this???


scepanmali

Recommended Posts

Hi, guys :)

 

Can anyone tell me how to make this code to extract $zajedno instead of $id variable in the browser?

Thank you in advance!

 

<?php

$username = "root";

$password = "root";

$hostname = "localhost";

 

$dbhandle = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL");

echo "<br>";

$selected = mysql_select_db("spotovi1", $dbhandle) or die("Could not select DB");

 

$zajedno=$row['Artist']."- ".$row['Song'];

$row['Artist']=$Artist;

$row['Song']=$Song;

$id= $row['id'];

$id = $_GET['id'];

 

$sql = mysql_query("SELECT * FROM oblast_metal WHERE ID = '$id'");

$title = mysql_fetch_row($sql);

Link to comment
https://forums.phpfreaks.com/topic/97098-how-to-do-this/
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.