Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Can you show us your current code because the solution Garethp provided should work...
  2. So nothing happens...? Looks like it's not even getting to the if statement. Can you output the url in the if statement?
  3. Example. Has code and sample for you.
  4. ^--- What?
  5. Change: echo "</pre> <form name='\"form1\"' method='\"post\"' action="%5C%22%24_SERVER%5B'PHP_SELF'%5D%5C%22">< and before your query, add: echo "".$title." ".$eventTime." ".$eventDate." ".$venue." ".$description." This is what you JUST ADDED..."; echo " Here is your query: $sql "; Tell me what it says...
  6. You select your database when you first connect. The others for you query are as follows: $sql="INSERT INTO kirkbydiarydates (eventTime, eventDate, venue, title, description) VALUES ('$eventTime', '$eventDate', '$venue', '$title', '$description')"; kirkbydiarydates - table name eventTime, eventDate, venue, title, description - field names Is this error generated from the insert query I mentioned javascript:void(0);above?
  7. 1) Are all the images in that format, DSCXXXX? 2) Can we your code?
  8. Hmm... You may want to double check that because mysql_error() doesn't lie. Well, sometimes it does. table - citycm_co_uk field - kirkbydiarydates They both exist?
  9. Maq

    My new site

    Maybe that's why he's asking for a critique cause he knows it needs it. Why don't you give him some pointers and suggestions instead of 2 word replies that are useless. -The color scheme is a poor choice. Use one of those color generator sites to find something that fits your site. -The head needs some work. You have a blue/gray background in the header with a red block that has the title of your site. Doesn't look too good. -I like how you utilize the full page but you need to add more content. What kind of feedback are you looking for? Design? Layout? Everything?
  10. Please use: mysql_query($sql) or die(mysql_error()); and tell me what the error message says.
  11. a statement sure to make its way into economics and political science textbooks. lol
  12. Bug? This is a serious problem if it's been down for hours. Why don't you call your hosting provider and ask them what's going on. Downtime usually does not last this long...
  13. $sql="INSERT INTO kirkbydiarydates (eventTime, eventDate, venue, title, description) VALUES ('$eventTime', '$eventDate', '$venue', '$title', '$description')";
  14. Lol, that's the whole point of ORDER BY DESC and LIMIT. You should have said that from the beginning, at least you realized how to solve this problem.
  15. Check out this tutorial.
  16. What?
  17. I don't... I just had an epiphany... I was so focussed on the individual result of the query, that wasn't thinking about how I could use a bigger range of results. Thanks (for helping me think through it more clearly) I'm confused ???
  18. Put it in a function and use the for loop like blade suggested: $connection = //whatever your connect string is...; for($x=0; $x{ doQ($x, $connection); } function doQ($limit, $connection) { $result = mysql_query("SELECT * FROM sv_newsbrief ORDER BY briefID DESC $limit,1", $connection); if (!result) { die("Database query failed: " . mysql_error()); } while ($row = mysql_fetch_array($result)) { $briefID = $row["ID"]; $open = $row["open"]; $in_issue = $row["in_issue"]; $item1 = $row["item1"]; $item2 = $row["item2"]; $item3 = $row["item3"]; $close = $row["close"]; $brief = $item1 . $item2 . $item3; echo $brief; } ?>
  19. Sorry, but when someone starts a thread on how to create a file and doesn't even know how to create a submission button, it makes me think he just wants a CnP solution... And in-case you couldn't figure out the delete part: if (isset($_POST['create'])) { $create = "File.html"; $create = fopen($create, 'w') or die("can't open file"); fclose($ourFileHandle); } if (isset($_POST['delete'])) { $delete = "File.html"; unlink($delete); } ?> </pre> <form action="<?php%20echo%20%24_SERVER%5B'PHP_SELF'%5D;%20?>" method="post"> <
  20. This doesn't even relate to your question. The link you provided is just a black background with some text... I think what you need to do is set the width and height to 100%.
  21. This kid is not going to learn anything if you just give him the code.
  22. Yes! Make a link to a .php page and use the information in the links I gave you.
  23. create delete
  24. Maq

    phishing

    Found this thread on WebProWorld. Seems to be a similar to your problem but for some reason the blame is on Microsoft... Weird! Hope it helps.
  25. Let me know how it works out.
×
×
  • 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.