| | |
pls help in this code in storing a data
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2009
Posts: 6
Reputation:
Solved Threads: 0
<?php
$conn = new mysql('localhost', 'root', 'adm1ns');
$sq1 ="INSERT INTO data VALUES(?,?,?);
$stmt = $conn->stmt_init();
$stmt->prepare($sql);
$stmt->bind_param("sss",$instance,$instance,$instance);
$stmt->execute();
$stmt->fetch();
?>
i use this code to store the data in mysql given by user...
in sixth line i am getting a error "unexpected T_STRING" i cant cant this error pls help me
$conn = new mysql('localhost', 'root', 'adm1ns');
$sq1 ="INSERT INTO data VALUES(?,?,?);
$stmt = $conn->stmt_init();
$stmt->prepare($sql);
$stmt->bind_param("sss",$instance,$instance,$instance);
$stmt->execute();
$stmt->fetch();
?>
i use this code to store the data in mysql given by user...
in sixth line i am getting a error "unexpected T_STRING" i cant cant this error pls help me
•
•
•
•
<?php
$conn = new mysql('localhost', 'root', 'adm1ns');
$sq1 ="INSERT INTO data VALUES(?,?,?);
$stmt = $conn->stmt_init();
$stmt->prepare($sql);
$stmt->bind_param("sss",$instance,$instance,$instance);
$stmt->execute();
$stmt->fetch();
?>
i use this code to store the data in mysql given by user...
in sixth line i am getting a error "unexpected T_STRING" i cant cant this error pls help me
$conn = new mysql('localhost', 'root', 'adm1ns');
$sq1 ="INSERT INTO data VALUES(?,?,?);
$stmt = $conn->stmt_init();
$stmt->prepare($sql);
$stmt->bind_param("sss",$instance,$instance,$instance);
$stmt->execute();
$stmt->fetch();
?>
Hey you have done mistake in your line 2.
look
$sq1 ="INSERT INTO data VALUES(?,?,?);
Close it like
$sq1 ="INSERT INTO data VALUES(?,?,?)";
ok
http://www.jagadishwor.com.np
![]() |
Similar Threads
- help data storing and genrating soft (Visual Basic 4 / 5 / 6)
- arrays in jsp (JSP)
- For loop problem (Java)
- About Progress Bar (Visual Basic 4 / 5 / 6)
Other Threads in the PHP Forum
- Previous Thread: Validation of form
- Next Thread: Request - Remote Image Uploader
| Thread Tools | Search this Thread |
apache api array beginner binary body broken cakephp checkbox class cms code cron curl database date date/time delete display dynamic echo email error file files filter folder form forms function functions gc_maxlifetime global google host href htaccess html image include insert ip javascript joomla limit link list login mail memmory memory menu mlm msqli_multi_query multiple mycodeisbad mysql navigation oop parameter parsing paypal pdf php problem query radio random recourse recursion regex remote script search seo server sessions sms snippet source space sql static syntax system table thesishelp trouble tutorial update upload url validator variable video web webdesign wordpress xml youtube





