Jump to content

l0gic

Members
  • Posts

    110
  • Joined

  • Last visited

About l0gic

  • Birthday 05/29/1983

Profile Information

  • Gender
    Male
  • Location
    Christchurch City, New Zealand

l0gic's Achievements

Newbie

Newbie (1/5)

2

Reputation

  1. If it's exactly the same content, can you just redirect www.example2.com to www.example1.com ?
  2. The code I posted is not the same that you posted, as outlined above. (Hint: variable names) As for mysqli, while its different it's not that different this page (bookmark it for reference) has all the info you need Including examples: http://www.abc.net.au/news/2015-02-09/man-killed-in-shark-attack-in-northern-nsw/6079344
  3. Welcome to the world of PHP. The mysql -extension is outdated perhaps consider using Mysqli or PDO. Other than that, one of your problems will be here: $select_posts = "select * from posts order by rand() LIMIT 0,2"; $run_posts = mysql_query($select_post); Where you use $select_posts and then $select_post, probably a typo but it'll stop the SQL from being run.. Same thing applies to $run_posts and then $run_post. So double check all your variable names to make sure you have them right. As a tip, when you're constructing your SQL try to capitalise keywords for better readability, i.e. $select_posts = "SELECT * FROM posts ORDER BY RAND() LIMIT 0,2"; Edit: Try this: <? include("includes/connect.php"); $select_posts = "SELECT * FROM posts ORDER BY RAND() LIMIT 0,2"; $run_posts = mysql_query($select_posts); while($row=mysql_fetch_array($run_posts)) { $title = $row['post_title']; $date = $row['post_date']; $author = $row['post_author']; $image = $row['post_image']; $content = substr($row['post_content'],0,200); } ?> <h2><?php echo $title; ?></h2>
  4. I would agree to with this, though maybe it's simply allowing donating users/members to see a "Thank you for donating." or "Your donation history." type of page. The link posted by DenRomano should make for a good starting point.
  5. Good to hear, did you have any luck with your PHP issue though?
  6. Make some templates, or mock-ups and fill them out with lorem ipsum and 'your company name/logo here' graphics, use them until you have something to replace them with. Even then simple templates could be kept and re-used for many basic websites. Just work on your design skills. When transitioning from tables to div and CSS, I spent many (freaken many) hours replicating magazine covers as websites. Sounds easy, eh? Give it a go, learn by doing and practice, practice, practice. Edit: Some spelling, typed up on iPad. Go me.
  7. Is that all it was, really?
  8. Welcome aboard! Good to have you.
  9. Eh, it took script tags out.. echo "<script>alert('Product successfully added'</script>)"; echo "<script>alert('Product successfully added')</script>";
  10. echo "alert('Product successfully added')";..or.. echo "alert('Product successfully added')";Bit of spot the difference, might not be your current problem though.
  11. Perhaps slightly off-topic. But I love it when you unleash your sass on these people... It honestly warms my heart. @ShivaGupta; I'm sorry but if you followed KevinM1s link and have become no closer to understanding how to achieve what it is that your're after (which about 90% of the first page of results covers quite well) I have trouble believing that any of our comments will ever be of any use to you.. But if you seriously want to make an effort to learn things, may I suggest starting with this book.
  12. Unless you have set your session.auto_start directive to 1, then you'll need to start/resume the session at the top of each desired page using the session_start() function. You don't seem to be using that function on your page. Also, on closer inspection: (line 22) if(!isset($_SESSION['assignment_id'])) ($id = $_SESSION['assignment_id']){ Doesn't look right? Try something like: if(!isset($_SESSION['assignment_id']) && $id = $_SESSION['assignment_id']){
×
×
  • 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.