Re:
"Can't connect to local MySQL server through socket '/tmp/mysqld.sock' (2)" Here's my code: <?php $dbhost=$_POST['dbhost']; // Host name $dbusername=$_POST['dbusername']; // Mysql username $dbpassword=$_POST['dbpassword']; // Mysql password $db_name=$_POST['database']; // Database name $tbl_name=$_POST['tablename']; // Table name $action=$_POST['action']; if($action == 'connect') { if(mysql_connect("$dbhost", "$dbusername", "$dbpassword") == true) { if(mysql_select_db("$db_name") == true) { echo('Connected … |
|
Re:
Hello, I would like to make a table column editable that is written in PHP. And that edited value should be subtracted with the data in another column automatically to change the value of it. Eg: I have 3 columns, Pass/Fail/Blocked. $pass and $fail are taken from DB & Blocked … |
|
Hi, IS there any way to load a `*.dll` file at run time into PHP project. For instance I want to use the functionality for encrypting the a string using `MCRYPT` module without installing the module. I found on internet that with the usage of `COM` class I can achieve … |
|
Hi, I am working on an aplication which contains two different portals (admin and members). `http://localhost/app/` is used for the members login and `http://localhost/app/admin` is used for admin's login. When I log in into members and admins portal both works fine but if I logout from one portal another portal … |
|
Re:
Hi all, I have to clarify a few ambiguites regarding mysql client to use for i running database scripts 1).Firstly i want to flush the root password set by me earlier using :mysqladmin -u root password 'root password goes here'. 2).Second i am faced with a problem of "Acces denied … |
|
Re:
Hello, I am trying to set email from my web server which we hosted ourself. I already set my php.ini to smtp.indonusa.net.id and from email: davy@indonusa.net.id to: davy_yg@yahoo.com The program seems to works fine. Yet, I do not receive any email yet as I suppose to. Someone mentions to me … |
|
Re:
I have a (2gb)txt file which has thousands of queries, i need to read those file queries and split those queries into n no. of txt files..and save them in a folder... can any one post an example or guide |
|
Re:
i want to display last 3 months of data. but this query is not working. it showing empty results. please some one help me. $sql8 = mysql_query("SELECT `orderlist_id`, `brandname`, `packsize`, `quantity`, `mrp`, `ourRate`, `Sum`,user_id,userName,date FROM `orderlist` WHERE `user_id`='$userid' AND `userName`='$usern' AND date=DATE(NOW()) - INTERVAL 3 MONTH"); $i=0; while($row8 = mysql_fetch_array($sql8)) … |
|
Re:
1. <?php 3. /* 4. $con = mysql_connect("localhost","root",""); 5. if (!$con) 6. { 7. die('Could not connect: ' . mysql_error()); 8. } 9. mysql_select_db("nvron",$con); 10. */ 13. $con = mysql_connect("localhost","nvronusr","DBpwd!@#"); 14. if (!$con) 15. { 16. die('Could not connect: ' . mysql_error()); 17. } 19. mysql_select_db("nvron", $con); 20. $DOWNLOADPATH='C:\Users\LENOVO\Desktop'; // … |
|
Re:
I have a table called Report Card Table. In that table there is colum called expiry date. I would like to know everybody who's card is expring in less than or equal to 90 days |
|
Re:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form action="#" method="post"> UserName: <input type="text" name="username"><br /> Passward: <input type="text" name="passward"><br /> Name: <input type="text" name="name"> <input type="submit" name="Submit" value="Sent"> </form> <?php $con=mysql_connect("localhost","root","","firstphp"); if(isset($_POST['Submit'])) { $UserName = $_POST['username']; $Password … |
|
Re:
hi , it's joy i want to learn about error messege in php i mean if we find user already exits on the database then how to display an error messege on same page same page means like displaying another page on the main page like pop up messege.thanks in … |
|
Re:
i have two postcodes entered by user. i format them validate and check if they do exist then i get postcode1's postal city name from mysql server. i have two districts both arrays one called innerLondon array and the second outterlondon array i fetch postal city name with my script … |
|
Re:
hi in my project i am almost done for deployment but i am afraid about ppl who disabled cookies in there browser, what should i do if they disable cookies how we get there data(i mean user) i am think about if they disable cookies we use session function for … |
|
Re:
**form.php** <html> <head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> <script> $(document).ready(function() { $("#datepicker").datepicker({ dateFormat: "dd/mm/yy" }); $("#datepicker2").datepicker({ dateFormat: "dd/mm/yy" }); }); </script> </head> <body> <form method="post" action="conn.php"> Name <input type="textbox1" name="Name[]" value=""><br> Start date <input type="textbox6" name="Startdate[]" id="datepicker"><br> End date <input type="textbox7" name="Enddate[]" id="datepicker2"><br> Item <input type="textbox8" … |
0 Reputation Points