User Profile

Collapse

Profile Sidebar

Collapse
LongWei
LongWei
Last Activity: May 3 '10, 09:54 AM
Joined: Dec 31 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • LongWei
    started a topic Select Menu and if else statments
    in PHP

    Select Menu and if else statments

    Hi all,


    i got small select menu with codes that goes

    Code:
     <select name="size" id="size" size ="2">
                  <option value="a">Less than 1 Megabyte</option>
                  <option value="b">&gt;1 Mb &lt; 10Mb</option>
                  <option value="c">More than 10 Megabyte</option>
    ...
    See more | Go to post

  • LongWei
    started a topic phpmyadmin problem with firefox but not with IE
    in PHP

    phpmyadmin problem with firefox but not with IE

    Hi all,

    i recently have a fresh installation of Wamp and downloaded phpmyadmin to play around with.

    however when i test the phpmyadmin with IE it works fine and i can export import DB etc.

    However in firefox 3.6 i got this error "Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly."

    I...
    See more | Go to post

  • LongWei
    started a topic $_SESSION array.
    in PHP

    $_SESSION array.

    Hi all,

    i am trying to do a img search application using PHP and mysql. Basically it goes like this, on the index.php a user will key in some keywords to search and it will return results on the image search

    Then i will try store the array of results in a $_SESSION.

    index.php
    Code:
    $_SESSION['imgfile'] = array();
    
    			do { ?>
                  <li><img src="img/<?php
    ...
    See more | Go to post

  • LongWei
    replied to Sql Syntax Error when i did serveral checks
    in PHP
    arhh, now i think i know where i gone wrong

    the ' quotes in my sql statment. But how do i remove the single quote under this sql statement?

    echo $query_rstImage s =sprintf("SELEC T * FROM images WHERE '".$categoryq." '");
    See more | Go to post

    Leave a comment:


  • LongWei
    replied to Sql Syntax Error when i did serveral checks
    in PHP
    thats the error that i got

    SELECT * FROM images WHERE 'image_category = 'Family' OR image_category = 'Cartoons''You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Family' OR image_category = 'Cartoons''' at line 1

    i dun find anything wrong with the systax. where can i get wrong?
    See more | Go to post

    Leave a comment:


  • LongWei
    started a topic Sql Syntax Error when i did serveral checks
    in PHP

    Sql Syntax Error when i did serveral checks

    Hi All,

    I have a select list in my HTML page as follows

    Code:
    <select name="category[]" size="3" multiple="multiple" id="category">
            <option value="Family">Family</option>
            <option value="Cartoons">Cartoons</option>
            <option value="Scenary">Scenary</option>
    ...
    See more | Go to post
    Last edited by Dormilich; Dec 31 '09, 11:18 AM. Reason: Please use [code] tags when posting code
No activity results to display
Show More
Working...