User Profile
Collapse
-
Sorry of course I meant really appreciate it -
-
-
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"); -
-
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[/] -
-
-
$DB->query() does not return errors. What do you mean by echo()ing mysql_error()?Leave a comment:
-
Thank you for your suggestions but in my columns price is uppercase.Leave a comment:
-
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 -
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);Leave a comment:
-
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];Leave a comment:
-
Guys I am still stuck by this. Any help will be greatly appreciated.
Thanks...Leave a comment:
-
Thank you for your reply Banfa.
However I am a bit confused, what do you mean by query string?
Can you please explain?
ThanksLeave a comment:
-
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", -
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, -
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.Leave a comment:
-
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 -
Thanks dude
How do I add the mysql C API in my compiler? I am using visual studio and I have XAMPP also installed.Leave a comment:
No activity results to display
Show More
Leave a comment: