User Profile

Collapse

Profile Sidebar

Collapse
slsv
slsv
Last Activity: Feb 28 '14, 07:11 AM
Joined: Apr 16 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • slsv
    started a topic Pagination in category
    in PHP

    Pagination in category

    Hello,
    I have a page whit categories. The problem that I'm facing is how to make pagination in the category? When I click for exaple 'Autos' and open images only from 'Autos' how to change next image from this category?

    I have this so far but when I load category the page is blank.
    Code:
    $cat_id = $_GET['cat_id'];
                $cat_id = mysqli_real_escape_string($con, $cat_id);
                $query = "SELECT
    ...
    See more | Go to post

  • slsv
    replied to How to make Next and Prev buttons to work
    in PHP
    So I need 3 query's?
    1. To select all images from table
    2. To select prev image on Prev button
    3. To select next image on Next button

    Or I didn't understand something?
    See more | Go to post

    Leave a comment:


  • slsv
    started a topic How to make Next and Prev buttons to work
    in PHP

    How to make Next and Prev buttons to work

    Hi,
    still learning and I trying to make buttons for Next and Prev.
    So far I can pull the image from database and show in the page but buttons doesn't work. When I click on Next or Prev it's just reload the page with the same image.
    Can someone help me with this?
    Here is the code
    Code:
                if($q = mysqli_query($con, "SELECT * FROM images WHERE `name` = '". preg_replace('/[^.A-Za-z0-9]/ui', '',  $_GET['name'])
    ...
    See more | Go to post

  • slsv
    replied to Invalid expression term 'out'
    @vijay6,
    this is what i needed and now is working:
    Code:
     mod.userDell(columns[0], columns[1]);
    See more | Go to post

    Leave a comment:


  • slsv
    replied to Invalid expression term 'out'
    Code:
        if (code.Equals("D"))
                        {
                            //mod.userDell( // HERE ); <--- HERE 
                            mod.userDell(columns[0], columns[1]);
                            Console.WriteLine("");
                        }
    See more | Go to post

    Leave a comment:


  • slsv
    replied to Invalid expression term 'out'
    Hey, thanks for this but how this is connected with this
    Code:
        public static void userDell(string msi,String filename, String DB_CONN_STRING)
                {
                    String temp_msisdn = "+" + msi;
                    bool ima = DatabaseConnection.checkExist(temp_msi);
                    bool result;
                    if (ima) 
                    {
                        result = DatabaseConnection.deleteRoute(temp_msi);
    ...
    See more | Go to post

    Leave a comment:


  • slsv
    replied to Invalid expression term 'out'
    it's only one file.. here is the scenario:
    1.Connect and take the file.
    2.Read the file and split it.
    3.While reading the file if the char of this line is "d" i will delete the line and continue on next.

    So far i have connection and reading.
    I have this what to do if flag is 'D' ( first post ) then in my reading class i put this:
    Code:
    UserMod.UserMod mod = new UserMod.UserMod();
    How to...
    See more | Go to post

    Leave a comment:


  • slsv
    replied to Invalid expression term 'out'
    Whole line and continue to next line.
    See more | Go to post

    Leave a comment:


  • slsv
    replied to Invalid expression term 'out'
    Hey vijya6, till now i successfully connected to database and read from file. So now i need to perform this action in my first post. While i read the file i check for flag "D" and when i have a line with this file I must delete.
    See more | Go to post

    Leave a comment:


  • slsv
    replied to Invalid expression term 'out'
    Ok, thanks for the help.
    See more | Go to post

    Leave a comment:


  • slsv
    replied to Invalid expression term 'out'
    Like I said, I'm a little bit new and I don't know exactly how to rewrite it in C#..
    That's why i trying to work with this java piece of code..
    I must do this piece of code in my first post to make it work in this condition. How can :
    Code:
        string[] lines = File.ReadAllLines(@"pathtofile"); 
                foreach (string line in lines)
                {
                    string[] columns = line.Split('|');
    ...
    See more | Go to post

    Leave a comment:


  • slsv
    replied to Invalid expression term 'out'
    Yes, is part of Java code.
    I saw that in Java System.out.prin tln is equivalent to Console.WriteLi ne in C#.. but when i change it i get more errors.. like:
    Code:
    bool ima = DatabaseConnection.checkExist(temp_msisdn);
    'DatabaseConnec tion' does not exist in current context.
    Code:
    WriteLog.writeLog(...)
    'WriteLog' does not exist in current context.

    When is a 'System.out.pri ntln' i don't have this errors..
    See more | Go to post

    Leave a comment:


  • slsv
    started a topic Invalid expression term 'out'

    Invalid expression term 'out'

    Hi, I'm a little bit new in this area and I have this error
    Can someone tell me what is this mean? -
    Invalid expression term 'out' and
    Identifier expected; 'out' is a keyword

    Code:
    public static void userDell(string msi,String filename, String DB_CONN_STRING)
            {
                String temp_msisdn = "+" + msi;
                bool ima = DatabaseConnection.checkExist(temp_msi);
    ...
    See more | Go to post

  • slsv
    started a topic How to read and split file as string

    How to read and split file as string

    Hi,
    I'm not very familiar how to do this in C#. Need to connect to Oracle db, take a file from directory then read every line of the file. Lines are like this:

    123234847656|88 00359898818177| A|20130401 14:51:42|
    123234847212||D |20130401 14:52:08|
    123234847212||M |20130401 14:55:38|

    Then will split as string on every '|' char and according to this flag |A|, |D| or |M| I will add/delete/modify information...
    See more | Go to post
No activity results to display
Show More
Working...