Jump to content


  • Posts

  • Joined

  • Last visited


Posts posted by john010117

  1. I believe this is my first time dealing with mysql_result(), and it's giving me an error.


    The part of the code:

    $b_query = "SELECT
    				user_select = '$session_uid'
    					user = '$u'
    $b_result = mysql_query($b_query) OR DIE (mysql_error());
    $b_sql_result = mysql_result($b_result, 0);


    Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 15


    Even though I was executing the query, I needed the result where user = '$session_uid' AND user_select = '$u'.


    I searched google, but a lot of other sites where showing the error, and there weren't any helpful information on how to actually fix it. BTW, I have 3 rows in that table. How would I solve this problem?

  2. I looked at it with FF2, and I must say, the layout's very smooth and clean. The color scheme is great. But the major downside is iframes. Search engines hate 'em. But other than that, the "contact us" link at the top points to index.php (which shouldn't), and some of the links to the right all point to index.php.

  3. First of all, I don't know what the thing is called that blinks inside a textarea. So if you could tell me what the name of that is, that'll be great. I'll called it a cursor for now.


    Here's the problem. Let's say I had a simple textarea with some values already filled in.




    <textarea name="input1" rows="15" cols="75">
    <!-- Cursor should go here -->
    ----- Original Message -----
    From: blah
    To: Blah
    Date: Blah
    Blah Some Random Text


    So, whenever a page loads, I need the "cursor" to be automatically at the beginning of the textarea (where "<!-- Cursor should go here -->" is). How would I go about doing that either in just HTML or Javascript?

  4. I made this function a while ago.


    function date_time_sep($date_time) {
    global $res_date,$res_time;
    $date = substr($date_time, -19, 10);
    $time = substr($date_time, -8, 5);
    // Date
    $year = substr($date, 0,4);
    $month = substr($date, 5, 2);
    $day = substr($date, 8, 2);
    $res_date = date("D M jS, Y", mktime(0, 0, 0, $month, $day, $year));
    // Time
    $time_format = $time . ' ' . strtolower(strftime("%p"));
    $res_time = $time_format;


    Use $res_date to display the date and $res_time to display the time.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.