User Profile

Collapse

Profile Sidebar

Collapse
nitinpatel1117
nitinpatel1117
Last Activity: Aug 20 '08, 09:27 PM
Joined: Jun 5 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • nitinpatel1117
    replied to PHP upload
    in PHP
    can we see the HTML code

    Are you submitting using the correct enctype or limiting the upload file size, in html.


    If you don't supply your HTML code, we can only quess.

    It may also be a PHP configuration but we need to eliminated the HTML bit first.
    See more | Go to post

    Leave a comment:


  • nitinpatel1117
    replied to CSS won't work?
    if you want '#Main' to apply to your iframe then you need to give your Iframe

    [HTML]id="Main"[/HTML]


    also i think you may have to put the

    [HTML]p { font-family: "Times New Roman" color: white; }
    h1 { font-family: "Times New Roman" color: yellow; }[/HTML]

    inside your 'Main.html' page and not on this page. (not entirley sure on this though)
    See more | Go to post

    Leave a comment:


  • nitinpatel1117
    replied to line-height on input tag
    Also check the font-size of the input box.
    i.e. the size of the font inside of the input box when you type text into that input box. because the input box may be being forced to grow to accomodate the font inside of it.
    See more | Go to post

    Leave a comment:


  • nitinpatel1117
    replied to Hiding a new window
    You can have music playing in the background and then use javascript to change the source file, when someone clicks on a link on your page

    The HTML code would be something like the below. I haven't checked if the below code works, but you get the idea. Google it for something like 'website background music' and you'll probably get better answers.

    [HTML]<embed src="yourmusicf ile.mid" autostart="true "...
    See more | Go to post

    Leave a comment:


  • Thanks Dave, that was really helpful.

    I Googled 'Oracle synonyms' and found the relevant info that i needed.
    I have created synonyms for the users and it all works fine now, thanks.
    See more | Go to post

    Leave a comment:


  • how to execute query without having to declare schema all the time

    Hi,

    I've got a slight issue which i'm trying to resolve and was wondering if anyone would help.

    Basically, I was building a web application, and while it was being built I was connecting to Oracle as a User with Full admin rights.

    Now the system is built and ready to be put live, so therefore, I decided to create a new user that can only do insert, select and update queries e.g. they can't run queries...
    See more | Go to post

  • nitinpatel1117
    replied to questions about using include() in php
    in PHP
    I Think what you are after is something like this.

    Basically you need to output a <title></title> based on the query string.

    therefore in your footer you probably have a HTML line like

    [HTML]<title>........ ......</title>[/HTML]

    you need to replace this with the following php code
    [PHP]<?php

    $current_page=" ";
    if (isset($_GET['page'])...
    See more | Go to post

    Leave a comment:


  • nitinpatel1117
    replied to questions about using include() in php
    in PHP
    the way that you have describe the structure of the website. i.e. the query strings.. The flash file will always reload itself.
    See more | Go to post

    Leave a comment:


  • nitinpatel1117
    replied to mail function
    in PHP
    the mail function can only send emails if you have everything else on your server setup properly: like running SMTP as a service and having your mail server setup. properly.

    Also, you email address is not: me@example.com because you do not own example.com domain so you can't send from that address.
    See more | Go to post

    Leave a comment:


  • nitinpatel1117
    replied to How Do I Remove White Space?
    You need to delete the white space and make it transparent.

    i.e. use the eraser tool, and delete the white space.

    I'm not sure it this can be done in MS paint, so you might have to use photoshop or another image editing program that can handle transparency

    once you have deleted the white space, save the image as a transparent gif, and then use this new image to convert into an icon.
    See more | Go to post

    Leave a comment:


  • nitinpatel1117
    replied to CSS center page alignment
    Also you need a valid doctype in order for the margin auto to work in across all browsers.
    See more | Go to post

    Leave a comment:


  • nitinpatel1117
    replied to Getting country from IP address
    in PHP
    The third part of an IP addresses doesn't give you the country of the user.

    You have to use the whole IP address, i.e. all four numbers.
    against a database of IP ranges that are allocated to certain Internet services providers (ISP). ISPs in them selves are only allocated a set of IP ranges in a country or region. Or something along those lines.

    see http://www.iana.org/numbers/
    See more | Go to post

    Leave a comment:


  • nitinpatel1117
    started a topic PHP constructors
    in PHP

    PHP constructors

    Hi

    i'm new to Object Oriented Programming in PHP5, but have done this before in Java and C++.

    I not sure if this is possible in PHP5 but what i'm trying to do is create two constructors in my class. One a default constructor and another a parameterised constuctor. (Firstly, is it possible to have 2 constructors in a class)

    I want the parameterised constructor to call the default constructor, but i can't...
    See more | Go to post

  • nitinpatel1117
    replied to PHP regular expression
    in PHP
    ok i figured it out, it is:

    [PHP]$number = eregi_replace("[^0-9[:space:]]", "", $number);[/PHP]

    Don't quite know why i have to use [:space:] and not \s
    See more | Go to post

    Leave a comment:


  • nitinpatel1117
    started a topic PHP regular expression
    in PHP

    PHP regular expression

    Hi, I'm trying to do a regular expression, which I am pretty new to.

    What I am trying to do is remove all characters from a string that is not a number or a space;

    so for example the text: adsf69a4 65asfd
    should be outputed as: 694 65

    I have tried different combinations of this regular expression but can't get it to work properly.

    This is what i have so tried and various combinations:...
    See more | Go to post

  • nitinpatel1117
    replied to <noscript> not working
    in which case, rather than use the noscript tag.

    put the message in a div, and make the div always visable.

    If you have a generic master footer template for your webpages.
    You can then use javascript to hide this div. If the user has no javascript then the javascript code will not execute and therefore, will not hide the div containing your message.
    See more | Go to post

    Leave a comment:


  • nitinpatel1117
    started a topic get div padding

    get div padding

    Hi

    I have a HTML div element that has CSS padding applied to it.

    I am trying to retrieve the top and bottom padding values that are on this div.

    I have tried the following JavaScript code to try to get the top padding, but it does not seem to work. (Also this code does not produce any errors.)


    Code:
    var content_pTop = document.getElementById('my_div').style.paddingTop;
    alert (
    ...
    See more | Go to post

  • nitinpatel1117
    replied to query speed
    I checked my table type, it is InnoDB.

    If I were to change this to MyISAM, would this have any adverse effects on my table, and in particluar the data stored in the table?
    See more | Go to post

    Leave a comment:


  • nitinpatel1117
    replied to query speed
    Hi code green,

    thanks for that,

    i have two more questions though.

    firstly
    I've read that having indexes in the where part of the sql query will increase speed further. i will mainly be doing selects than inserts, so this seems logical. However there is one thing that i don't quite get. Using my above example can i use 'user' field or 'list_id' field as an index, these fields are not unique, so...
    See more | Go to post

    Leave a comment:


  • nitinpatel1117
    started a topic query speed

    query speed

    Hi

    I have a mysql query which seems to execute slowly.
    I was wondering if there was a way to speed it up a bit.

    the query is;
    Code:
    select count(*) as emailCount from mailing_list where user like 'joel@bloggs.com' and list_id = '47'
    this table has a primary key called 'email_id'
    so I was wondering if

    Code:
    select count(email_id) as emailCount from mailing_list where user like 'joel@bloggs.com'
    ...
    See more | Go to post
No activity results to display
Show More
Working...