39,320 Topics

Member Avatar for
Member Avatar for zeusofolus

I know you can use the if/elseif to make php compare values [code=php] if ( $Quantity != 0){ $a = ( $b * $c ); } elseif ( $Quantity == 0){ $a = ( $b + $c ); } [/code] but what if you want it to do something only …

Member Avatar for zeusofolus
0
107
Member Avatar for pee2002

Hi there folks! I´m pretty blind regarding Callback Url. I only know that someone will dump in information that i want to see. Thats it. I have this to fill out: [URL="http://img18.imageshack.us/img18/1912/clickatell.jpg"]http://img18.imageshack.us/img18/1912/clickatell.jpg[/URL] And this has an explanation: (Full Version PDF [URL="http://www.clickatell.com/downloads/http/Clickatell_HTTP.pdf"]here[/URL]) [URL="http://img29.imageshack.us/img29/5005/manuald.jpg"]http://img29.imageshack.us/img29/5005/manuald.jpg[/URL] I think the XML GET callback URl is …

Member Avatar for pee2002
0
1K
Member Avatar for innocent.boys

[B]I was wondering by using which technique i can fetch data from database more fast...!! . . i have 500 records and i have to do pagination also on it..!! how can i do it more faster...? . . i just want to know what professionals do to make there …

Member Avatar for innocent.boys
0
2K
Member Avatar for i101dotcom
Member Avatar for pritaeas
0
66
Member Avatar for sarithak

