Forum: PHP 2 Hours Ago |
| Replies: 2 Views: 96 *sigh*
Give the full info kam. Build a forum - that should keep you out of mischief for a few months. |
Forum: PHP 2 Hours Ago |
| Replies: 1 Views: 45 Search hotscripts or sourceforge.
e.g. http://sourceforge.net/projects/solunas/ |
Forum: PHP 2 Hours Ago |
| Replies: 11 Views: 235 Can't really help - js ain't my thing - I've only got a jobber's understanding. The script I mentioned has a reload limit set to 5, so that should avoid an infinite loop, but as for why it doesn't... |
Forum: PHP 9 Hours Ago |
| Replies: 2 Views: 90 OK a few ways you could go:
see my reply from a similar request:
http://www.daniweb.com/forums/thread208966.html |
Forum: PHP 1 Day Ago |
| Replies: 3 Views: 171 $action . $fields . $table . $jointype . $jointable . $joinfields . $setclause . $whereclause . $orderclause . $limitclause
The above should work for simple queries:
$action options
(1)... |
Forum: PHP 1 Day Ago |
| Replies: 6 Views: 158 I assume it's:
Search for newline and replace with '</li><li>'. Place a '<li>' at the start and a '</li>' at the end. |
Forum: PHP 2 Days Ago |
| Replies: 6 Views: 158 This site uses '<pre class="code">' and ordered lists ('<ol><li>..</li>....</ol>') on every line to ensure line numbers. |
Forum: PHP 2 Days Ago |
| Replies: 2 Views: 123 Is the weekly set to one week since now (7 days) or is it since last Sunday?
I assume monthly means for this calendar month
I assume yearly means this calendar month
Do you want stats for this... |
Forum: PHP 2 Days Ago |
| Replies: 6 Views: 158 Looks good. How about having allowable bbcode tags set to different html tags? b -> strong, i -> em. That should make it more xhtml-compliant. |
Forum: PHP 2 Days Ago |
| Replies: 2 Views: 134 What do you mean 'type in an url'. The url given as an example contains a 'querystring' - a list of parameter-value pairs. Don't have your users type this as they probably wouldn't know what to type.... |
Forum: PHP 2 Days Ago |
| Replies: 11 Views: 235 I think you'll be needing js. The server sends all the info but it is up to the browser to display it. |
Forum: PHP 2 Days Ago |
| Replies: 11 Views: 235 Did you google?
http://userscripts.org/scripts/review/53030 |
Forum: PHP 2 Days Ago |
| Replies: 6 Views: 182 I assume that you're not using asp! Are you trying to get the id number or the href user number?
I'm a little confused as to what you're trying to achieve.
How is this DIV shown? Is it hard... |
Forum: PHP 2 Days Ago |
| Replies: 12 Views: 552 No problem. itech's solution looks really good. Hope it works out for you. |
Forum: PHP 3 Days Ago |
| Replies: 12 Views: 552 Quite possibly, but even so, the url rewrite can deal with any files in addition to "index.php". It just seems like an extreme filesystem for a relatively straightforward need. 'Include file'... |
Forum: PHP 3 Days Ago |
| Replies: 12 Views: 552 Just to throw in my twopenneth worth:
Why not just have one index page that has a querystring with country and county as parameters. You can then dynamically create the page on the fly with... |
Forum: PHP 4 Days Ago |
| Replies: 2 Views: 138 http://uk2.php.net/manual/en/control-structures.if.php |
Forum: PHP 6 Days Ago |
| Replies: 17 Views: 470 Croeso.
Here's the modified script with proportion (constraints):
<?php
function CutThumb($img,$crop=15,$thumb_w=150,$thumb_h=150){
//get info from original image
list($w, $h) =... |
Forum: PHP 6 Days Ago |
| Replies: 2 Views: 210 |
Forum: PHP 6 Days Ago |
| Replies: 17 Views: 470 Like my previous solution:
<?php
function CutThumb($img){
//set variables
$crop = 15;
$thumb_w = 150;
$thumb_h = 150;
//get info from original image
list($w, $h) = getimagesize($img); |
Forum: PHP 6 Days Ago |
| Replies: 17 Views: 470 OK F, will have a look later on - got to pick up the kids. Hope to get back in a couple of hours.
BTW: anybody else out there? This ain't a private discussion. All solutions considered, especially... |
Forum: PHP 6 Days Ago |
| Replies: 4 Views: 202 @N18
OK, zebra-striping. This is my solution - note the lack of ternary operators - to avoid confusion. "oddclass" is the default class for the stripe as the two striped list item colours may be... |
Forum: PHP 6 Days Ago |
| Replies: 17 Views: 470 This is what I was saying!
Your script is way too complicated for just a simple thumb crop. It's great, don't get me wrong, but a little heavy-handed for what you need.
If you tell me what... |
Forum: PHP 7 Days Ago |
| Replies: 2 Views: 210 My computer shows red when I run this at localhost and lo and behold when I go to your site, I see red again!
Clear the cache for this page. However, I don't know if that'll help. Which browser... |
Forum: PHP 7 Days Ago |
| Replies: 4 Views: 274 OK, I think I get you:
Let's assume your db table is something like this:
APPARATUS
id (primary key)
apparatus (varchar)
Again I assume you want to place all the apparatus into a dropdown... |
Forum: PHP 7 Days Ago |
| Replies: 17 Views: 470 Firstly, have you contacted the author of the script to troubleshoot?
Secondly, do you really need all this functionality or are you just wanting to crop 15px off the thumbnail? If so, this script... |
Forum: PHP 7 Days Ago |
| Replies: 4 Views: 202 Don't quite get what you need. Are you after zebra-striping a list or just selectively styling certain list items?
For the latter:
$output = "\n<ul>";
while($d = mysql_fetch_array($r)){... |
Forum: PHP 7 Days Ago |
| Replies: 17 Views: 470 Sorry F, I'm not going to download them. If you want to post the relevant bits, we'll have a look. |
Forum: PHP 7 Days Ago |
| Replies: 17 Views: 470 By all means, as long as it is posted to the forum. I do not accept PMs. Anyway, I can't promise to help and perhaps another member can give better advice.
What we need to know is the nature of... |
Forum: PHP 7 Days Ago |
| Replies: 3 Views: 237 Have you searched for this yourself? Do you know about "onmouseover" and "onmouseout" html attributes? Have a go yourself and then paste any code that's problematic.
If this is for an assessment,... |
Forum: PHP 7 Days Ago |
| Replies: 13 Views: 482 I agree, but there's a new "what's your fave IDE" every week, or it seems that way. You may have a point, coz I've started using Dreamweaver again, despite rubbishing it in previous polls. I've been... |
Forum: PHP 7 Days Ago |
| Replies: 17 Views: 470 Have to be honest - I don't really understand exactly what you want:
Do you just want to resize the image (height only)?
e.g. just take 15px off the height and don't worry about stretching the... |
Forum: PHP 7 Days Ago |
| Replies: 3 Views: 230 Less bloat. It's not as well supported as jquery, so I don't know if I would recommend it to a beginner. Scriptaculous makes good use of prototype as does Mootools. I probably use it because it's the... |
Forum: PHP 7 Days Ago |
| Replies: 4 Views: 238 It's not that difficult. I like the way templating systems allow you to separate php code and html. You can even nest template pages (like php include files).
The systems allow loops and... |
Forum: PHP 7 Days Ago |
| Replies: 17 Views: 470 Try this - I messed around with it for a while, but I'm sure it could be further optimized - perhaps with just the one imagecopyresampled - but my head's fried.
<?php
function CutThumb($img){... |
Forum: PHP 7 Days Ago |
| Replies: 13 Views: 482 This has been done to death EV. Anyway...
1. Aptana/Netbeans/Notepad++ and Dreamweaver (don't laugh).
2. Prototype for Ajax (js), sometimes Scritpaculous, Mootools, Yahoo! Pipes.
3. I don't like... |
Forum: PHP 7 Days Ago |
| Replies: 3 Views: 230 Yes you can.
I tend to use prototype as opposed to jquery. Yahoo! also has an excellent ajax/js library. Whichever library you decide to use (JQuery is probably your best bet if you need support),... |
Forum: PHP 7 Days Ago |
| Replies: 4 Views: 238 IF you want a good robust and QUICK templating system, get something like Smarty. I tend to use Rain TPL due to its small size.
I've also developed my own templates, but these tend to be... |
Forum: PHP 9 Days Ago |
| Replies: 2 Views: 217 You place a value within $dbitem but use $db_item in the SQL. They aren't the same. |
Forum: PHP 9 Days Ago |
| Replies: 2 Views: 241 Your problem is the session_destroy() function.
Do this:
x()
{
<?php
//session_destroy();
?>
} |