-
Posts
2,527 -
Joined
-
Last visited
Everything posted by DeanWhitehouse
-
You don't have to put JS in the head tags, you can place them anywhere
-
Try the manual first http://uk.php.net/date
-
AJAX? Or document.GetElementByid('') might help you
-
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
-
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.
-
Do you actually have a question then?
-
Use FPDF to create new, smaller pdf from master copy
DeanWhitehouse replied to jonathanp's topic in PHP Coding Help
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 -
$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 &
-
Use FPDF to create new, smaller pdf from master copy
DeanWhitehouse replied to jonathanp's topic in PHP Coding Help
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. -
Use FPDF to create new, smaller pdf from master copy
DeanWhitehouse replied to jonathanp's topic in PHP Coding Help
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. -
[SOLVED] Trying to add email link to field result
DeanWhitehouse replied to springer-'s topic in PHP Coding Help
I was thinking that,lol -
[SOLVED] Trying to add email link to field result
DeanWhitehouse replied to springer-'s topic in PHP Coding Help
echo "<td width=15% ".$user_bg."><a class=\"nobr\" name=\"".$row['userid']."\" href=\"mailto:".$row['email_or_similar']."\">".$row['name']."</a></td>"; Try that -
His might be simpler to answer
-
Use code tags as well, please! Also don't put urgent in thread titles you are not more important than any one else.
-
str_replace(" ","",$r['club']); That will remove the space e.g. if(str_replace(" ","",$r['club']) == "FCTwente") $clubpic="FC Twente.png";
-
echo $avatar_name; In the top of the loop
-
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; }
-
Way to refer to auto-incrementing id in an insert
DeanWhitehouse replied to tibberous's topic in PHP Coding Help
Use a query to get the id -
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);
-
unimportant!!! I need help with the code
DeanWhitehouse replied to thecode's topic in PHP Coding Help
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. -
yes e.g. function sql_query($sql) { return mysql_query($sql); }
-
Was that it?
-
I think you can echo the line number if you want