Jump to content

Wrong Interpreter


gimmefaith

Recommended Posts

Hi,

 

I have installed Apache, PHP and MySQL. I seams to work good, but there is a really strange thing going on. When i make a link like:

 

<? echo \"<a href=\'$php_self?inhoud=4\'>Werk Ervaring</a>\"; ?>

 

I want to use a link to change my variable $inhoud using a query string. But the $inhoud would not change in another value. When I use another webserver (from my site) it will work very good. I will show you the code of what i have did:

 

<html>

<head>

<title>Untitled Document</title>

<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">

</head>

 

<body bgcolor=\"#CCCCCC\">

<div align=\"right\"></div>

<table width=\"760\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFCC\">

<tr>

<td width=\"18%\"><div align=\"center\"><font color=\"#000000\" size=\"-2\" face=\"Verdana, Arial, Helvetica, sans-serif\"><? echo \"<a href=\'$php_self?inhoud=3\'>Opleidingen</a>\"; ?></font></div></td>

<td width=\"18%\"><div align=\"center\"><font color=\"#000000\" size=\"-2\" face=\"Verdana, Arial, Helvetica, sans-serif\"><? echo \"<a href=\'$php_self?inhoud=4\'>Werk Ervaring</a>\"; ?></font></div></td>

<td width=\"18%\"><div align=\"center\"><font color=\"#000000\" size=\"-2\" face=\"Verdana, Arial, Helvetica, sans-serif\">Kennis</font></div></td>

<td width=\"15%\"><div align=\"center\"><font color=\"#000000\" size=\"-2\" face=\"Verdana, Arial, Helvetica, sans-serif\">Portfolio</font></div></td>

<td width=\"16%\"><div align=\"center\"><font color=\"#000000\" size=\"-2\" face=\"Verdana, Arial, Helvetica, sans-serif\">Interesse</font></div></td>

<td width=\"15%\"><div align=\"center\"><font color=\"#000000\" size=\"-2\" face=\"Verdana, Arial, Helvetica, sans-serif\"><? echo \"<a href=\'$php_self?inhoud=1\'>Begin</a>\"; ?></font></div></td>

</tr>

</table><br>

<hr width=\"90%\"><br>

<table width=\"760\" height=\"282\" border=\"0\" align=\"center\" bgcolor=\"#FFFFFF\">

<tr>

<td height=\"278\"><table width=\"700\" height=\"221\" border=\"0\" align=\"center\">

<tr>

<td width=\"36%\" height=\"217\"><div align=\"center\"><img src=\"images/alex.jpg\" width=\"217\" height=\"202\"></div></td>

<td width=\"64%\" bgcolor=\"#FFFFCC\">

 

<?php

if ($inhoud==\"\") $inhoud=1;

 

include \"./connection.inc\";

$link_id = db_connect(\'pop\');

$result = mysql_query(\"SELECT * FROM content WHERE id=$inhoud\", $link_id);

 

while($query_data = mysql_fetch_row($result)) {

echo \"$query_data[1]\";

}

?>

 

</td>

</tr>

</table></td>

</tr>

</table>

<p align=\"center\"> </p>

</body>

</html>

 

Please help me!!!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.