Jump to content

DeanWhitehouse

Members
  • Posts

    2,527
  • Joined

  • Last visited

Everything posted by DeanWhitehouse

  1. to close then would be <a href="Javascript:window.close()">Close</a> Use a timer and put the window.close(); in a function, this is the PHP forum not JS
  2. You don't have to put JS in the head tags, you can place them anywhere
  3. Try the manual first http://uk.php.net/date
  4. AJAX? Or document.GetElementByid('') might help you
  5. Post in the freelance section for that, or google it, or even better learn how to do it using online tutorials and trial and error
  6. Do you mean how do we have include files and make sure that we don't include something we don't need, simple in the include file (header or whatever) just put something that you will need on all pages, and everything else on the page in question. Now if you have something on more than one page but not all then make a function for that and put it in the include file.
  7. Do you actually have a question then?
  8. OK Maybe http://uk.php.net/manual/en/function.pdf-fit-pdi-page.php or http://uk.php.net/manual/en/function.pdf-process-pdi.php
  9. You can't close a window you didn't open
  10. $delete_id = 28; echo "<form><input type=\"button\" onclick=\"delete('$delete_id')\" value=\"Delete Gallery\"></form>"; Then <script>function delete(DeleteId) { var answer = confirm("Do you want to delete this gallery?") if (answer){ window.location = "http://site.com/?delete="+DeleteId; } }</script> That + might need to be changed to &
  11. No, I got from the opening post that you create the master pdf there ? If so why not use the information from that page and create a smaller pdf instead as well as/instead of the master pdf. Or are you trying to use a current pdf and shrink it.
  12. I have no experience in using the pdf functions but surely you can just create the PDF the size they with the data you have instead of creating it a set size then trying to read it and resize. I'm not sure if that is what you meant.
  13. echo "<td width=15% ".$user_bg."><a class=\"nobr\" name=\"".$row['userid']."\" href=\"mailto:".$row['email_or_similar']."\">".$row['name']."</a></td>"; Try that
  14. His might be simpler to answer
  15. Use code tags as well, please! Also don't put urgent in thread titles you are not more important than any one else.
  16. str_replace(" ","",$r['club']); That will remove the space e.g. if(str_replace(" ","",$r['club']) == "FCTwente") $clubpic="FC Twente.png";
  17. echo $avatar_name; In the top of the loop
  18. Thanks, but i have half solved it I made two tests like so $mesg = secure(" [center] test [/center] [scroll]test[/scroll] "); //does htmlentities and trim, i need to change it $mesg = bbcode($mesg); echo nl2br($mesg); /*^prints, test \r\n\r\n \r\ndoes it work like this?\r\n */ That has test centered and the scroll working but nl2br stops working :S Edit: the function function secure() { $arg_count = func_num_args(); $arg_list = func_get_args(); for ($i = 0; $i < $arg_count; $i++) { $un_secure = $arg_list[$i]; $un_secure = htmlentities($un_secure); $un_secure = trim($un_secure); if(@mysql_ping()) $un_secure = mysql_real_escape_string($un_secure); if($arg_count == 1) $secured = $un_secure; else $secured[] = $un_secure; } return $secured; }
  19. Use a query to get the id
  20. With my current script it seems to only work if i have something like echo " [center]word[/center] "; but not when it is like echo " [center] word [/center] "; (with out any break lines, just /r/n) the code for center is $code = preg_replace("/\[center\](.*?)\[\/center\]/","<center>\\1</center>",$code);
  21. When a company hires a someone to do a job they would want someone who knows how to do the job, not someone who knows how to ask for help. It will depend on the questions he asks for the responses he gets.
  22. yes e.g. function sql_query($sql) { return mysql_query($sql); }
  23. I think you can echo the line number if you want
×
×
  • 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.