Jump to content

[SOLVED] echo problems


blueman378

Recommended Posts

hi guys well heres the codce

echo '<tr><td>';
    echo $row[cName] . '</td>
<td>5</td>
<td><a href="catprocess.php$action=Delete&$cat=' . $row['cName'] . '">'
<img src="Delete.png" alt="Delete"></a></td></tr>';

 

heres the error

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\wamp\www\admin\Category manager.php on line 88

 

88 is the bottom line there

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/83100-solved-echo-problems/
Share on other sites

echo '<tr><td>';
    echo $row[cName] . '</td>
<td>5</td>
<td><a href="catprocess.php$action=Delete&$cat=' . $row['cName'] . '">'
<img src="Delete.png" alt="Delete"></a></td></tr>';

 

Hmm, try this instead:

echo '<tr><td>';
    echo $row[cName] . '</td>
<td>5</td>
<td><a href="catprocess.php$action=Delete&$cat=' . $row['cName'] . '">
<img src="Delete.png" alt="Delete"></a></td></tr>';

Link to comment
https://forums.phpfreaks.com/topic/83100-solved-echo-problems/#findComment-422739
Share on other sites

hi guys well i modified it a bit so now i have,

echo '<tr><td>';
    echo $row[cName] . '</td>
<td>'"; include("gamecount.php); echo </td>
<td><a href="catprocess.php$action=Delete&$cat=' . $row['cName'] . '">
<img src="../images/Delete.png" alt="Delete" Title="Delete"></a><a href="catprocess.php$action=Browse&$cat=' . $row['cName'] . '">
<img src="../images/Browse.png" alt="Browse" Title="Browse"></a></td></tr>';

error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in C:\wamp\www\admin\Category manager.php on line 86

 

oh and your code before worked, thanks

 

so any ideas this time?

 

Link to comment
https://forums.phpfreaks.com/topic/83100-solved-echo-problems/#findComment-422746
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.