Jump to content

DeanWhitehouse

Members
  • Posts

    2,527
  • Joined

  • Last visited

Everything posted by DeanWhitehouse

  1. remove the second . <td>" . $row['FirstName'] "</td>
  2. this means i don't know how , this is what i am asking
  3. if i used that , how would i put the posistion into a variable
  4. I'm not sure if this is the right forum, but i am using YUI for testing purposes (for a future site, made for web 3.0) and i can't think of any way to save the items postion on the page, can anyone have a look and see http://deanwhitehouse.awardspace.co.uk/yui_2.5.1/yui/examples/dragdrop/dd-groups_log.html the code is on the page, and that is how i would be moving the items around. Any and all ideas wanted.
  5. you posted a CSS code, so therefore it's a CSS problem
  6. what about , having the file with a dodgy extension like .jpgi and then on the downlaod page, use preg replace and delete the i ???
  7. what errors?? and can you show the lines where the errors are?
  8. echo "<td><a href =? .$row['city'].>".$row['city']."<a></td>"; change to either ?> <td><a href="?<?php echo $row['city]; ?>"><?php echo $row['city];?></a></td> <?php or echo "<td><a href='? ".$row['city']" '>".$row['city']."</a></td>"; if the echo one doesn;t work use the other one, and play around with them to get them to work
  9. that be checking everytime you go to the page, mine would just check when they click submit
  10. does this not limit it to two letters? AND status='2'
  11. for the code i gave you, the link should be this echo "<td><a href =? .$row['city'].>".$row['city']."<a></td>";
  12. you would need to use, if(isset($_POST['])) { } statements and then have the valdiation code in there
  13. no prob, if solved, click topic solved at the bottom
  14. when you have check that the user is the user, put header("Location:randompage.php"); remeber put ob_start(); at the beggining of the page, after session_start();
  15. can you explain some more?
  16. try <?php echo "<img src='estilos/images/spanishflag.gif' alt='wewe'"; ?> instead of <img src="estilos/images/spanishflag.gif" alt="wewe" />
  17. header(); or meta refresh if you get a header error, try adding ob_start(); to the beggining of the script
  18. yer, soz, i just copied and pasted , must of cut that bit out
  19. i thought you might of worked out that they needed to be changed like the one before, as i said the code is to help , it is not tested. This should be changed city = $_GET['city'];
  20. wrong forum, this should be in the CSS forum. Also use require '' ; just to make sure the files are being included.
  21. soz it should be if(isset($_GET['city']))
  22. still not working , if it is to much trouble i will search the net and find a code ,
  23. thanks for the code, but it doesn't do anything ,have i got it right? <script type="text/javascript"> function select_all(name, value) { for (i = 0; i < forminputs.length; i++) { // regex here to check name attribute var regex = new RegExp(name, "i"); if (regex.test(forminputs[i].getAttribute('name'))) { if (value == '1') { forminputs[i].checked = true; document.getElementById('cAll').innerHTML = 'Uncheck all' document.getElementById('cAll').href = 'javascript:select_all(\'messageA\', \'0\')'; } else { forminputs[i].checked = false; document.getElementById('cAll').innerHTML = 'Check all' document.getElementById('cAll').href = 'javascript:select_all(\'messageA\', \'1\')'; } } } } </script> <?php if ($_SESSION['dark_flame'] == true) { ?> <table class="admin_cp" cellspacing="0" cellpadding="3"><tr><td>Test</td></tr></table> <?php } $time_stamp = date("d.m.Y"); $date = $time_stamp; if ($_SESSION['dark_flame'] == true) { if(isset($_POST['delete'])) { foreach($_POST['checkB'] as $checked) { mysql_query("DELETE FROM darkflame_news WHERE id='{$checked}'") or die("Error:" . mysql_error()); } } if(isset($_GET['delete_news'])) { ?> <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post"> <table class="news_profile"><tr><th>Delete News</th><td class="delete">Delete</td></tr><tr><td align="left"> <?php //No ID passed to page, display user list: if($_SESSION['lang_en'] == true) { $query = "SELECT id, name, content, time FROM darkflame_news ORDER BY id DESC LIMIT 5"; } else { $query = "SELECT id, name, content, time FROM darkflame_news_ru ORDER BY id DESC LIMIT 5"; } $result = mysql_query($query) or die("Error:" . mysql_error()); if (mysql_num_rows($result) > 0) { while ($row = mysql_fetch_assoc($result)) { $content = $row['content']; $cont = wordwrap($content, 118, "<br />", true); echo "<b>".$row['time']."</b>"; ?> - <a href="?news_id=<?php echo $row['id']; ?>"><?php echo $row['name']; ?></a></td><td align="right"><input type="checkbox" value="<?php echo $row['id']; ?>" name="checkB[]" /></td></tr><tr align="left"><td><?php echo nl2br(stripslashes($cont));; ?> <?php } ?><tr><td><input type="submit" name="delete" value="Delete Selected"></td><td><a href="javascript:select_all('checkB', '1')" id="cAll">Check all</a></td></tr> ?>
  24. if you want someone to code it for you , you are better trying the freelance section, if not listen to people's advice. you would have something like this <?php if(isset($_GET(city)) { city = $_GET(city); //this is the changed query } else { //here is where the original query goes } ?> and this is the link that would be used <a href="?city=<?php echo $city; ?>"><?php echo $city; ?></a> this should help you
×
×
  • 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.