Hi frnds I am getting error in mail code...basically i changed the host server....at the previous server it works fine..but now i am getting error in this new server...now i am using HELM....this is the error... [CODE]Failed to connect to www.gmail.com:25 [SMTP: Failed to connect socket: A connection attempt failed …

Member Avatar for pritaeas
0
79
Member Avatar for cwarn23

I have been pm about this question from Crohole so many times that I thought I would setup a topic where others can join in. Crohole has asked about setting up a bot like I have many times but his questions seem to be looping back to the beginning. So …

Member Avatar for cwarn23
0
124
Member Avatar for shaikh_mshariq

Hi All, I have used eval function before this. But I am not sure why this one is not working for me. I do have one function which returns me some filter string. It returns string something like this. [CODE]AND TM_ID=$row_tMain[TM_ID] AND TM_DATE=$row_tMain[TM_DATE][/CODE] I want to use this string in …

Member Avatar for shaikh_mshariq
0
130
Member Avatar for mundetas

Can php have a stand alone window form functionality instead using the browser? Because asp can use things such like WPF, have a windows form and get info from a server.:-/

Member Avatar for mundetas
0
76
Member Avatar for mundetas

Hey can anyone please help me :S . I have created a user table with different levels for instance type 0 to 2. If the user is type 1 then a certain page will open . I have placed my values in sessions then used a condition to verify. Please …

Member Avatar for mundetas
0
90
Member Avatar for naekur

I'm using the PHP Swift Mailer library ([url]http://swiftmailer.org/[/url]) to send email to users. Following their documentation about sending embedded images ([url]http://swiftmailer.org/docs/embedding-dynamic-content/[/url]) I have the following code the send images. The problem is that the images aren't sending so I'm guessing that I haven't actually created them or stored them in …

Member Avatar for Josh Connerty
0
156
Member Avatar for ramesh_

Hi All, Curretnly, i have drop down /select box, where i can choose an option (title) from drop down. I need select box to be replaced by input box where i can enter text (title) manaually. I have part of code below. [COLOR="Red"]ANY HELP WILL BE HIGHLY APPRECIATED...[/COLOR] [CODE] $query …

Member Avatar for darkagn
0
74
Member Avatar for jojogirl

I can only see about 4 lines of code...not the actual php coding. I can't make small changes to my own files. How can I view my code and why did they do it like that? Shouldn't you be able to view full coding in server files? :( Feeling helpless

Member Avatar for almostbob
0
129
Member Avatar for rbartlett

I've recently developed a site using Joomla (PHP). The problem occurs when an IE6 user clicks on a link to a component item within the site. An error message is displayed saying IE can not display the page. All other links work in IE6, it's only when the link is …

Member Avatar for SimonMayer
0
101
Member Avatar for DaveyMoyes

Hi All, iv been a member here a few months now and have been helped greatly in the past & would appreciate some pointers please. I have been given an xml document & have been tasked with extracting information from it. an example of data held in the xml file …

Member Avatar for rskelley
-1
121
Member Avatar for DaveyMoyes

Hi all, Im looking into an xml file and trying to understand how i extract data from the xml file using a php script. an example of data that i would like to <enquiry_number>000001</enquiry_number> <product_code>HPI11</product_code> Im thinking i need to use a GET function but not sure how I would …

Member Avatar for ShawnCplus
0
65
Member Avatar for SgtMash

Hi can anyone tell me what's wrong with this? Thx in advance. [code=php]$meta_tags = '<meta name="keywords" content="' .$meta_keywords' . "> <meta name="description" content="' .$meta_keywords . '">';[/code] Its throwing the following error: PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING

Member Avatar for Airshow
0
88
Member Avatar for gagan22

Hi all, I am making a form in which i have many fields. Let me explain: In this form there are two radio button and one field for email text box and another field for name text box. Now i want that if i will select first radio button from …

Member Avatar for ryuslash
0
82
Member Avatar for Hugo Brand

Hi I need some help with the following problem: This is the source code: [CODE]<html> <body> <?php //Retreiving mail messages from mail server $server = 'localhost'; $port = 110; $mail = imap_open("\{$server:$port/pop3}INBOX", 'admin', 'password'); ?> </body> </html>[/CODE] This is the error message (exception): Warning: imap_open() [function.imap-open]: Couldn't open stream \{localhost:110/pop3}INBOX …

Member Avatar for Hugo Brand
0
1K
Member Avatar for manojjena1982

Fatal error: Call to undefined function mcrypt_module_open() Please help me to fix it.

Member Avatar for pritaeas
0
78
Member Avatar for schaef2493

I'm converting an old Smarty template setup into strict HTML/CSS + PHP. Can someone explain what the snippet of code is doing? [CODE]$grading_periods[gps].grading_period [/CODE] Here is the line of code that assigns it. [CODE]$tpl->assign('grading_periods',$grading_periods);[/CODE] Thanks

Member Avatar for cwarn23
0
83
Member Avatar for NoID

Hello Guys, I have bult a php site, and going live soon some questions first of all from what i read i need to have a .htaccess file in which it has turn of register_global and disable errors do i need to put anything further? I also have a admin …

Member Avatar for cwarn23
0
139
Member Avatar for Rui Russo PT

CODE ERROR: Parse error: syntax error, unexpected T_STRING in.... CODE: [code=php]if(int strcmp ( string $x_password , string $x_password_conf) != 0) { $erros=1; $erro_conf_password = 'As passwords n&atilde;o coincidem'; }[/code]

Member Avatar for pritaeas
0
34
Member Avatar for rajeshsprabhu
Member Avatar for NoID

Hello Guys, i have the following .htaccess file, [code] php_flag display_errors Off php_flag display_startup_errors Off php_flag log_errors On php_flag magic_quotes_sybase Off php_flag magic_quotes_gpc On php_flag register_globals Off php_value error_log /home/sites/mydomain.co.uk/public_html/err_ors/php.txt php_value error_reporting 2147483647 Options All -Indexes php_value disable_functions phpinfo ErrorDocument 404 /404page.html [/code] I then did a test error so …

Member Avatar for NoID
0
88
Member Avatar for Dalty80

Hi, I'm creating a basic CMS using PHP and MySQL and i'm struggling to get the checkbox information from my html page across into the database. I want the values to appear as binary 0 or 1 values, any help would be greatly appreciated thanks html document is written as …

Member Avatar for wilch
0
90
Member Avatar for ayesha789

This is a page name search.php [CODE=html]<form action="/ap/demo_paging1.php" method="post"> <input type="text" value="Enter Site ID" name="a" class="textfield_effect" maxlength="30" onfocus="this.value=''"> <input type="submit" value="Search ID " /> </form> [/CODE] and I post value a to another page name demo_paging1.php when I put Query [ICODE]WHERE SiteId REGEXP '$a'[/ICODE] It does not show me the …

Member Avatar for ayesha789
0
423
Member Avatar for vanessia_1999

I am trying to make the image proportionate so that it does not look pixelated. Some of my image look nice but others look pixelated. Is there a way or a code that I can use to make all my thumbnail images proportional from the original image or something like …

0
71
Member Avatar for revatijadhav
Member Avatar for verbob

Heres my code, which is in the head section of the page(yes, its saved as .php): [code] <?php if (isset($_GET['category'])) { if ($_GET['category'] == "property" ) { $property_link = "<span>Property</span>"; $rentals_link = "<a href="listingstest.php?category=rentals">Rentals</a>";} else { $rentals_link = "<span>Rentals</span>"; $property_link = "<a href="listingstest.php?category=property">Property</a>"; } } else{ $property_link = "<a href="listingstest.php?category=property">Property</a>"; …

Member Avatar for verbob
0
111
Member Avatar for karin21

hi guys, i have working on this simple cart script,it goes like when selecting the product in combobox it will display the details of the product into the textbox, i can display the details but my problem is when i select another product the previous selected product was replaced.. what …

Member Avatar for karin21
0
148

The End.