39,316 Topics
| |
Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/kamsarph/public_html/index.php on line 3 | |
Hi My forgotpass.php function used to work. Suddenly it only works up until you get the message: 'An email has been sent to you with instructions on how to reset your password. <strong>(Mail will not send unless you have an smtp server running locally.)' However no email is sent. It … | |
Dear, I have two database connection files. It is possible to use them to connect with two database instead of one only? this code shown below is the coding of one of them to connect with the particular database. The other file is used for username and password of the … | |
I am newbie here can anybody help me with integration of shops to my website, thanks. | |
how to send email from form in php? i used the code mail(); function of php but did not successfull. i also configure php.ini and send mail files but did not get success. Please give me suitable examples with all configure file in php. | |
I'm trying to create a dropdown list in a HTML form populated by results for a mysql query. However it is not loading and i am just given a white screen. $query = mysql_query("SELECT eventName from sgt")or die(mysql_error()); while($row = mysql_fetch_array($query)) { echo "<option value=\"$row['eventName']\">" $row['eventName']"</option>"; } Any help would … | |
I need to extract a certain string from a webpage and workon it. In the website it is given like this : `Decrypt the following random string: O2tsOGJeLj0saj07ODM1IQ==` I need only the base64 encoded part, but I can't think of any way. I tried using `substr()` and `strstr()` but I … | |
I have this project where i have to create an events website using a mysql database and php. I'm having some toruble with some code that will allow users that change their password. I know it's a problem with the mysql syntax in my query but i can't figure out … | |
Hi I would like display visitor ip address and location on my website and save it in ip.txt file in my webserver. How can I do it? <?php $ip=$_SERVER['REMOTE_ADDR']; $file = fopen('ip.txt','w'); fwrite($file,$ip); echo "Your IP Address is $ip"; ?> //When I run in my xampp localhost I got like … | |
How would I go about editing this code for displaying a random post from a category for 24 hours, then switching to another random post? This would be to show a Tip of the Day. if ( ! function_exists( 'cb_breaking_news' ) ) { function cb_breaking_news(){ $cb_breaking_filter = ot_get_option('cb_breaking_news_filter', NULL); if … | |
Hello All! I want to create my own proxy site. I googled alot and I find not a single solution in .net to do this. Everyone is using php for it. I am very new to php so i dont know how to use it. here is the code i … | |
hii i am developing a login module in php in this i have 2 page 1.logiform(design) 2.loginaction(coding) and whenever user input wrond data i redirected to it same loginform i want to echo user that he visited loginaction but u failed the message should be print on same loginform only | |
Hello everyone! Needing some help with styling a DOM parse. I have been toying around with the style but continue to end up with whitespace parse errors... So first of all here is the working code Sorry about the paste however the code snippet continued to display: The code snippet … | |
This is regarding paypal through Curl. I am trying to access paypal by using below code. The code is working fine in one server. After moving this code to live server, getting the below error. Can anybody tell me the solution for this. $API_Endpoint = "https://api-3t.sandbox.paypal.com/nvp"; $version = urlencode('76.0'); $ch … | |
<table width="200" border="1" class="form_table"> <tr> <td>Driver:</td> <td><select name="driver" class="driver" id="form_name" > <?php do { ?> <option value="<?php echo $row_Driver['id_driver']?>"><?php echo $row_Driver['driver_fullname']?></option> <?php } while ($row_Driver = mysql_fetch_assoc($Driver)); $rows = mysql_num_rows($Driver); if($rows > 0) { mysql_data_seek($Driver, 0); $row_Driver = mysql_fetch_assoc($Driver); } ?> </select></td> </tr> <tr> <td>Waybill:</td> <td><select name="select" class="waybill" id="form_name" ></select></td> … | |
i want to put custom search in my website...google custom search...bt if i use the code it will not show my html search box...it shows google custom search box...how to use it for my search box??? | |
I want to add a new line and when I tried "/n", it did not work. `while($row_selecttemptable = mysql_fetch_array($result_selecttemptable)) echo $row_selecttemptable['ArtistName'] . ' ,' . $row_selecttemptable['NAMEOfTheDVD'];` I want to add a new line between ArtistName and Name of The DVD | |
Sorry for long title. I have been trying for hours to get this thing to log out... no success. I am using the form action $_SERVER('PHP_SELF') to send the info placed in the registration form. All infor is validated and sent to database with no problem. Once logged in the … | |
Receiving this upon run: Warning: mysql_connect(): Host 'srv26.main-hosting.com' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' in /home/u871385583/public_html/ob_re4.php on line 32 NEIN! Host 'srv26.main-hosting.com' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' I am not sure about how to go about *flushing the host*, … | |
Hi, I trying to learn how to build a meta search engine. I found lots of info about them but not much on coding. I trying to use php for this. Does anyone know any good tutorials or books for this. Examples of code would be awesome! Thanks. | |
I am still working with redirection. **This** works great, but is not exactly what I need: <?php ob_start(); ?> <h1>ob redirect test</h1> <?php $redirect_page = 'https://www.google.com'; $redirect = true; if ($redirect == true) { header("Location:$redirect_page"); } ob_end_flush(); ?> I have spent all day trying to figure out how to use … | |
hello I a. php that gives me an error can someone help me thank you Error : Parse error: syntax error, unexpected T_STRING in /home/dancr/public_html/movies/variklis.php on line 1 ` <?php class { function prisijungti() { $jungtis = @mysql_connect("localhost", "dancr_phpfilm", "phpfil",); $pasirinkti = @mysql_select_db("dancr_phpfilm", $jungtis); if (!$jungtis) { die("<b>eroare:</b> Server sau … | |
I am developing a wordpress site for my client. I am using Sahifa theme in wordpress.The problem here is, the styles what i have written are loading in chrome and working well. But those styles are not working with Firefox and IE. I have stuck with this problem for a … | |
Greetings, I have a site that was created back when the dinosaours were around and of course there is a feedback form that wasn't secure and was generating spam via injections. I have implemented my typical measures; CAPTCHA, preg_match, trim, stripslashes, strip_tags, and even preg_replace. Still the spam continues. I … | |
| |
Hi all. I have a PHP script that reads my email inbox via POP3. I'm using the PHP IMAP extention. I can already access the "From" and "To" fields. What i'm having trouble with is accessing the Cc field. I need to read/count/summarize all the email addresses and draw up … | |
Hi All, I'm trying to hide php extension using **.htaccess** and it works but, I also want to show custom error page when, somebody enters url which is not exist. The code is mentioned below :- RewriteEngine on # Rewrite /foo/bar to /foo/bar.php RewriteRule ^([^.?]+)$ %{REQUEST_URI}.php [L] # Return 404 … | |
Hi, Firstly, forgive us for posting such noob question, we are still new at PHP/web development. We are not sure what's the proper approach for the problem we are working on. Basically we are building a system where user could program their hardware board online: The user will upload their … | |
Hi How do I strip the </ br> from the database when a carriage return is entered into the text area by a user? I get something like this: hello<br /> <br /> hello<br /> <br /> hello In addition when using the php mail() function, the text area also … |
The End.