Jump to content

moffo

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

moffo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hello, i can't make a layout table anymore with dreamweaver mx please someone can help me with the code? my email is; Neshander@gmail.com thanks in advance!
  2. read my first post and you will see what i talk about
  3. it doesnt display any error it just dont show anythng man man man
  4. no man see this links: http://halimaboland.awardspace.com/index.php and http://halimaboland.awardspace.com/anything-you-want.php the problem is with the script above, go and look more carefully if you are a real PHP master.
  5. and here we open a folder called articles and in this folder we upload article1.php : <?php include("anything-you-want.php"); ?> the include doesnt work, why? can someone help me to make this done? also why dont you try the script i gave above ?
  6. but i have done an article1.php with include in it and it does not work, someone know why that happens?
  7. hello, i have some bad problems in the script. please have a look articles.php: <?php include 'settings.php'; function loadContent($articleNumber){ global $a; $contentName=$a[$articleNumber].".php"; $f=@file_get_contents("./articles/".$contentName); if($f)echo $f; else echo "Loading failed"; } ?> articles_mysql.php: <?php function loadContent($articleNumber){ $conn = mysql_connect("localhost", "root", "Vulkan"); mysql_select_db("labs",$conn); $sql="select * from articles where id='".$articleNumber."'"; $result = mysql_query($sql); $row = mysql_fetch_assoc($result); $articleName=$row['articleName'].".php"; mysql_close($conn); $f=@file_get_contents("./articles/".$articleName); if($f)echo $f; else echo "Loading failed"; } ?> index.php: <?php include "articles.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Loading contents</title> </head> <body> Here we will load an article that get its contents depending on the ID we send using GET method through the URL string<br> so add an ID in the URL like localhost/contents/?ID=2<br> or localhost/contents/index.php?ID=2<br> <div style="border:1px red dashed;width:400px;height=200;overflow:auto;padding:3px"> <?php loadContent($_GET['ID']); ?> </div> <p>Here we will load a specific article not related to what user sends through the URL, but using known article number</p> <?php loadContent(1); ?> </body> </html> settings.php: <?php $a=array( "article0", "article1", "article2", "article3", "article4", "article5", "article6", "article7", "article8" ); ?> and here we open a folder called articles and in this folder we upload article1.php : <?php include("anything-you-want.php"); ?> the include doesnt work, why? can someone help me to make this done? thanks
  8. where do i need to to have the donwload link for example : ffssdf.zip? ???????????????????????
  9. helpppppppppppppppppphelpppppppppppppppppppppppppppppppphelppppppppppppppppppppppp
  10. ok so what must we do to let it request example file hjgjg.zip ?
×
×
  • 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.