Jump to content

aspnetguy

Members
  • Posts

    6,787
  • Joined

  • Last visited

Everything posted by aspnetguy

  1. PLEASE....TOP 4 is for SQL Server, LIMIT 4 is for MySql...you cannot use both!
  2. aspnetguy

    SQL On A Web Page

    You will need a server side language like ASP.Net or PHP and a database.you can you the querystring to determine the productpage.aspx?productId=334 or whatever.Your server side code will read the querystringRequest.QueryString["productId"].Then you need to query the database looking for product 334.
  3. SQL*Plus is a command line SQL and PL/SQL language interface and reporting tool that ships with the Oracle Database Client and Server. It is not an extention of SQL.Also LIMIT is for MySql, you need to use WHERE ROWNUM <= number in oracle.Anothere different is the CHARINDEX() function used in SQL Server, Oracel used INSTR() instead.
  4. providing you are using a MySql data base minus the (TOP 4).The Top # is only for SQL Server and in oracle you have to use something like this WHERE ROWNUM <= 4
  5. JavaScript <script>function countRows(tblId){ var tbl = document.getElementById(tblId); var tblRows = tbl.getElementsByTagName("tr"); alert(tblRows);}</script> HTML <table id="table" onload="countRows(this.id)"><tr><td>1</td></tr><tr><td>2</td></tr><tr><td>3</td></tr><tr><td>4</td></tr></table> This should do the trick
  6. there are no body tags when using frameset
  7. I don't think the marquee idea will work well with images but you can find free javascripts that do this very nicely.
  8. At least he is trying to tell them it will not work unless they have IE...I hate going to sites that don't "exclude" me and I fill out forms just to find it doesn't work and I wasted 10 minutes.And besides you don't know the purpose of hte site...may be it is a private intrnet and the clients don't care cuz they all use IE anyways.
  9. aspnetguy

    Background Reapeats

    not sure what you are asking, but as IKari pointed out, those are your only options.It will always repeat to the left(y) or down(x).If you need it to repeat right you may have to adjust your image and adjust your layout.Without a page to look at it is hard to imagine what you are trying to do.
  10. aspnetguy

    image centering

    Well if it is a header and just 'floats' on top of the page in the center then use this. <div style="width:100%;text-align:center"><img src="yourimage" alt="" /></div> make sure this code is not placed in another tags/containers or it will not center properly.
  11. There is nothing wrong with frames (well, except for bookmark and history issues) except they can look pretty ugly with lots of scrollbars happening.If they are used properly they can be very subtle.I don't use frames, EVER! But if you are using just HTML it is about the only way to maintain serval menus without having to put one on everypage which makes for maintenance nightmares if you have a lot of pages. (ie. make chnage to menu, you have to update menu on every page)Anyways if you can use a scripting language (even if for no other reason except SSI [server side includes]) you could do away with frames and have an easily maintained site.
  12. If you are using a free host (and they are nice enough to provide a free message board) then chances ar you cannot install a different one.I have tried to install phpbb on many free hosts with no luck. Usually the host will not give you enough control (or datbase functionality) to operate the message board.try http://www.invisionfree.com they have great free boards which are really easy to modify and they also have free skins (http://forums.ifskinzone.net/) which are simply to add.
  13. I would recommend rewriting the code to be compatible with all browsers, unless you it is for something like an intranet or something that has a controled enviroment where all target users have the requirments.
  14. Yeah, pretty much what I figured.Thanks
  15. Actually you will not lose bandwidth and the server will not slow down. The only time bandwidth and CPU power is used is when a page is requested so if old code from old posts are on the server and not being accessed, nothing will happen, except take up harddrive space.
  16. Sorry if this is not allowed, I know some forums are very strict about these things.Does anyone know alot about digital cameras?Here is my problem:I was given a digital camera because of known defect (the person was given another camera as a replacement and was not required to return the original).The camera seems to have trouble with batteries. The batteries can be fully charged and within minutes the camera will say they are dead and shut off. A few minutes later if I turn it back on It might say half full and last an hour.It seems to random with no specific pattern.Has anyone incountered this problem before???Any ideas on what it might be or how to fix it, if it can be?Thanks
  17. At the top of every page you could put this <script>if(!(document.all)){ window.location = "errorMessagePage.html";}</script> IE is the only browser that will process document.all since it is a MS DOM method and is not web standards compliant (neither is IE).Create a custom error page to explain why a user cannot browse the site without IE and replace errorMessagePage with the name of your custom page.Hope this helps
  18. aspnetguy

    Jonas

    taklya, You should have played that out longer...would have made for a good laugh.Just another example of why we need web standards and compliant browsers.
  19. please post your code you use to connect to the db, retrieve data, and bind to dataGrid.It is hard for me to guess where you went wrong if I don't know what you have done.Thanks
  20. Sure, I am excited about this opportunity.
  21. you cant program anything with html or css. HTML is a layout language and CSS is for formatting.If you are looking to drag and rop anything or handle events like mouse clicks then you will need to use javascript.And if you need to store information from these events you will need a databaes and a server side language like ASP.Net or PHP.
  22. I am afraid the reason these hacks are around is because of the horrible job IE does at rendering HTML.If MS would just accept Web Standards we would all have an easier life!
  23. There arent any "Web Standards" for scripting languages. They have their own compilers and their own syntax and rules. In the end it only matters if they produce web standard HTML for the browser.Web Standards are for client languages, Server side languages never go to the browser but send the processed result to the browser.They may not be used as much as the languages on this site but they both still have a fairly large following.
×
×
  • Create New...