Jump to content

How not to print the array?


crazylegseddie

Recommended Posts

hey simple question. I use this to print out a specific row from my database shown below:

<?php
require '../library/config.php';
$result = mysql_query('SELECT pd_more FROM tbl_product WHERE pd_id = ' . $_GET['pd_id']) or exit(mysql_error());
$row = mysql_fetch_assoc($result);
print_r($row);
?>

But when it prints the information it includes this: Array ( [pd_more] => This is test data ). How do i change the script so it only prints the text: This is test data

Thank you whoever can help me with this??
Link to comment
https://forums.phpfreaks.com/topic/7241-how-not-to-print-the-array/
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.