505 Posted Topics

Member Avatar for Modo

Hey, I notice that you apply 2px borders to the divs. With the box model, borders are added to the width of the container. You therefore have 99% width across the three divs, + 12px for the borders (left and right). I'd suggest making the widths something lower, e.g. 32% …

Member Avatar for MidiMagic
0
121
Member Avatar for veledrom

You need to override the default styles applied by different browsers, as these differ from one browser to the next. This can be done using CSS. E.g. [CODE] h1 ( [INDENT]margin: 0; padding: 8px 10px; font-family: arial, sans-serif; font-size: 18px;[/INDENT] ) [/CODE]

Member Avatar for veledrom
0
84
Member Avatar for changeco

Hi Ted, You may find you get more responses if you post this in the PHP forum. With regard to passing user data, don't use the URL, as this would allow any user to log in as anyone. E.g. [CODE] // user 100's data link.php?uid=100; // user 101's data link.php?uid=101; …

Member Avatar for blocblue
0
93
Member Avatar for triltaison

You have one too many brackers in your CSS... Remove this, and it'll work fine. R. /* Avatar */ #avatar { float: left; margin: 8px 20px 0px 0px; border: 2px solid #787878; }

Member Avatar for triltaison
0
106
Member Avatar for architact

Hey, You have definitely got to get Firebug for Firefox. It's great for viewing HTML markup and CSS properties. The images at the bottom of the page you posted have: [CODE] position: fixed; bottom: xxx px; z-index: 5; [/CODE] Hope this helps. R.

Member Avatar for architact
0
72
Member Avatar for tnchitra

If I were you, I would run a cron job, once a week perhaps. An example function using PHP for backing up your DB can be found here: [URL="http://davidwalsh.name/backup-mysql-database-php"]http://davidwalsh.name/backup-mysql-database-php[/URL] This could be easily modified to remove backed up records. Furthermore, ensure you have indexes on your tables to help make …

Member Avatar for tnchitra
0
140
Member Avatar for MSK 7

Hey When declaring your form tags, add target="_blank" or target="new" Hence: [CODE] <form method="post" action="index.php" target="_blank"> <!-- your formy bits go here --> </form> [/CODE] Best, R.

Member Avatar for blocblue
0
79
Member Avatar for websurfer

Well you haven't escaped any data for one. So I thought I'd add a couple of hundred JS alerts everytime you refresh a page :) R.

Member Avatar for websurfer
0
109
Member Avatar for web_master

Try adding a position style to your background image: background: url('../images/search-bg.png') no-repeat 0 0; The 0 0 will fix the image position in the top left. You could also try adding: overflow: hidden; To the search text box. Let me know how you get on. R.

Member Avatar for ccube921
0
139
Member Avatar for rajeesh_rsn

That should be simple enough... If the hobbies field is a comma seperated list of hobbies, then you could use the following. The % are wildcards, hence in this case the hobby photograph would be found at any place in the string value (if it exists). [CODE] SELECT * FROM …

Member Avatar for mwasif
0
116
Member Avatar for isotope

Hey, You start your for loop with i = 0, rather than $i = 0. When you come to push $i onto the array, it therefore doesn't exist. [QUOTE]for(i=0; i<$n; i++){ push_array($array,$i); [/QUOTE] Also, try putting error_reporting on: [CODE]ini_set( 'error_reporting', E_ALL );[/CODE] Finally, just for simplicity sake in the future... …

Member Avatar for isotope
0
145
Member Avatar for TheBuzzer
Member Avatar for TheBuzzer
0
105
Member Avatar for Scoobler

Hey Jamie, Based on what you've said... You want to select the details of users who do not have "completed" in the action column for one or more tasks. Hence, your user with three tasks, they should still appear in the results, because they have nothing in the action column …

Member Avatar for Scoobler
0
107
Member Avatar for BHance

Hey, Personally, I think this question would be better in the PHP forum... but seeing as I'm here, I would approach it from the following direction. Read file into an array using the file() method in PHP. This will append each line from the file into a new array index. …

Member Avatar for Fest3er
0
142
Member Avatar for Harneet

Try turing PHP errors on, and then repost any errors you get. Also, you have an if/else statement... on the index.php page, no GET variables are passed, and nowhere in your index.php is the variable $category_depth set. Hence none of the conditions would be satisfied. And even if they were, …

Member Avatar for almostbob
0
106
Member Avatar for rajeesh_rsn

I'd suggest saving the excel file as a CSV, then write a quick PHP script to read the file and compose SQL queries. A quick google search should yield some results. I'm personally not aware of any means for going direct from Excel to MySQL. R.

Member Avatar for buddylee17
0
83
Member Avatar for Ajantis

Firstly, I'd say to make sure that it ISN'T a WYSIWYG editor like FrontPage or Dreamweaver. But an auto complete function for HTML tags, CSS properties and values, if you're going into scripting languages, then an auto complete on function names, and checking number of variables. Ability to shrink and …

Member Avatar for kanaku
0
97
Member Avatar for tuse

Well firstly you need to create the email in the same format as you would any other HTML document. I.e. having a head, and body section. In the head you should declare your stylesheets using absolute links, e.g. [url]http://www.example.com/css/mycss.css[/url] or include the css style inline. And with images, you'll need …

Member Avatar for tuse
0
93
Member Avatar for wwwmadeasy

What have you tried? Please post your existing code. And a small hint would be for you to use the value from the select box in a for loop... R.

Member Avatar for wwwmadeasy
0
164
Member Avatar for arnoldsmith

Its quite simple... go to [url]www.google.com/analytics[/url] create an account. copy analytics code provided add into your HTML page just before body tag as instructed. R.

Member Avatar for blocblue
0
25
Member Avatar for squarkman

In the email headers, you'd have: [CODE] From: dog@getdata.com Reply-to: members@getdata.com [/CODE] The reply to address is then automatically used then replying to an email. Best, R.

Member Avatar for blocblue
0
135
Member Avatar for Deathrains

Have you tried: [CODE] $result = mysql_query("SELECT id,title,description,data,author,mini_img,view FROM data WHERE data BETWEEN '$data_begin' AND '$data_end'", $db); [/CODE]

Member Avatar for dasatti
0
104
Member Avatar for cy163

I'm not sure if you've solved your problem yet... but please find below something I came up with... Note: I've assumed you have a document table, and a documentTag table. [CODE] SELECT * FROM `document` AS `t1` JOIN ( [INDENT]SELECT COUNT(*) AS `tagsMatched`, `DocId` FROM ( [INDENT]SELECT `docId` FROM `docTags` …

Member Avatar for blocblue
0
106
Member Avatar for sacarias40

Add a float: left; to the css for .spacer and .bottom. That fixes it on my browser. R.

Member Avatar for sacarias40
0
67
Member Avatar for mikeabe
Member Avatar for aloks

[QUOTE]More information about this error may be available in the server error log. [/QUOTE] Can you post the log details? R

Member Avatar for blocblue
0
85
Member Avatar for digidreams

Firsty a VARCHAR cannot exceed 255 characters. You'd need to use a TEXT field type instead. And when inserting HTML into a database I always escape it before inserting and before redisplaying it onscreeen to prevent XSS. So for a how to, just Google for XSS. R.

Member Avatar for indianrock9
0
69
Member Avatar for indianrock9

Hey, Why don't you have an employee table, a skills table and an employee_skill table. Hence: [CODE] Employee: Id | Name | Email | etc... Skills: Id | Skill 1 PHP 2 MySQL Employee_skill: Id | EmployeeId | SkillId [/CODE] Then when you list all the entries in the skills …

Member Avatar for indianrock9
0
1K
Member Avatar for an_an

Perhaps you can repost your question in English? Rather than abbreviating every other word...

Member Avatar for blocblue
0
89
Member Avatar for nishant52

You could always use apache's mod_rewrite, so forward all requests for [url]http://www.example.com/directory/[/url] to [url]http://www.example.com/directory/default.php[/url]. You'd need to add one for each directory though I think. And it may be worth adding a parameter on the URL such as ?form so that you can distinguish between form submissions and normal page …

Member Avatar for xarz
0
140
Member Avatar for parhs

Personally, I create a main template, and then divide repeating or interchangeable elements up into smaller templates. I then combine the templates using a template class I've written, substituting templates in for placeholders, etc, before outputting the complete page. I find it works really well. Essentially its following the MVC …

Member Avatar for parhs
0
149
Member Avatar for VernonDozier

Hi, This may be way off the mark, but have you tried adding a comma between $cc1 and $cc2?? Hence, [CODE] $headers = "From: " . $from . "\r\n" . "Cc: " . $cc1 . ", " . $cc2; [/CODE] That may be why the gmail address is not allowed …

Member Avatar for blocblue
0
193
Member Avatar for OmniX

I'm a bit confused as to what exactly your question is, but floats can be added to pretty much any element. And they're a lot cleaner than tables :) If you have a specific question, I'd be happy to try and help.

Member Avatar for jbennet
0
133
Member Avatar for smartness

Hey, You could try adding a select subquery to your update query, e.g. [CODE] UPDATE `news1_news` SET `reads` = '( [INDENT]SELECT `reads` FROM `news1_news` WHERE `newsid` = '68' [/INDENT]) + 1' WHERE `newsid` = '68' [/CODE] The subquery should yield the result of the current value, which can then be …

Member Avatar for blocblue
0
63
Member Avatar for o2mcgovem

There seems to be a lot of info in your post, and unfortunately your website is no longer accessible, so I would suggest you try this first and repost the outcome, or fix your site, and I will try it myself. The most common issue I've found with IE is …

Member Avatar for MidiMagic
0
117
Member Avatar for yasmena

Hi Yasmena, Why would you want to change the permissions of your image directory to 777? That would mean that anyone visiting your site, who goes to upload an image would be able to delete all images from that directory! Is that what you really want? When PHP processes an …

Member Avatar for blocblue
0
82
Member Avatar for TommyBs

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 include error messages, which 99% of the time would never be seen, etc. And …

Member Avatar for hiacclaimdir2
0
129
Member Avatar for reen.blom

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: center; + Header A div for the header banner Properties: float: left; height: 60px; width: 950px; margin: 0px; …

Member Avatar for reen.blom
0
144
Member Avatar for bigpig

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 page loads, check the stored information, when the current quote was first …

Member Avatar for blocblue
0
87
Member Avatar for shruti sepra
Member Avatar for shruti sepra
0
66
Member Avatar for mikki2

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 have found a CSS example of this on the following website: [URL="http://www.cssplay.co.uk/menu/list_gallery.html"]http://www.cssplay.co.uk/menu/list_gallery.html[/URL] This is …

Member Avatar for mikki2
0
108
Member Avatar for webguru07
Member Avatar for devi123

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 have 2 stylesheets. The first sets the margins, padding and borders for all html elements to …

Member Avatar for devi123
0
87
Member Avatar for kevin wood

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

Member Avatar for kevin wood
0
87
Member Avatar for Alv45525

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 difference is in the relative positioning of the hidden menu. A good example can be …

Member Avatar for Dannyo329
0
102
Member Avatar for Dani

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 webpage. Then the content is the only aspect that will change …

Member Avatar for blocblue
0
348
Member Avatar for kevin wood

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 path? Beyond that, I cannot see any issues with the code. I might be inclined to …

Member Avatar for amigura
0
213
Member Avatar for Borderline

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.

Member Avatar for Borderline
0
91
Member Avatar for antwan1986

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.

Member Avatar for antwan1986
0
114
Member Avatar for kanga62

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: [ICODE] <a class="enlarge_picture" href="#" title="Picture Name"> <img class="normal_picture" src="./the/path/to/your/image.png" alt="Image Name" height="60" width="140"><div class="hover_enlarge"><img class="large_picture" src="./the/path/to/your/bigger_image.png" alt="Image Name" height="120" width="280"></div> </a> …

Member Avatar for Dannyo329
0
304

The End.