Jump to content

BeeDev

Member
  • Posts

    328
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by BeeDev

  1. Look at your tags carefully: There's no such thing called " " It should be: Airports Banking Good luck and don't jump!
  2. You can connect a string with a variable using a dot or just include the variable inside the string as Krillz points out above - php works either way. ("SELECT * FROM users WHERE username ='" . $username . "' AND user_password='" . $password . "' LIMIT 1");
  3. Please read up on CSS Box Model and CSS Positioning: http://ww w.brainjar.com/css/positioning/default.asp This article has 5 pages and explains how Block and Inline elements flow within an HTML document. For your issue's solution: Inside the content, on one of the tags there's a nowrap="nowrap" attribute set and it's stretching your whole table outside the 500px limit that you set. The corresponding TD tag is where: "David Hands, Director, Asset Services Product Management at DTCC Solutions" is. You need to completely remove this nowrap attribute. Now you need to set a fixed width for #mainContent div and float that div right. Which will stack sidebar1 div and mainContent div side by side. You can set these both to float left as well and they will stack to the left wall. But sidebar1 div must be put AFTER mainContent div in the HTML structure to achieve this. Finally don't forget to add: "#container{ overflow:auto; }" to your CSS, because your container div will not stretch unless this has been set because both divs inside it are floated. Now you can put text inside sidebar1 div
  4. Firefox 3.6 is out by the way Maybe try install this one and try to upgrade/install your firebug http://www.mozilla-europe.org/en/firefox/
  5. This is just a guess but: for($i=0;$i<=$new_rows;$i++){ shouldn't it be for($i=0;$i<$new_rows;$i++){ (notice that it's only less than and NOT less than or equals Because arrays based at 0 and mysql_num_rows will return a number based at 1 it's trying to loop an extra 1 time and mysql_fetch_array will return false on the 2nd go.
  6. Most likely an unclosed curly bracket or some error with one of the if/the/else statements. Your code comes up weird with \par and \tab and extra back slashes from the text file. Can you just post your whole [ code ] BBcode tag like your php code here on this forum?
  7. have a small php file that has your URL stored in a string variable: <?php $base = 'http://fazlionline.com/v1'; ?> and include this php on top of all your main pages (not in include files), main pages = index.php, webdesign.php etc: <?php require_once('myUrlIncludeFile.php') ?> put this code inside the tag on the same main pages: Now even when your viewing the page http://fazlionline.com/v1/webdesign/web_design.php'>http://fazlionline.com/v1/webdesign/web_design.php all your links and images will be relative to http://fazlionline.com/v1/ (Only requirement is your images and links need to start with a forward slash as Ben mention above.) Now when you change your root folder from v1 to whatever folder just change $base and it will work properly. More info about the HTML tag: http://www.w3schools.com/TAGS/tag_base.asp
  8. I also found this which is a tutorial on how to create one for yourself. You can easily cut out the Pause function if you follow the tutorial I think If not post here and I can assist you with it. But yea as Newseed says, most of these jquery plugins have some sort of "pause: false" or "delay: 0" or some setting like that.
  9. Not really, you need to be inside some context to use index() because you need "this" to index something. What are you trying to do? Maybe I know a different way to do it. Have you looked at .each() method? You can do counters & stuff with it easily: $("mainMenu a").each(function(counter){ $(this).bind("click",function(){ //you can use variable 'counter' here to program stuff like: $("#content div").eq(counter).show(); //so when 4th link in main menu is clicked - the above script will show the 4th div inside element with id #content }); });
  10. It might work your way but I usually do it in the following syntax : $(document).ready(function() { // put all your jQuery goodness in here. $('#mainMenu a').click(function(){ var $target = $(this).attr('id'); var $number = $("a").index(this); $number++; $("#response").text("Menu choice '" + $target + "' was chosen, OK! " ); $('#response').append(' That is item "' + $number + '".'); }); });
  11. Only other thing is that the connection include is pointing to your desktop file. This connection should point to a file on your php server. <?php require_once('file:///Leopard/Users/pete/Documents/Web%20Sites/mobiledjnetwork.co.uk/Connections/MDJN.php'); ?> This should have no "file:///" in it and it should be in the "www" folder of your MAMP folder.
  12. tag. This may be what's happening. Can you see what happens if you put the following line in between your and
  13. Never explored how Dreamweaver creates database codes & stuff, so I think we'll need to inspect the code to see exactly what's happening.
  14. Was on this site couple minutes ago now it's being checked for malicious content :mad: Looked like a Wordpress site to me.
  15. Simplest fix is to remove the margin from the star images. Let me know if that works, I tested on Firefox 3.5 and just removed the "margin-top: -14px" from the table and remove the margin: 1em from the stars image using Firebug which worked.
  16. Aye, Meta tags aren't as important now as they were few years ago. Google now uses lots of different aspects to rank your pages rather than just simply meta description and title tags (Although they play an important role and thus should not be neglected!) It's good to have well structured content with H1 tag (Only one per page, other headings can use H2 and H3 etc...) and also having inbound links from well ranked pages will boost your search engine ranking. The more quality inbound links the better ranking. However Duplicated Meta tags (Title and Description) across your pages, or duplicated content across different domains may and will compromise your rank.
  17. As far as I'm concerned, Google doesn't use Keywords meta tag at all. It completely ignores it. However I think other search engines such as Yahoo and MSN etc use Keywords meta tag (Not 100% Sure could som1 else confirm this?) Basically what you want to do is first and utmost have good page titles and description meta. Some CMS systems generate the description automatically from the page content, if your CMS does that then I think it's quite "adequate" in terms of SEO management.
  18. BeeDev

    Image Fade

    If a So you CANNOT do the following: $(function(){ //jQuery Script; }); This is WRONG it's never gonna work. You HAVE to do it like the following (You can see above that I corrected your mistake but you still didn't correct your code) :
  19. We charge minimum 15minutes of edits, even for 5minute edits, but we let our clients know before that there's a minimum charge of 15minutes, then advise them to group up their small edits and send in chunks. More efficient for both sides like this.
  20. BeeDev

    Large XML Files

    Thank you, That's what I decided in the end, import it straight to Access (Access handles XML so gracefully on imports) and upsize it to SQL server.
  21. Easiest fix was to add following statement to ur CSS (Tested on Firefox ONLY!): .big_image { float:left } Basically, the div.big_image needs to be floated or the script thinks it's underneath the thumbnails and keeps expanding ... i think
  22. To answer your Question1: I didn't hear about many fields being "bad" practice. Maybe it is, but I didn't know about it. Basically it all comes down to "Data Normalisation" and "Entity Declaration" etc etc. It's not so much as about "X number of fields should be in a table", it's more about "Is my data structured well?" Basically, when you have an entity called "User" - the entity will have properties such as "Age", "DOB", "Name", "Username", "Password" etc etc ... Now think about the properties your member has, and see if there's any repetition, like for example "Delivery Address 1", "Delivery Address 2", "Delivery Address 3", "Delivery Address 4" etc etc just as an example. If you have such data, then it's best practice to create a new entity called "User Addresses" which will be related to "userinformation" table with MemberID or whatever your key is. Analyze your data, and see if there's any *need* to create a new entity. If not then just leave it as it is Sorry for my bad explanation if you didnt' understand. Good luck.
  23. type=submit buttons: When this type of button is wrapped by a tag, the button submits the form automatically to the URL defined on the tag, and using the method defined on the tag (post/get) when clicked. type=button buttons: These buttons dont actually do ANYTHING without an event & javascript function attached to them, such as onclick, onfocus, onblur etc etc. (But using jQuery you dont really need to put an event i.e. "onclick" on the button code, you can just attach the events from jQuery code using the button ID or CSS Class selector, but you already know that right? )
  24. BeeDev

    Image Fade

    I just tested it and it works fine for me. Are you getting any error messages?
×
×
  • Create New...