User Profile

Collapse

Profile Sidebar

Collapse
theRamones
theRamones
Last Activity: Jan 4 '07, 03:34 PM
Joined: Nov 24 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • theRamones
    replied to Record inserting twice
    in PHP
    really, what is the result of mysql_affected_ rows() when you execute that query?
    See more | Go to post

    Leave a comment:


  • theRamones
    replied to "Method POST not allowed" error
    in PHP
    on which .php file that returns post error ("Method POST not allowed")
    See more | Go to post

    Leave a comment:


  • theRamones
    replied to php databases
    in PHP
    PHP is the most (script) language that can talk to databases, such as:

    Mysql,
    Oracle,
    MSql,
    Microsoft SQL Server,
    dBase,
    db++,
    FrontBase,
    PostgreSQL,
    ODBC (Adabas D, IBM DB2, iODBC, Solid, and Sybase SQL Anywhere),
    Sybase-CT,
    Sybase-DB,
    SQLite,
    MaxDB,
    Ovrimos SQL Server,
    SESAM/SQL-Server,
    Empress,
    Solid,
    Ingres...
    See more | Go to post

    Leave a comment:


  • theRamones
    replied to Passing by refrence in FOREACH
    in PHP
    [PHP]
    foreach ($array as &$value)
    {if ($value <= 0)
    {$value+=12;}}
    [/PHP]

    foreach reference work on/for PHP5, as long as i know.
    See more | Go to post

    Leave a comment:


  • theRamones
    replied to Pagination
    in PHP
    add 'limit' statement on query
    [code=php] $query = "SELECT p.patient_id, p.last_name, p.first_name, p.id,
    c.contact_numbe r
    FROM pat p, contact c
    WHERE p.id = c.id
    AND $field LIKE '$let%'
    AND p.pat_status = '$stat_type'
    AND p.org_code = '$org_code'
    AND p.org_code = c.org_code
    AND c.$contact_fiel d...
    See more | Go to post

    Leave a comment:


  • theRamones
    replied to sending via http_post_vars
    in PHP
    [html]
    <html><head><ti tle>Questionnai re</title></head>

    <body>

    <form name="myform" action="http://localhost//my1.php" method="post">

    <table border='0'><tr> <td valign='top'><i nput

    type='radio' name='quiz' value='1' />a</td><td>
    <br></td></tr><tr><td...
    See more | Go to post

    Leave a comment:


  • theRamones
    replied to Seacrch text using php
    in PHP
    // list of words you want to find
    $list = array("Style", "href", "div"); // add it as u want

    $input = "aStylelkhRefs" ;
    for($i=0; $i< count($list); $i++)
    {
    if(eregi($list[$i], $input)) print "find $list[$i] in the $i list<br>";
    }
    See more | Go to post

    Leave a comment:


  • theRamones
    replied to Sending Check Box Value to Database
    in PHP
    [php]
    $first_check = $_POST['first_check'] ? $_POST['first_check'] : 1;
    $second_check = $_POST['second_check'] ? $_POST['second_check'] : 1;
    $third_check = $_POST['third_check'] ? $_POST['third_check'] : 1;

    //total
    $value = $first_check * $second_check * $third_check;
    [/php]
    See more | Go to post

    Leave a comment:


  • theRamones
    replied to Indexed file dynamics
    in PHP
    your tables structures is not normal, but i'm not judge you that you are wrong, but actually this give you a problem don't you.

    you need to "normalize" your table structure (i'm not good enough, but i suggest you to learn this from books, net or friends maybe).
    ---------
    table state : state_id, state_name (primary key state_id)
    table city : city_id, state_id, city_name (primary key city_id, state_id)...
    See more | Go to post

    Leave a comment:


  • cool man..,
    the simple way is what you prefer and understand to use.
    it depends on you, whether txt or database.

    I cann't show you how to do this, because this is large problem on simple question, but i'm sure you're really had experience on php to accomplish this.

    So my suggestion is,
    If what you need is just to store un structured data, using txt is a good simple once.
    But if you need to...
    See more | Go to post

    Leave a comment:


  • theRamones
    replied to Header Problem (Its a very urgent).
    in PHP
    what is the problem :
    1. is your code parse error, or
    2. the redirect page that you wanted doesn't work

    things that need to remember where u want use header, especcialy for redirection :

    1. make sure your header must on the TOP OF THE LINE of your code.
    2. make sure the url location must be true (not page not found). i suggest u use ABSOLUTE URL, header("Locatio n: http://www.aaa.ccc/error.php")...
    See more | Go to post

    Leave a comment:


  • Are there any user has more than one id (or unique datas) to log in? i think no
    Except you, the administrator.
    See more | Go to post

    Leave a comment:


  • may this help
    [php]
    $row = mysql_query("se lect count(*) from product");
    $count = $row[0];
    // to get last inserted row :
    $count -= 1; //last inserted row index
    $lastRow = mysql_query("se lect * from product limit $count, 1");
    [/php]
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...