39,316 Topics

Member Avatar for
Member Avatar for kausarhusain

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

Member Avatar for splink105
0
168
Member Avatar for ebanbury

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 …

Member Avatar for ebanbury
0
477
Member Avatar for marifard

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 …

Member Avatar for pritaeas
0
121
Member Avatar for imrantrueface

I am newbie here can anybody help me with integration of shops to my website, thanks.

Member Avatar for mayaestat
0
111
Member Avatar for kumar89hitesh

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.

Member Avatar for coreyavis
0
208
Member Avatar for twiggy145

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 …

Member Avatar for twiggy145
0
896
Member Avatar for np complete

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 …

Member Avatar for diafol
0
139
Member Avatar for twiggy145

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 …

Member Avatar for twiggy145
0
257
Member Avatar for tony75

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 …

Member Avatar for tony75
0
1K
Member Avatar for rpro2

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 …

Member Avatar for cereal
0
355
Member Avatar for M.Waqas Aslam

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 …

Member Avatar for M.Waqas Aslam
0
288
Member Avatar for noel9

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

Member Avatar for broj1
0
134
Member Avatar for Mohit_2
Member Avatar for mkweska

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 …

Member Avatar for nauticalmac
0
292
Member Avatar for kishoresai438

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 …

Member Avatar for nauticalmac
0
451
Member Avatar for juslai

<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> …

0
91
Member Avatar for hriti

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???

Member Avatar for nauticalmac
0
173
Member Avatar for Mohamed_26

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

Member Avatar for diafol
0
274
Member Avatar for Morney

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 …

Member Avatar for cereal
0
517
Member Avatar for mattyd

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*, …

Member Avatar for rubberman
0
201
Member Avatar for phpDave

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.

Member Avatar for phpDave
0
110
Member Avatar for mattyd

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 …

Member Avatar for Dani
0
388
Member Avatar for marin cristina

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 …

Member Avatar for marin cristina
0
286
Member Avatar for Phanindra Reddy

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 …

Member Avatar for diafol
0
151
Member Avatar for Sabyre

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 …

Member Avatar for diafol
0
374
Member Avatar for Rahu; joahi
Member Avatar for Some-Jackass

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 …

Member Avatar for Some-Jackass
0
186
Member Avatar for javedsai

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 …

Member Avatar for javedsai
0
355
Member Avatar for onsponge

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 …

Member Avatar for cereal
0
208
Member Avatar for ebanbury

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 …

Member Avatar for nauticalmac
0
387

The End.