User Profile

Collapse

Profile Sidebar

Collapse
poreko
poreko
Last Activity: Nov 23 '10, 12:33 AM
Joined: Nov 30 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • poreko
    replied to PHP error
    in PHP
    Sorry of course I meant really appreciate it
    See more | Go to post

    Leave a comment:


  • poreko
    replied to PHP error
    in PHP
    Thanks mate. I eally appreciate it.
    See more | Go to post

    Leave a comment:


  • poreko
    replied to PHP error
    in PHP
    what do you mean by $array is not set?
    See more | Go to post

    Leave a comment:


  • poreko
    started a topic PHP error
    in PHP

    PHP error

    Hi

    I keep on having this error when I run my query:
    PHP Notice: Undefined variable: array in C:\xampp\htdocs \mysql_class_2. php on line 48

    However my code has no problem at line 48:
    Code:
    <?php
     class mysql {
       
     ////////////////////////////////////////////////////////////////
      function Connect($host, $name, $pass, $db){
    
      $connection = mysql_connect("$host","$name","$pass");
    ...
    See more | Go to post

  • poreko
    replied to Input validation help
    Thank a lot ivosilva it is working now
    See more | Go to post

    Leave a comment:


  • poreko
    started a topic Input validation help

    Input validation help

    I am trying to validate the inputs of a form using javascript.
    The validation is working but the form is not been submitted after the inputs have been checked.
    I have been unable to find any error.
    Any help will be appreciated.
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "[URL]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd[/URL]">
    <html xmlns="[URL]http://www.w3.org[/]
    ...
    See more | Go to post

  • poreko
    replied to Order By
    in PHP
    It is not sorting it by price, the results are still random.
    See more | Go to post

    Leave a comment:


  • poreko
    replied to Order By
    in PHP
    I already have that added it my class
    See more | Go to post

    Leave a comment:


  • poreko
    replied to Order By
    in PHP
    $DB->query() does not return errors. What do you mean by echo()ing mysql_error()?
    See more | Go to post

    Leave a comment:


  • poreko
    replied to Order By
    in PHP
    Thank you for your suggestions but in my columns price is uppercase.
    See more | Go to post

    Leave a comment:


  • poreko
    started a topic Order By
    in PHP

    Order By

    Hi

    I am trying to order the following query by price when the varaible $concern=="pric e"; But it is not working. Here is my code.

    Code:
     
     
        for($key=0 ;$key<count($first);$key++)
      {
       if(($first[$key])>0.1){
                $blank++;
                $set=$key+1;
            if($concern=="price"){
                $sql2 = "SELECT * FROM laptop2 WHERE CODE=$set
    ...
    See more | Go to post

  • poreko
    replied to Help with mysql C API
    in C
    Guy,
    I have solved the problem thanks a lot. Here is the solution:
    Code:
    #include <my_global.h> 
    #include <mysql.h> 
    #include<string.h>
    #include<conio.h>
    #include<time.h> 
    #include<stdio.h> 
    int main(int argc, char **argv) 
    { 
    char t[60]="alpha"; 
    MYSQL *conn; 
    char query[2000];
     
    
    conn = mysql_init(NULL);
    ...
    See more | Go to post

    Leave a comment:


  • poreko
    replied to Help with mysql C API
    in C
    I have tried to do what Banfa has told me but now the code is not eev compiling. The more I try to do it the more I have errors.
    Code:
    #include <my_global.h> 
    #include <mysql.h> 
    #include<string.h>
    #include<conio.h>
    #include<time.h> 
    #include<stdio.h> 
    int main(int argc, char **argv) 
    { 
    char t[60]="alpha"; 
    MYSQL *conn; 
    char query[2000];
    ...
    See more | Go to post

    Leave a comment:


  • poreko
    replied to Help with mysql C API
    in C
    Guys I am still stuck by this. Any help will be greatly appreciated.
    Thanks...
    See more | Go to post

    Leave a comment:


  • poreko
    replied to Help with mysql C API
    in C
    Thank you for your reply Banfa.
    However I am a bit confused, what do you mean by query string?
    Can you please explain?
    Thanks
    See more | Go to post

    Leave a comment:


  • poreko
    started a topic Help with mysql C API
    in C

    Help with mysql C API

    I would like to insert into my database the character stored inside the variable t. How do I do that?
    This is my code.
    Code:
    #include <my_global.h> 
    #include <mysql.h> 
    #include<time.h> 
    #include<stdio.h> 
    int main(int argc, char **argv) 
    { 
    char t='alpha'; 
    MYSQL *conn; 
     
    conn = mysql_init(NULL); 
    mysql_real_connect(conn, "localhost", "root",
    ...
    See more | Go to post

  • poreko
    started a topic msql C API

    msql C API

    Hi Guys,

    I would like to insert into my database the character stored inside the variable t. How do I do that?
    This is my code.
    Code:
    /*#include <my_global.h>
    #include <mysql.h>
    #include<time.h>
    #include<stdio.h>
    int main(int argc, char **argv)
    {
    char t="alpha"; 
    MYSQL *conn;
    
    conn = mysql_init(NULL);
    mysql_real_connect(conn,
    ...
    See more | Go to post

  • poreko
    replied to mysql C API with XAMPP?
    in C
    hi

    Actually it is not the coding side of it that i am struggling with. I dont know how to comfigure the compiler and include the different directories and so on.
    See more | Go to post

    Leave a comment:


  • poreko
    started a topic mysql C API with XAMPP?
    in C

    mysql C API with XAMPP?

    Hi
    I would like to connect to mysql using C but I have not been successful. I am using XAMPP and Visual C++ express edition.
    Can anyone guide me through the process?
    Thanks
    See more | Go to post

  • poreko
    replied to Embbed PHP into C
    in C
    Thanks dude

    How do I add the mysql C API in my compiler? I am using visual studio and I have XAMPP also installed.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...