User Profile

Collapse

Profile Sidebar

Collapse
cssExp
cssExp
Last Activity: Dec 10 '08, 09:50 AM
Joined: Jun 18 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • cssExp
    started a topic getting field value into array

    getting field value into array

    hi

    consider the following html
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    ...
    See more | Go to post

  • Alright I will explain and illustrate things clearly as possible. I have two tables, `accounts` and `accounts_log`.

    `accounts` has fields `accid` and `type`.
    `accounts_logs` has fields `accid`, `ip` and `timestamp`.

    1) Prior to selection i get user's ip address through php into $ip_address variable.

    2) I want to get 3 available `accid` from `accounts` where feild `type`='normal' .

    ...
    See more | Go to post

    Leave a comment:


  • mysql random field (condition, multiple table, compare)

    Hi,

    Assume i have two tables. "accounts" and "accounts_l ogs"

    "accounts" (accid, type)
    "accounts_l og" (accid, ip, timestamp)

    Here i want to choose a radom 3 accids from "accounts" if available, but each of them should be compared with "accounts_l og".

    Lests say a one of the accid chose is A1, then take users IP and current...
    See more | Go to post

  • cssExp
    replied to Watermark using ImageMagick
    in PHP
    problem solved. sorry for the trouble.
    See more | Go to post

    Leave a comment:


  • cssExp
    started a topic Watermark using ImageMagick
    in PHP

    Watermark using ImageMagick

    Is there a any way to watermark with another image (like a 24bit transparent png), and able to set opacity, preserve quality etc using imageMagick(not with magickWand).

    simply put how can i watermark a image with another with imageMagick i want to be able to set -gravity and also set opacity. Please help.
    See more | Go to post

  • oh sure!

    You see i had the value of time() stored as id on all entries, i used time() to generate it so that i will have unique id's but it came in handy afterall i just used the value of id and found month.

    example:
    [PHP]date("m", 1192669707);[/PHP]

    The thought occured to me when Atli mentioned TimeStamps. :)
    See more | Go to post

    Leave a comment:


  • figured out a way around it, problem solved. Thanks for your help :)
    See more | Go to post

    Leave a comment:


  • cssExp
    started a topic find month, have hour, minute, day, week and year
    in PHP

    find month, have hour, minute, day, week and year

    the problem is, i have a dynamic database driven site, each data is entered with year, week etc.. 2 months ago assuming I'll create sort option in future i put everything, i.e year, week, hour, minute etc.. but forgot month. Now i'm adding sort option but i need month but not available

    during database entry i use the following.

    [PHP]
    $year = date('Y');
    $week = date('W');
    $day = date('d');
    ...
    See more | Go to post

  • cssExp
    replied to Form submission same field, multiple values
    in PHP
    thanks it works great :)
    See more | Go to post

    Leave a comment:


  • cssExp
    started a topic Form submission same field, multiple values
    in PHP

    Form submission same field, multiple values

    Here in a form i have the following. note: the following is a result of dynamic html element creation.

    [CODE="html"]<input type="hidden" name="category" value="science" />
    <input type="hidden" name="permissio n" value="normal" />

    <input type="hidden" name="category" value="clubs" />
    <input...
    See more | Go to post

  • I have very well done the parent and child part, only part was that i needed to get both filepath and filename, but i found out how to do it. I took the file path and from it i extracted the the file name using lastIndexOf("\\ ") and substring combination. Thanks for all your help.
    See more | Go to post

    Leave a comment:


  • Get file path and file name of input type="file"

    alright suppose i have the following.

    [code="HTML4Stri ct"]<input type="file" name="upload" />
    <input type="text" name="discripti on" />
    <input type="image" onclick="addFil e();" src="images/addfile.jpg" name="add" alt="Add file" />[/code]

    Here when user clicks add button, it gets added dynamically...
    See more | Go to post

  • cssExp
    replied to Change Image on click.
    for some reason getElementById didn't work, but i did use its name and played with it till i got the result i wanted.

    Thanks :)
    See more | Go to post

    Leave a comment:


  • cssExp
    replied to Change Image on click.
    sorry forgot. I was in a hurry when i typed that. :) If you look at my other posts, you'll see i always use [code]
    See more | Go to post

    Leave a comment:


  • cssExp
    started a topic Change Image on click.

    Change Image on click.

    Let's see i have two images.
    [code=php]
    $image1 = mysql_query('SE LECT `image` FROM `images` WHERE `image`=`image1 .jpg`");
    $image2 = mysql_query('SE LECT `image` FROM `images` WHERE `image`=`image2 .jpg`");[/code]

    here i have, let's say $image1 showing with a image button, "image1button.j pg". When clicked either the $image1or the button, i want the image to change to $image2 and button to change...
    See more | Go to post
    Last edited by pbmods; Sep 8 '07, 06:47 AM. Reason: Added CODE tags.

  • cssExp
    replied to Change Caption or Title of alert box
    Thanks, it seems good enough :)
    See more | Go to post

    Leave a comment:


  • cssExp
    replied to Change Caption or Title of alert box
    I can't seem to find a simple alternative, could you suggest some?
    See more | Go to post

    Leave a comment:


  • cssExp
    started a topic Change Caption or Title of alert box

    Change Caption or Title of alert box

    Is it possible to change/specify caption/title of the javascript alert box?

    alert('This Field is required'); to have the caption as Info instead of web page url.
    See more | Go to post

  • cssExp
    started a topic .htaccess, url, mod rewrire problem

    .htaccess, url, mod rewrire problem

    hello i seem to be having some problem. Consider the following.

    Code:
    <Files index>
    ForceType application/x-httpd-php
    </Files>
    RewriteEngine On
    
    RewriteRule ^([^/\.]+)/?$ index.php?ref=$1 [L]
    RewriteRule ^([^/\.]+)/([^/\.]+)?$ index.php?ref=$1&folder=$2[L]
    RewriteRule ^([^/\.]+)/page/([^/\.]+)?$ index.php?ref=$1&page=$2[L]
    here when going...
    See more | Go to post

  • cssExp
    replied to resize image on server
    in PHP
    NOTE: this issue is solved now, i figured out a way by myself, thanks for all your help guys :)
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...