LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-25-2007, 04:11 PM   #1
Scooby-Doo
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Rep: Reputation: 0
WHOAAA somethings wrong here? PHP


I keep getting this error. Update I took out the link and I got it on line 17. so I took out the link there too and now it works so, My question is how do I get it to string with a link? Thanks in advance

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/d/o/m/domain/html/addpuppy2.php on line 14

PHP Code:
<?php
$con 
mysql_connect("p41mysql91.secureserver.net","tttbd","TtT1234");
if (!
$con)
  {
  die(
'Could not connect: ' mysql_error());
  }
mysql_select_db("tttbd"$con);$sql="INSERT INTO addpup (name, price, description)
VALUES
    ('
$_POST[name]','$_POST[price]','$_POST[description]')";

    if (!
mysql_query($sql,$con))
  {
  die(
'Error: ' mysql_error());
  
$title "Your Puppy Has NOT been added";
Line 14-->  $pcontent "<a href="/addpuppy.php">Please click here to try again</a>";
  }
$title "Your Puppy Has been added";
$pcontent "<a href="/momsadminpage.php">Click here to go back to the admin Page<a>";
mysql_close($con);
?> 
<html>
<head>
<title><?php echo $title?></title>

</head>
<body>

<?php
    
echo $title;
    echo 
$pcontent;
?>

</body>
</html>

Last edited by Scooby-Doo; 10-25-2007 at 04:19 PM.
 
Old 10-25-2007, 05:02 PM   #2
Ome_Roel
LQ Newbie
 
Registered: Sep 2007
Posts: 9

Rep: Reputation: 1
Good evening, i think maby this could help:

"<a href=\"/momsadminpage.php\">Click here to go back to the admin Page<a>";
or
'<a href="/momsadminpage.php">Click here to go back to the admin Page<a>';

yours kindly

Ome_Roel
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
somethings is wrong with GNOME egypt Red Hat 3 10-11-2004 04:16 PM
somethings is wrong with GNOME egypt Red Hat 0 09-29-2004 05:01 AM
somethings wrong with CD (?) mrb Arch 2 07-21-2004 05:41 PM
Compiled new kernel ... but somethings wrong Elijah Linux - General 6 03-30-2003 10:06 PM
Stopping Somethings iMPReZa-WRX Linux - Security 4 06-19-2001 01:47 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration