Forum: Site Layout and Usability May 26th, 2008 |
| Replies: 6 Views: 975 |
Forum: PHP May 25th, 2008 |
| Replies: 2 Views: 184 Re: Change a quote every 24 hours? Hi,
I would have the id number of the quote and the time it was lasted changed stored somewhere. The database would be the obvious choice, but you could use a cookie or something. Then each time the... |
Forum: Site Layout and Usability May 21st, 2008 |
| Replies: 6 Views: 975 |
Forum: HTML and CSS May 19th, 2008 |
| Replies: 2 Views: 350 |
Forum: PHP May 19th, 2008 |
| Replies: 4 Views: 261 Re: table rows and columns $strHtml = '<table class="blah">';
$intCount = 0;
for($i = 0; $i < 2; $i++) {
$strHtml .= '<tr>';
for($j = 0; $j < 2; $j++) {
$strHtml .= "<td>{$arrResult[$intCount]}</td>";
$intCount++;
}
$strHtml... |
Forum: PHP May 18th, 2008 |
| Replies: 4 Views: 261 |
Forum: Site Layout and Usability May 18th, 2008 |
| Replies: 6 Views: 975 |
Forum: Site Layout and Usability May 16th, 2008 |
| Replies: 9 Views: 906 Re: How do you create this... MidiMagic, I agree with your comment regarding accessibility - some users may struggle to use the hover feature, although by adding a small piece of javascript, the div could be made to remain... |
Forum: Site Layout and Usability May 13th, 2008 |
| Replies: 9 Views: 906 Re: How do you create this... Hi,
I've had a look and such an effect can be achieved with CSS or JS. Personally, I'd recommend the CSS option, as your websites usability wouldn't be dependent on the user having JS enabled.
I... |
Forum: HTML and CSS May 12th, 2008 |
| Replies: 6 Views: 423 Re: HTML prob - firefox and ie... Hi,
You said you had specified padding and margins for everything already, however I can see no evidence of this in either your source nor your stylesheet.
Whenever I create any webpage, I always... |
Forum: PHP May 11th, 2008 |
| Replies: 3 Views: 29,246 Re: Basic PHP Includes Hi Amigura,
Thanks for your response. I solved the problem in a similar manner. I simply made one of the parameters I passed to my template class a path offset and it works perfectly.
Thanks for... |
Forum: PHP May 10th, 2008 |
| Replies: 4 Views: 373 Re: sending variables to other pages Kevin, have you tried using the session array? Assigning variables to $_SESSION before the page changes, and retrieving them when the new page loads?
R |
Forum: PHP May 10th, 2008 |
| Replies: 3 Views: 29,246 Re: Basic PHP Includes Hi,
This is a topic I am having an issue with presently.
I have separated my HTML code from my PHP code, so that I now have a header, footer and navigation template, which will be used on every... |
Forum: PHP May 10th, 2008 |
| Replies: 2 Views: 243 Re: Deleting A file on the FTP via php script Hi,
Surely the FTP will map your public_html folder, within which will be your PHP scripts. So can you not simply use the unlink function in PHP?
Sorry if I am over simplifying the problem.
R |
Forum: PHP May 8th, 2008 |
| Replies: 4 Views: 234 Re: Gallery Templating Issue Hi again,
A thought regarding the layout of your gallery. You could have all the photos arranged in a grid manner, with a 10 or 20px margin between each. Then for displaying information, you could... |
Forum: PHP May 8th, 2008 |
| Replies: 2 Views: 212 |
Forum: PHP May 7th, 2008 |
| Replies: 4 Views: 234 Re: Gallery Templating Issue Hi,
Where does the array $row['url'] come from on line 27 of the gallery script??
Also, the second PDF link you uploaded doesn't work.
R. |
Forum: HTML and CSS May 7th, 2008 |
| Replies: 8 Views: 860 Re: Smaller image to larger Image on rollover Hi,
One option, which I have used in a different manner is to have a separate div display on hover.
The HTML for it would be something like this:
<a class="enlarge_picture" href="#" title="Picture... |
Forum: PHP May 7th, 2008 |
| Replies: 22 Views: 1,484 Re: if file exists Sorry Kevin, caching is something I've not used yet, as I am still new to PHP. Best of luck sorting that though. |
Forum: PHP May 7th, 2008 |
| Replies: 22 Views: 1,484 Re: if file exists Hey Kevin,
For the unlink, your code would need to read:
$path='image/thumbs/';
$fileToRemove1 = 'thumb_image1';
$exts = array('jpg', 'png', 'gif', 'jpeg');
foreach($exts as $ext) { |
Forum: PHP May 7th, 2008 |
| Replies: 22 Views: 1,484 Re: if file exists Kevin,
If you're sending the images out in an email, then yes you're right, the absolute links would be required. For the file exists, the relative links would suffice, or use the $_SERVER function... |
Forum: HTML and CSS May 7th, 2008 |
| Replies: 4 Views: 404 Re: Drop down Thx for the NO there. Do you mean that you'd like the initial menu in a column formation as opposed to a row? With the sub-menu appearing in a new column adjacent to it? Hence, expanding... |
Forum: Site Layout and Usability May 6th, 2008 |
| Replies: 8 Views: 1,484 Re: Site Development Structure I've not so long ago started a new site from scratch. When building website, I more often than not design the layout first, with an aspect of nearly everything in it. For example, I'd design and... |
Forum: HTML and CSS May 6th, 2008 |
| Replies: 4 Views: 404 Re: Drop down Hi,
Sorry but to clarify, are you talking about wanting a menu that expands to the side, as opposed to dropping down underneath?
If so, they both work on the same principle. However the key... |
Forum: PHP May 6th, 2008 |
| Replies: 22 Views: 1,484 Re: if file exists My guess having seen the above would be that the variable $broad_img1 is out of scope... Try declaring it at the top of the script alongside $image = ""; or alternatively, reassign the HTML <img>... |
Forum: PHP May 6th, 2008 |
| Replies: 9 Views: 295 |
Forum: PHP May 6th, 2008 |
| Replies: 9 Views: 295 Re: Login problem, need fresh set of eyes. Hi,
To use PHP errors, you can also call this function:
ini_set("display_errors", 1);
ini_set('error_reporting',E_ALL);
And the 'die' command is literally just die;. Don't add the mysql_die... |
Forum: PHP May 6th, 2008 |
| Replies: 22 Views: 1,484 Re: if file exists Hey Kevin,
Yeah, if you can upload some more content, perhaps the HTML email content, then that may help.
Best,
R |
Forum: PHP May 6th, 2008 |
| Replies: 22 Views: 1,484 Re: if file exists Hey Kevin,
Just to clarify, are you saying that the images are not found when executing the file_exists command?? If so, have you tried putting a relative file path in, instead of the absolute... |
Forum: PHP May 6th, 2008 |
| Replies: 2 Views: 503 Re: Help with Dynamic Variable Names Hi Marc,
I had a look at this last night. Sorry I didn't post a reply then. But here is what I was thinking you could do.
If you create a multi-dimensional array within which you store the results... |
Forum: PHP May 5th, 2008 |
| Replies: 9 Views: 295 |
Forum: PHP May 5th, 2008 |
| Replies: 9 Views: 295 Re: Login problem, need fresh set of eyes. Hi,
Whilst developing a new script, I always find it helpful to have PHP error messages turned on. The setting for this can be found in the php.ini file on your server/computer.
Also, it might be... |
Forum: PHP Apr 15th, 2008 |
| Replies: 3 Views: 242 Re: Sprintf question! Have you turned on php error reporting, and if so, what errors does that give you?
Also, do you select the database that uses the table, members?
You might also want to reformat your SQL query to... |
Forum: PHP Apr 15th, 2008 |
| Replies: 4 Views: 1,274 Re: code to import excel data into mysql using php Hi,
Have you considered saving the Excel data as a CSV file, then reading the content of the file into PHP using file_get_content. You should then be able to explode the data by the comma symbol or... |
Forum: PHP Apr 15th, 2008 |
| Replies: 3 Views: 242 |
Forum: PHP Apr 13th, 2008 |
| Replies: 3 Views: 199 Re: Need Your Input For a start, either your login script doesn't work, or the email and password above are incorrect...
R. |
Forum: PHP Apr 13th, 2008 |
| Replies: 1 Views: 171 Re: update vaules inside textboxes Hi Aran87,
I would use an HTML template, with placeholders in the code. E.g.
<form method="post" action="foobar.php">
<input class="text_field" name="surname" type="text" value="{SURNAME}" />
<input... |