39,323 Topics

Member Avatar for
Member Avatar for paddi_1

Dear all, I have php file which is returning result from server which are shown as group list, this result i want to pass to the dialog box as in drop-down selection, posting the code as below of group.php. I am getting php result correctly but need to integrate in …

Member Avatar for qazplm114477
0
169
Member Avatar for dshiells

Hi guys, Hope you can help (and hope I can explain my problem OK!) I am designing a sports site which takes three values from a user to input match details: a date (text input), a versus (text input), and if the match is home or away (radio buttons). Several …

Member Avatar for dshiells
0
9K
Member Avatar for McLaren

Hi, I cannot figure out why it does not call my overriden function. The original function is in wp-include/comment-template.php file. In my theme there is file functions.php so I put this code to override the original function: [CODE] add_filter('get_comment_reply_link', 'mano_get_comment_reply_link', 1, 3); function mano_get_comment_reply_link($args = array(), $comment = null, $post …

0
72
Member Avatar for kimmi_baby

Hi, I'm having some issues with checkboxes. When I submit the form and the email is sent, the check box area is empty. There is no information listed. When I tried to change the code, it would only show one of the options and not all that have been picked. …

Member Avatar for kimmi_baby
0
206
Member Avatar for brainfo

Am trying to create a mail funciton from php. It showing error like [CODE]Mail() [Function.mail]: Failed To Connect To Mailserver At "localhost" Port 25, Verify Your "smtp" And "smtp_Port" Setting In Php.ini Or Use Ini_Set()[/CODE] i cheked my php.ini file also in directory C:\wamp\bin\apache\Apache2.2.17\bin\php.ini. I found [CODE] SMTP = localhost …

Member Avatar for pritaeas
0
17K
Member Avatar for dd2308

Hello Everyone, I want to transfer data in export from my php reports. it works also. but the problem is when i open that .xls file in notepad i can view all my data. i don't want this.my data will be unsecure.can anybody tell me solution?? code is as below: …

Member Avatar for pritaeas
0
162
Member Avatar for tahirkhanafridi

Dear respected senior php web developer i m new to php webdeveloping and hoping for a good coder one day inshaALLAH SIR i have problem with my image hosting script [url]http://pashtoaudio.com/tahir/upload.php[/url] is for uploading images and [url]http://pashtoaudio.com/tahir/photos.php[/url] is for displaying all uploaded images how ever i want to show there …

Member Avatar for tahirkhanafridi
0
134
Member Avatar for Jashandeep
Member Avatar for BleepyE

Hey Guys, Ive got a MyBB forum and im looking at making a plugin to see what day had the most posts. In theory ive worked out how to do it, but I cant put it down in code. In the MyBB stats table (mybb_stats), I have a dateline (unix …

Member Avatar for cereal
0
136
Member Avatar for davy_yg

tampil_produk.php [CODE] //Langkah 2: Sesuaikan perintah SQL echo "<table>"; $tampil = "select * from produk order by id_produk desc LIMIT $posisi,$batas"; $hasil = mysql_query($tampil); $result=mysql_query("select * from produk order by id_produk desc LIMIT $posisi,$batas"); $no = $posisi+1; while ($data=mysql_fetch_array($result)){ $harga = number_format($data['harga'],0,",","."); $deskripsi = nl2br($data['deskripsi']); // membuat paragraf $isi = …

Member Avatar for smith32
0
79
Member Avatar for shamsidah

hye.. i have a problem to display only numbers of date according the month automatically. I want to display in the table like this date 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17............31

Member Avatar for diafol
0
97
Member Avatar for websoftcreation

Somebody can help me to learn wordpress customization by hard code.send me link of tutorial websites asap.

-3
67
Member Avatar for Jfunch

I have this code which takes data from an sqlite3 database and prints out the all the data from the data into an html table. Like so: 1 jake asdlfj lakdsjfl lkajsdgklj kafdlgjkalg 2011-12-04 2 Bill asdfohdf oijasdofij qoasjgfoiq oaisjdfae 2011-12-04 3 Tim lakdsfgaie aogoie ;lasjdlo asdfgae 2011-12-04 4 hello …

Member Avatar for simplypixie
0
178
Member Avatar for enrekan2011

please help me...i need some help from you all....because i still new in writhing php code. thanks... actually right now im doing a vote list name member for the committee members. so, the name for the list Committee members i take from my database. After that, i want when the …

Member Avatar for smith32
0
158
Member Avatar for RCrizt

is there posible way to create a excel template and upload it again to your system? //==TO DOWNLOAD FILE (.xls) header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=excelfile.xls"); header("Pragma: no-cache"); header("Expires: 0"); //===TO upload the file (excelfile.xls) // include class file include 'reader.php'; // initialize reader object $excel = new Spreadsheet_Excel_Reader(); // read …

0
49
Member Avatar for jatinder_44

hello, I have written some code for it but it's not displaying date's in <td> where is the problem can any body tell me. [code=php] <?php //Get year 2008 $year = date('Y'); echo "Year $year</br>"; //get month $month = date('n'); echo "Month $month</br>"; //get day $day = date('j'); echo "Day …

Member Avatar for shamsidah
0
3K
Member Avatar for aecha

Hi. I want to ask is it possible to do break statement first then to the continue statement? Like example, I want to do counting and have a break at the certain time then continue the counting back and stop back.Is it possible for me to do that? I already …

Member Avatar for markdean.expres
0
111
Member Avatar for tgr0ss83

I'm trying ot query the same table twice, with different Name's for the values. [CODE]$query_rt_lmp ="(SELECT rt_lbmp.lbmp as nyc FROM rt_lbmp WHERE rt_lbmp.`date`='$date' and name='N.Y.C.') UNION ALL (SELECT rt_lbmp.lbmp as millwd FROM rt_lbmp WHERE rt_lbmp.`date`='$date' and rt_lbmp.name='MILLWD')";[/CODE] when i do [CODE]<?php echo $row_rt_lmp['nyc'];?> <?php echo $row_rt_lmp['millwd'];?>[/CODE] I get this: array …

Member Avatar for diafol
0
54
Member Avatar for suhnako

what's wrong with my coding?please help. [CODE] <?php $a= $_POST['ques']; $sql="SELECT * FROM $question WHERE question=$a"; $query=mysql_fetch_array($sql); while($result=mysql_fetch_array($query)){ $result['id']; } ?> [/CODE] or this one [CODE] <?php $sql="SELECT * FROM $question WHERE question='".$_POST['ques']."'"; $query=mysql_fetch_array($sql); while($result=mysql_fetch_array($query)){ $result['id']; } ?> [/CODE]

Member Avatar for diafol
0
282
Member Avatar for dave086

Hi, I have a website that I'm trying to embed a blogger feed into. My client doesn't want the user to be taken to the blogger site, but to click a link in the left hand side bar, and the relevant post load in a new page. What is the …

Member Avatar for diafol
0
207
Member Avatar for Draucia

I have a question secuirty. Is it safe enough to do: [CODE] $fname = mysql_real_escape_string(htmlentities($_POST['fname'])); $lname = .....($_POST['lname'])); etc [/CODE] and insert it into the table like: [CODE] mysql_query("INSERT INTO North_America (first_name, middle_name, last_name, email, phone, country) VALUES('$fname', '$mname', '$lname', '$email', '$phone', '$country') ") or die(mysql_error()); [/CODE] Or do I …

Member Avatar for jlego
0
240
Member Avatar for dinhunzvi

how do i rewrite the following code using the ternary operator [CODE] if ( isset( $page_title ) ) { echo $page_title; } else { echo 'Welcome to Auto-Zim'; } [/CODE] thanks in advance

Member Avatar for pritaeas
0
130
Member Avatar for Psyho

Hello all. The problem: I have started a session. Now I would need to set an expiry time (24 hours) on the cookie it creates (if it creates it). How do I achieve this? Thanks to all, who anwsers.

Member Avatar for Stefano Mtangoo
0
115
Member Avatar for moroccanplaya

hi i just started php, my code works on ie, bit when i open the webpage on firefox and chrome the image does not display?, can anyone help [CODE] $car = "C:\wamp\www\porche.jpg"; $banner = "<img src=\"$car\" "; $banner .= "width=\"380\" height=\"110\" border=\"0\" >"; echo($banner); [/CODE]

Member Avatar for pritaeas
0
195
Member Avatar for furlanut

I am trying to send results to a new page.The results are fine. i.e. once the form is submitted and all input validated I want the result to appear on the results.html page. I have been able to display the results.html but no data displayed. I attach some relevant code: …

Member Avatar for moneeshot
0
146
Member Avatar for sharathg.satya

i referred a site which said that using the include() we can include code of another page into the current page But i am not getting the output as they showed. this is my code [CODE] <html> <head> <style type="text/CSS"> body { background-color:#696565; font-style:italic; } h1 { color: green; text-decoration:underline; …

Member Avatar for moneeshot
0
112
Member Avatar for rphp

Hi, I am a new PHP developer. Actually just started today and I wanted to know which MAMP stack to use ? I came across MAMP and AMPPS : [url]http://www.mamp.info[/url] [url]http://www.ampps.com[/url] Which one should I use ? From the looks of it I think AMPPS is easy to use. I …

Member Avatar for pritaeas
0
86
Member Avatar for manc1976

I have created a form that uses a drop-down box to save information to a MySQL database using a php script I wrote. That works perfectly, but the problem I have is when I am trying to edit the information in the database. I have created an edit form that …

Member Avatar for manc1976
0
10K
Member Avatar for abhinav1986

Hello to all, I am trying to solve this problem but i did not find the solution. please help me to find the solution. Error: Column count doesn't match value count at row 1 [CODE]<?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("hotel", $con); …

Member Avatar for pritaeas
0
293
Member Avatar for Ritesh_4

Hi I need to add the following sample url, [url]http://www.mysite.com/home[/url] to my .htaccess file to redirect it to the following url: [url]http://www.mynewsite.com/welcome[/url]. I've seen that my htaccess uses RewriteCond, and tried a code like this: RewriteCond %{HTTP_HOST} ^www\.mysite\.com/home$ [NC] RewriteCond ^(.*)$ http://www.mynewsite.com/welcome$1 [R=301,L] However am getting Internal Server Error 500. …

Member Avatar for skraps
0
153

The End.