Jump to content

rmt99e

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

rmt99e's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. <span id="testid"> Test Text </span> that's it!
  2. still can't get this, anyone else have input? :'( :'(
  3. i'm still having trouble.. I tried what both of you said and still nothing is coming up.
  4. Hey, I'm trying to make a spider to get all the content within a <span> tag on another page. This is the first time i've done something like this. I was able to make it work by just searching for a number, but not searching for a table or anything else. Thanks for the help. <?php $url = "test.php"; // URL $page = file_get_contents($url); //$pattern = '/ \d\-\d+ /'; $pattern = '/ <span id="testid"><\/span> /'; preg_match_all($pattern, $page, $results, PREG_PATTERN_ORDER ); $conf = $results[0][1]; echo $conf; ?>
  5. Got it. I added $newsid = $_GET['newsid']; at the top. <?php include("config.php"); if(isset($_POST['submit'])) { $title = mysql_escape_string($_POST['title']); $text1 = mysql_escape_string($_POST['text1']); $newsid = $_GET['newsid']; $result = mysql_query("UPDATE news SET title='$title', text1='$text1' WHERE newsid='$newsid'",$connect) or die(mysql_error()); echo "News updated successfully. Redirecting..."; echo "<meta http-equiv=Refresh content=2;url=view_news.php>"; } elseif(isset($_GET['newsid'])) { $result = mysql_query("SELECT * FROM news WHERE newsid='$_GET[newsid]'", $connect); while($myrow = mysql_fetch_assoc($result)) { $title = $myrow["title"]; $text1 = $myrow["text1"]; ?> <form method="post" action="<?php echo $PHP_SELF ?>"> <input type="hidden" name="newsid" value="<? echo $myrow['newsid'] ?>"> Title<br> <input name="title" size="40" maxlength="255" value="<? echo $title; ?>"> <br>Text<br> <textarea name="text1" rows="7" cols="30"><? echo $text1; ?></textarea> <br><br> <input type="submit" name="submit" value="Update News"> </form> <? }//end of while loop }//end of else ?>
  6. hey guys, im making a news feed in php - i'm working on the edit page. everything works okay except it doesn't actually update the news in the DB .. Thanks <?php include("config.php"); if(isset($_POST['submit'])) { $title = mysql_escape_string($_POST['title']); $text1 = mysql_escape_string($_POST['text1']); $result = mysql_query("UPDATE news SET title='$title', text1='$text1' WHERE newsid='$newsid'",$connect); echo "News updated successfully. Redirecting..."; echo "<meta http-equiv=Refresh content=2;url=view_news.php>"; } elseif(isset($_GET['newsid'])) { $result = mysql_query("SELECT * FROM news WHERE newsid='$_GET[newsid]'", $connect); while($myrow = mysql_fetch_assoc($result)) { $title = $myrow["title"]; $text1 = $myrow["text1"]; ?> <form method="post" action="<?php echo $PHP_SELF ?>"> <input type="hidden" name="newsid" value="<? echo $myrow['newsid'] ?>"> Title<br> <input name="title" size="40" maxlength="255" value="<? echo $title; ?>"> <br>Text<br> <textarea name="text1" rows="7" cols="30"><? echo $text1; ?></textarea> <br><br> <input type="submit" name="submit" value="Update News"> </form> <? }//end of while loop }//end of else ?>
  7. yeah, hopelessx may attract a emo crowd haha. What you'll find is that these days most of the names and ideas you have are already taken. It sucks, haha. Be creative though. If your ideas are taken, try adding to it.. Say if you did use your handle.. and hopeless was already taken - go for hopelessnotes or hopelessonline Just my 2 cents. Just open up notepad and start listing ideas off the top of your head. you might just come up with one you want
  8. Not bad. At first I just looked at the homepage, and I thought it was a little plain and boring.. but the rest of the site looks good man. I'm mostly talking about the image in your second post. That page looks very streamlined. I like the way you layed it out. I would go with that design for the page if I was you. Good luck in developing.
  9. Congrats on your first site. Keep working at it. A few comments/suggestions - colors are very intense and don't play off eachother too well - maybe add some dark colors or switch it up a little. Also, try using some boxes - it will look more organized.
  10. Hey guys - I'm new to the forum. I've viewed for quite some time..and I've finally joined. http://www.eldsmere.com This is the first site i've done in awhile. It was a paid job, pretty low budget - which reflects the quality of the site. This was just a quick and simple job, but i'm interested in some comments. Thanks!
×
×
  • 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.