505 Posted Topics
Re: 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% … | |
Re: 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] | |
Re: 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; … | |
Re: 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; } | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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... … | |
Re: Why not make the first group by a subquery of the second?? | |
Re: 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 … | |
Re: 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. … | |
Re: 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, … | |
Re: 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. | |
![]() | Re: 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 … |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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] | |
Re: 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` … | |
Re: Add a float: left; to the css for .spacer and .bottom. That fixes it on my browser. R. | |
Re: Where do you set the variable $tardy in your code? | |
Re: [QUOTE]More information about this error may be available in the server error log. [/QUOTE] Can you post the log details? R | |
Re: 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. | |
Re: 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 … | |
Re: Perhaps you can repost your question in English? Rather than abbreviating every other word... | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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; … | |
Re: 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 … | |
Re: Put those exact words into Google and I'm sure it will give you a lot of hits. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … ![]() | |
![]() | Re: 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. ![]() |
Re: 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. | |
Re: 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> … |
The End.