Current location: Hot Scripts Forums » Programming Languages » PHP » php error i never seen please help


php error i never seen please help

Reply
  #1 (permalink)  
Old 11-15-03, 09:32 AM
darkcarnival's Avatar
darkcarnival darkcarnival is offline
PHP/MySQL coder
 
Join Date: Jun 2003
Posts: 939
Thanks: 0
Thanked 0 Times in 0 Posts
php error i never seen please help

hi,

i fixed the other errors i had but i got a new 1 and i have no clue what it means.

heres the error:

Quote:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 on line 417

Parse error: parse error, expecting `','' or `';'' on line 417
and heres line 417:

PHP Code:

echo "<tr><td><a href=\"javascript:confirmDelete('".$id."')\"><IMG SRC=\"delete.gif\" HEIGHT=\"16\" WIDTH=\"107\" BORDER=\"0\"></a></td> <td>$name</td><td>$url</td><td>$description</td><td>$keyword</td></tr>"
plz help soon thx.

Last edited by darkcarnival; 11-15-03 at 09:37 AM.
Reply With Quote
  #2 (permalink)  
Old 11-15-03, 09:58 AM
perleo perleo is offline
Coding Addict
 
Join Date: Jul 2003
Location: Ireland
Posts: 269
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by darkcarnival
hi,

i fixed the other errors i had but i got a new 1 and i have no clue what it means.

heres the error:



and heres line 417:

PHP Code:

echo "<tr><td><a href=\"javascript:confirmDelete('".$id."')\"><IMG SRC=\"delete.gif\" HEIGHT=\"16\" WIDTH=\"107\" BORDER=\"0\"></a></td> <td>$name</td><td>$url</td><td>$description</td><td>$keyword</td></tr>"
plz help soon thx.
i have allways had problems using echo to print HTML

try this
PHP Code:

// end script for HTML

?>

<tr><td><a href=\"javascript:confirmDelete(<?php echo $id?>)\"><IMG SRC=\"delete.gif\" HEIGHT=\"16\" WIDTH=\"107\" BORDER=\"0\"></a></td> <td><?php echo $name;?></td><td>$url</td><td><?php echo $description?></td><td><?php echo $keyword;?></td></tr>

<?php

//..........continue script
dont know if it will work, try

Last edited by perleo; 11-15-03 at 10:04 AM.
Reply With Quote
  #3 (permalink)  
Old 11-15-03, 10:10 AM
darkcarnival's Avatar
darkcarnival darkcarnival is offline
PHP/MySQL coder
 
Join Date: Jun 2003
Posts: 939
Thanks: 0
Thanked 0 Times in 0 Posts
cool thx ill give it a try
Reply With Quote
  #4 (permalink)  
Old 11-15-03, 10:35 AM
ermau's Avatar
ermau ermau is offline
Wannabe Coder
 
Join Date: Aug 2003
Location: Florida, USA
Posts: 240
Thanks: 0
Thanked 0 Times in 0 Posts
Or you could try it a real way

PHP Code:

<?php

echo '<tr><td><a href="java_script_:confirmDelete(\'',$id,'\')"><IMG SRC="delete.gif" HEIGHT="16" WIDTH="107" BORDER="0"></a></td> <td>',$name,'</td><td>',$url,'</td><td>',$description,'</td><td>',$keyword,'</td></tr>';
?>
__________________
PHP / mySQL Developer
Reply With Quote
  #5 (permalink)  
Old 11-15-03, 11:28 AM
darkcarnival's Avatar
darkcarnival darkcarnival is offline
PHP/MySQL coder
 
Join Date: Jun 2003
Posts: 939
Thanks: 0
Thanked 0 Times in 0 Posts
ok thx again ill try both to see what works
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 02:22 AM
PHP Dudes - Hi All stuart New Members & Introductions 4 05-03-04 01:22 PM
Custom PHP Scripts BdSBB Job Offers & Assistance 3 12-07-03 09:49 AM
How to convert php generated pages to SE friendly HTML or PHP(SE friendly) -CLASS 101 crippled PHP 1 11-16-03 06:37 AM
Need help on a image slide show using php! xelanoimis PHP 2 10-16-03 06:51 PM


All times are GMT -5. The time now is 05:46 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.