-
Posts
2,527 -
Joined
-
Last visited
Posts posted by DeanWhitehouse
-
-
Looking at the code i will assume you didn't write this, my advice would be to learn what the code you have does and how to use loops with mysql queries.
-
Have you even looked at your sql statement ?
$userrating = mysql_query("SELECT service_rating FROM ratings WHERE u_id = '$u_id' && s_id = $s_id")
Should be
$userrating = mysql_query("SELECT service_rating FROM ratings WHERE u_id = '$u_id' AND s_id = '$s_id'")
-
Have a look at the tutorial on this site for pagination, it will explain it all.
-
Then you either didn't open the window with JS or you are doing it wrong, however please post your reply in the JS forum if you want help with it.
-
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
-
You don't have to put JS in the head tags, you can place them anywhere
-
Try the manual first
-
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?
-
-
You can't close a window you didn't open
-
$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 &
-
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.
-
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.
-
I was thinking that,lol
-
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; }
-
Use a query to get the id
PROBLEM: Using WAMP (for PHP) in VISTA - Cannot save NOTEPAD FILE to www folder
in PHP Coding Help
Posted
Are you logged in as the admin account?