Jump to content

help with 1 line of code.


justAnoob

Recommended Posts

I assume you want the double quotes in there? Well they are messing the code up. When you want to output double quotes, you need to use the double quote escape character, which is \". Kinda like the newline character but with quotes instead of n.

<?php
echo "\".substr($row['description'],0,50),\"<a href='http://xxxxxxxx.com/viewitem.php'> ...View</a>";
?>

 

that should fix it

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.