User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 374,505 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,778 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 37 of 37
Search took 0.01 seconds.
Posts Made By: robothy
Forum: Site Layout and Usability May 26th, 2008
Replies: 6
Views: 975
Posted By robothy
Re: Help with remaking existing site into CSS-layout struggle

MidiMagic, thanks for the reply. I'll take on board what you have said in your post.
R.
Forum: PHP May 25th, 2008
Replies: 2
Views: 184
Posted By robothy
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
Posted By robothy
Re: Help with remaking existing site into CSS-layout struggle

MidiMagic, I think, well actually, I know each of the above comments are incorrect. I've used 0px for styles on all the websites I've built and likewise, I've used margin, padding and borders in a...
Forum: HTML and CSS May 19th, 2008
Replies: 2
Views: 350
Posted By robothy
Re: drop down horizontal menu using css

Put those exact words into Google and I'm sure it will give you a lot of hits.
Forum: PHP May 19th, 2008
Replies: 4
Views: 261
Posted By robothy
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
Posted By robothy
Re: table rows and columns

Have you considered using embedded for loops?
Forum: Site Layout and Usability May 18th, 2008
Replies: 6
Views: 975
Posted By robothy
Re: Help with remaking existing site into CSS-layout struggle

Hi,

I'd have the following layout:
+ Wrapper
A div to centre the website on the page.
Properties: height: 100%; width: 950px; margin: 0px auto 0px auto; padding: 0px; border: none; text-align:...
Forum: Site Layout and Usability May 16th, 2008
Replies: 9
Views: 906
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
Re: Hopefully a straightforward PHP/MySQL question

Hey,

If you run the SQL select query to find a vid record, if it returns no rows, which you can find using mysql_num_rows(), display the error message.

R.
Forum: PHP May 7th, 2008
Replies: 4
Views: 234
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
Re: Login problem, need fresh set of eyes.

SHA encryption requires a varchar(40) field in your database, if you hadn't found that out already.

Well done.
R
Forum: PHP May 6th, 2008
Replies: 9
Views: 295
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
Re: Login problem, need fresh set of eyes.

Another quick thing... for debugging purposes, try removing the @ in front of the mysql_query function, as this surpresses error messages.

R.
Forum: PHP May 5th, 2008
Replies: 9
Views: 295
Posted By robothy
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
Posted By robothy
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
Posted By robothy
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
Posted By robothy
Re: Sprintf question!

Try removing the ; after the LIMIT 1...

R
Forum: PHP Apr 13th, 2008
Replies: 3
Views: 199
Posted By robothy
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
Posted By robothy
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...
Showing results 1 to 37 of 37

 
All times are GMT -4. The time now is 2:16 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC