38,020 Topics

Member Avatar for
Member Avatar for shadwickman

Hello, I'm using easyPHP to locally test some scripts I'm building, but I came across a problem that I can't seem to resolve. Within one of my PHP scripts, there's a segment where I end the PHP ([icode]?>[/icode]) and output a form in HTML, then resume the PHP section ([icode]<?php[/icode]). …

Member Avatar for phpbeginners
0
462
Member Avatar for xuexue

i now have a web server and it is running in linux esp. opensuse 11.1, now my problem is that when i view the site, it states an error: database could not connect, what seems to be the problem and how can i resolve it?

Member Avatar for xuexue
0
105
Member Avatar for sam023

Recently only i cam eto know about Mysqli.. . . i was wondering What Esp. does Mysqli have..?? :O i have a store procedure.. which i can call in Mysql..!! than why should i use Mysqli.?? :O One more thing i want to ask.. $link=mysql_connect($server,$serveruser,$serverpassword,0,65536); what two parameters used for..? …

Member Avatar for somedude3488
0
207
Member Avatar for seangdy

I write code as below: [code]<html> <title>Hanuman Database</title> <link href="../style.css" rel="stylesheet" type="text/css" /> <div align="center"> <body> <?php session_start(); $dbhost='localhost'; $dbuser='hanum3_hanumandb'; $dbpass='hanuman2009'; $conn=mysql_connect ($dbhost, $dbuser,$dbpass) or die('Cannot connect to the database because: ' . mysql_error()); $dbname='hanum3_HanumanDB'; mysql_select_db($dbname,$conn) or die('Error, cannot connect to database'); ?> <form id="form1" name="form1" method="post" action="create_user.html"> <div align="center"> …

Member Avatar for seangdy
0
314
Member Avatar for srisree

Hello PHP Parse error: syntax error, unexpected T_VARIABLE in /home/mysite/public_html/guestbook/getdrawings.php on line 1 [CODE]<?php $dir=opendir("data"); while ($file=readdir($dir)){ if(substr($file, -3) == "xml"){ print 'data/'.$file.'|'; } } closedir($dir); ?>[/CODE] Need your suggestions to solve this problom regards

Member Avatar for phpbeginners
0
636
Member Avatar for cali_dotcom

hi, i'm trying to edit something on a site i didn't code myself so i downloaded the files and set them up on a virtual host on my local machine. i am using wamp server with php v 5.2.9-2. the problem is when i go the page on my local …

Member Avatar for cali_dotcom
0
131
Member Avatar for gcombe

ok.. I know how to loop through an array and get the rows to build a table across the page.... that is pretty simple... but I need help creating a table on the fly that lets me pull the values and go verticle by game.. meaing the out put would …

Member Avatar for SimonMayer
0
102
Member Avatar for tirivamwe

i am doing my final year at university and i am supposed to do a project dissertation. Can someone help me with a project topic. I would prefer a project that is inclined to php or web development

0
105
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
122
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
128
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
153
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, 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

The End.