Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-15-2006, 06:59 PM
error_22 error_22 is offline
 
Join Date: Nov 2004
Location: Stockholm, Sweden
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Action "Change"

i wrote this, but its not working, and i have no idea what ive done wrong. Im just a newbie heh, can someone help?

thanks in advance

PHP Code:
    require ("./includes/config.php");

    $db_connection = mysql_connect("$server","$user","$pass") or die ("No DB Connection");
    $db = mysql_select_db("$db",$db_connection) or die ("Couldn't select DB");
    
    if ($action == "change"){
  $change = mysql_db_query($db,"SELECT * FROM page Where id='".$_GET[id]."'");
  while ($RS = mysql_fetch_array($change)){
    $id                 = $RS["id"];
    $presentation    = $RS["presentation"];
     ?>
  <form method="post" action="presentation.php?action=update&id=<?=$id?>" name="page" onSubmit="return Gb()">
    <tr> 
      <td valign="top" colspan="2"> <b>Message:</b><br><textarea name="presentation" cols="62" rows="8"><?=$presentation?></textarea></td>
    </tr>
    <tr> 
      <td colspan="2"><input type="submit" name="posta" value="?ndra inl?gg"></td>
    </tr>
  </form>
  <? } ?>
I get the following error:

PHP Code:
Parse error: parse error, unexpected $ in /home/wwwocto2/public_html/kabelkontakten/admin/presentation.php on line 34 
Line 34 is:
PHP Code:
<? } ?>
Reply With Quote
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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:02 PM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.