Newbie question mysql_fetch_array

Codes here !

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Sat Jun 29, 2013 11:04 am

Newbie question mysql_fetch_array

Postby geir » Sat Jun 29, 2013 11:29 am

Newbie question ....
I have a database and I am trying to list the content...
but all I get is .... nada... :-(
I have a feeling that I have the data in $result..... but
I am not able to get it out....


Code: Select all

$con=mysqli_connect("", "websi_com", "password");
if (mysqli_connect_errno())
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
$sql = "SELECT * FROM Filmer";
$result = mysqli_query($con,$sql);
while($row = mysql_fetch_array($result)){
  echo $row['Tittel'] . " " . $row['Prodaar'];;

Return to “mySQL & php coding”

Who is online

Users browsing this forum: No registered users and 3 guests