Jump to content

alen

Members
  • Posts

    64
  • Joined

  • Last visited

    Never

Everything posted by alen

  1. I'm trying to figure it out, but I just can't read through the lines.
  2. Now I get; Notice: Undefined variable: query in C:\Program Files\Server\public_html\nyheter\edit_process.php on line 16 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\Server\public_html\nyheter\edit_process.php on line 16
  3. I get the exact same error as before.
  4. Now I get this, Parse error: parse error, unexpected T_VARIABLE in C:\Program Files\Server\public_html\nyheter\edit_process.php on line 18
  5. Well, now I get this; Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\Server\public_html\nyheter\edit_process.php on line 7
  6. ah. now I only have this error; [b]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\Server\public_html\nyheter\edit_process2.php on line 10[/b]
  7. I got this, [b]Notice: Undefined variable: result in C:\Program Files\Server\public_html\nyheter\edit_process.php on line 13 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\Server\public_html\nyheter\edit_process.php on line 13[/b] Take a look at the whole script, http://www.oxyscripts.com/item-408.html.
  8. I started reading this tutorial about how to make a simple news management script with php and mysql. I'm new to all this php related stuff.. so could one of you guys help me with some errors? I have this file called edit_process.php where I'm supposed to modifiy the news that I added. So I open the page and there I find beautiful errors which I tried to fix, but failed :\ Here's the error; [b]Notice: Undefined index: id in C:\Program Files\Server\public_html\nyheter\edit_process.php on line 7 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\Server\public_html\nyheter\edit_process.php on line 9[/b] Here's the code; [b]<?php include "config.php"; $db = mysql_connect($db_host,$db_user,$db_pass); mysql_select_db ($db_name) or die ("Cannot connect to database"); $query = "SELECT title, news FROM news WHERE id = $_GET[id]"; $result = mysql_query($query); while($r=mysql_fetch_array($result)) {  $title=$r["title"]; $news=$r["news"];     echo "<form name='edit_process.php' method='post' action='edit_save.php?id=$_GET[id]'>   <p>Title :     <input type='text' name='title' value='$title'>   </p>   <p>News :</p>   <p>     <textarea name='news' cols='40' rows='6'>$news</textarea>   </p>   <p>     <input type='submit' name='Submit' value='Save'>   </p> </form>"; } mysql_close($db); ?> [/b] Sincerely, anigma
  9. alen

    Members List

    I know how to deal with session. Anyways.. I get this parse error, Parse error: parse error, unexpected $end in C:\public_html\members\admin.php on line 306. Here's my code, [a href=\"http://techmonkeys.org/eggpaste/12\" target=\"_blank\"]http://techmonkeys.org/eggpaste/12[/a] Any ideas?
  10. alen

    Members List

    I know the basics so... I'm going to start with an admin login page. Only the admin will be adding members. Everything will be stored in a MySQL database, wich then spits out the members information. Any pointers before i start?
  11. alen

    Members List

    hackerkts, what tutorial did you mean?
  12. alen

    Members List

    Where do you think i could get it?
  13. Howdy! I'm looking for a 'Members' script. Wich displays the name, location, email and maybe something more. There should be an admin place, where you can add people into the 'Members list'. Anyway .. Has anyone by any chance seen this type of php script? Best regards Alen
×
×
  • 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.