39,393 Topics

Member Avatar for
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
358
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
293
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
135
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
295
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
455
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
93
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
175
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
275
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
587
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
209
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
114
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
393
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
290
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
153
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
378
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
189
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
358
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
210
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
396
Member Avatar for shella

Hi there! First of all Happy New Year to all the community. I just update the wordpress at the 3.8 version and a pair of codeline I wrote don't work now. Actually I call the database in a new table I created to have back some data but if yesterday …

Member Avatar for pritaeas
0
107
Member Avatar for danimischiu

Hello, I'm trying to get a website source with a curl call but some data is missing and I don't know what I'm doing wrong. If i make a call to the url in browser in the page source will apear "<!-- request captchas: blabla -->".. but after I call …

Member Avatar for pritaeas
0
162
Member Avatar for abhilashrajrs

I have database with Name, email, joindate and my Query is $name=$_POST['txtname']; $email=$_POST['txtemail']; $date = date("Y/m/d"); INSERT INTO member (name,email,joindate) VALUES ('$name', '$email', '$date') What should be the output query to get all data by month?

Member Avatar for pritaeas
0
239
Member Avatar for muralisugu

Hi i want show the image in php i connected the database i show the images it is comming this type of code ccccccccccccccccccccccccccccccccccccccccccccccÿÀx "ÿÄ ÿĵ}!1AQa"q2‘¡#B±ÁRÑð$3br‚ %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ ÿĵw!1AQaq"2B‘¡±Á #3RðbrÑ $4á%ñ&'()*5 i put in header("content-type: image/jpeg") is show only img symble. any persong know that code please update,,,

Member Avatar for pritaeas
0
78
Member Avatar for thilipdilip

HI: I'm new to prstashop developement Enviroinment. In Prestashop I have created on module, In that I want to create a page and need to place the link in user dashboard once the user was logged in this link will be display in user dashboard, how to do this. Thanks …

0
170
Member Avatar for davy_yg

Hallo, How to trim content? I would like to show only the first 30 letters of this content. This is what I have so far: include('include/con_database.php'); $result = mysql_query("SELECT * FROM dynamic_content WHERE id='124'"); while ($data = mysql_fetch_array($result)){ echo '<div id="text">'.$data['content'].'</div>'.'<br>'; } Thanks before.

Member Avatar for davy_yg
0
302
Member Avatar for singularity~

I have no idea why I cannot get jquery to parse a JSON array from a PHP server side call. Here is my jQuery $.ajax({ type:"POST", url:"/Home/Profile/cb_profile.php", data:{loadProfile: JSON.stringify(itemsToPost)}, success: function(data){ var returnedItem = $.parseJSON(data); }, error: function(e){ console.log("We've had a error"); }, }); Here is my PHP if(isset($_REQUEST['loadProfile'])) { …

Member Avatar for Dani
0
362
Member Avatar for chrisschristou

hello friends. like the question title i want add function to my jquery script when a user choose a option of select html form field to calculate a totoal price. here is my script and the html form field THE FIELD <option value="0" selected="selected">Shipping</option> <option value="0">0.00</option> <option value="9.80">9.85</option> <option value="19.60">19.80</option> …

Member Avatar for chrisschristou
0
166
Member Avatar for Dragon840215

Ok so i an very new to this site and am trying my luck with PHP. Got a great idee to make some cash but now to implement it is a whole new game for me. I want to keep the selceted value of the select box after the form …

Member Avatar for Dragon840215
0
2K

The End.