39,320 Topics
| |
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'some_user'@'abcd.efgh.com' (using password: YES) in /home/some_dir/public_html/some_dir/db.php on line 1 Fatal Error: MySql connection failed.Access denied for user 'some_user'@'abcd.efgh.com' (using password: YES) Here is my code of db.php <?php $connect = mysql_connect('www.example.com','some_user','some_password'); if(!$connect) die('Fatal Error: MySql connection failed.' . mysql_error()); $connect_db = mysql_select_db('db_name'); if(!$connect_db) … | |
I am using WAMP server to code a form. The form contains 6 different pages. On the WAMP server when I go through the form it works perfectly, all session variables are brought from one page to the next, and so on. I call session_start() before each and every page … | |
Hi all I am request the following data from the database (image_id and description). I need to put each of them in a separate arrays and then echo out contents of both arrays I have tried array_push and implode without success. Any assistance would we appreciated. Thanks in advance D … | |
Hi, please I need an code to do on my website a little upload of files(simple). Thank you! | |
I'm hoping the Daniweb community can help where other forums have been unable to! I am attempting to have my code count how many top level menu items there are and then determine what position each menu item is in. So, if it is the first, it will append the … | |
hello friends, What is the difference between Mysql_fetch_object and mysql_fetch_array ? | |
I have a form that I am trying to create a link to insert a new record within a dynamic table I am able to accuratly do this with a form as below using a submit button <tr> <form method="POST" action="<?php echo $editFormAction; ?>" name="submitOption" id="submitOption"> <td class="tdInvisible"><?php echo $row_allQuestionOptionUser['optionKey']; … | |
How to get ip address of all systems connected to a network using php code | |
Hi I am creating an hotel reservation site for a friend.I found a nice tutorial on html.it and the code runs fine from the command line, no problem. Now I need to build an interface say to insert clients's data. So I have a form.My problem is that for the … | |
Hi, I am doing a photo library which includes large size of photos. One photo size may be around 80-100mb. And also the file type may be different. Is it possible to do it using php. if yes please give me the details.Thanks | |
I am working on a massive application that deals with ecommerce, i am an intermediate when it comes to developing applications in php. If you are interested please reply and we can talk more on what is involved. | |
Hi People, I've got a small query regarding checkboxes. I have a form, where there are input box, textarea, radio buttons and checkboxes. After form submit, Insert query gets fired and data gets inserted properly. I'm storing checkbox value as a string, I mean, the checkbox array... I'm converting it … | |
hello all. here is my code which searches all my record. <?php /** * Main.php */ include("include/session.php"); //include("viewproj.php"); ?> <html> <head> <title>Export to Excel</title> </head> <body> <form action="searchemp.php" method="post" > <?php define ('DB_NAME', 'vincegac_vince'); define ('DB_USER', 'root'); define ('DB_PASSWORD', ''); define ('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$link) … | |
hi everyone, i run a website and the email script for some reason is sending emails to users trash/spam folder, or npt sending at all. it seems to be on most yahoo email addresses, and possibly gmail. the email script is written with php in codeigniter, and it runs on … | |
I build a code to eventually get a random item per category. Functions are working. I am just curious if the WHILE and IF are accurate. I am not sure if the first two unset() is good or do I need to drop those? And more important WHY the random … | |
Hi, I want to upload a file from one machine to another server ie application is in server A and path of the uploaded file is in server B. How can I implement this without using curl, ftp and ssh. The code which I have used is shown below. But … | |
$accname =$_POST['uaccountname']; $aid =$_POST['aid']; if($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['submit'] =='update account') { $qry = "UPDATE accounts SET acc_name = $accname WHERE acc_id =$aid"; mysql_query($qry) or die(mysql_error()); } it gives folling error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for … | |
Hi all, I cant seem to find the place in developers.facebook where I can see my access token for my facebook PAGE (not app..). I need to find that, and then set permissions to manage MANAGE_PAGES. Isnt that the right way to do it, when my goal is to be … | |
i want to make a online examination project so plz help me i want to fetch the questions randomly from database and with 4 options and when i answer this question it should match with correct answers so that i can display th result of the test plz give the … | |
Hello All bellow is the code for time in which is not showing up when i login as admin. Php Code: <?php $query = "select * from presence where uid=".$uid." and date='".$date."'"; $recordset = mysql_query($query); while($record = mysql_fetch_array($recordset)) {$count = 1; //echo "<td>Your Time In :==: ",$record["timein"],"</td></tr><br></table>"; echo "<center><table><tr><td>Your Time … | |
Is it possible to make a while loop for a function but in stead of just echo it's result, store it in an array??? values in database for example: one, two, three, four. In a normal way I do: While (havenumbers()) { echo havenumber(); // displays "one" etc. } In … | |
Hallo All, How to add google maps on certain address with php / html script ? How to find the script ? This is what I have so far that I would like to change the address: <div class="row"> <iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Skybee+One+Building,+JL.+Kebon+Sirih+Raya,+Kavling+63,+Central+Jakarta,+DKI+Jakarta,+10340,+Indonesia&aq=&sll=-6.180705,106.831355&sspn=0.028245,0.045447&ie=UTF8&hq=Skybee+One+Building,+JL.+Kebon+Sirih+Raya,+Kavling+63,+Central&hnear=Jakarta+Pusat,+Jakarta+Capital+Region+10340,+Indonesia&ll=-6.183313,106.82726&spn=0.014122,0.022724&t=m&z=14&iwloc=A&cid=16520793013655425908&output=embed"></iframe> </div> Thanks. | |
I have a question about using variables inside a function. The first part of code is not working. It appears that the variable '$myvalue' is not being served to the function although when I echo the $myvalue it has the right text. If I however use normal text, it WORKS! … | |
Hey everyone, Sorry for the lack of knowlege. I've tried google-ing how to imput and display images on a web page without the image showing up in weird symbols, but I've had no luck. Can anyone help me? My purpose is to simply store an image manually into a mysql … | |
Hi; how can i show the delete and edit link to the user who has posted the comment just like in facebook only the person who has posted the comment is allowed to edit or delete the comment below is my code <?php //including the database connection file include_once("includes/settings.php"); connect(); … | |
hi i m new for the webservices. i don't have knowledge about webservices. I want to make webservice for all image url retrieve from the database . i don't know what to do for that .so, give me some suggestion. My website link is : http://richmondhillgalive.com/index.php/local-deals.html from this page i … | |
Hai , In my database's table(table name is 'datas_disp') there are 8 coulmns , they are id, brand_name, time_period, image_path, Shop_name, shop_address, more_info, category. i want to auto-mail all these contents when they reach 30 day.and delete the product from my database, anybody know the scrpt , if yes please … | |
Hi all, I have to create a function, that lets users write a newsletter from an intranet, instantly share that on the companys Facebook page wall. The intranet stuff is made, and all fine - just need to post it on the wall too.. Anyone knows what api or plugin … | |
Can any one help me to know about the api which will give the full list of amazon categories. | |
I've spent a good few hours trying to find the answer to this, even though it seems simple. I know that this error is usually a result of a quote being wrong, but this is the first time I've used PDO and I've tried various combinations of quotes, using BindParam … |
The End.