39,402 Topics

Member Avatar for
Member Avatar for IrishHenshin

Hey so basically as the title suggests I want to develop a PHP website on my Mac, the site will not be hosted on my laptop but will be hosted on an Irish web hosting server. Anyway I am wondering what is needed to develop on the Mac? I just …

Member Avatar for IrishHenshin
1
118
Member Avatar for pabzzmike

hello, i have a php/mysql vehicle database with fields make, model, price and year. in my webpage ALL database records are displayed by default using the select command in a table. i would like add a filtering functionality on all 4 fields as such i have an arrow selector on …

Member Avatar for Will Gresham
0
102
Member Avatar for Raymond_Seger

Okay, first, i'm new on this website. Nice to meet you all :P My english is not perfect but i believe you guys can understand what i am trying to say. Ehem... Okay, i have this problem. I have the knowledge of programming (class, variables type, you name it. I …

Member Avatar for Raymond_Seger
0
109
Member Avatar for whitestream6

I got arrays working first time! :) This is the website's source code, the file is testing.php. Source code: [ICODE]<?php $data = array('test'=>'testingpage', 'test1'=>'test1a', 'cars'=>'mycarpage', 'php'=>'hypertext processor'); // echo http_build_query($data); // foo=bar&baz=boom&cow=milk&php=hypertext+processor // test // echo http_build_query($data, '', '&amp;'); // foo=bar&amp;baz=boom&amp;cow=milk&amp;php=hypertext+processor // include("http://mywebsite.localhost.com/test.php/"); ?> [/ICODE] and when typed in the …

0
45
Member Avatar for crazy4fun

I'm new to this technology. I'd be glad if somebody help me in starting this and guiding me where to start? and how to start? to learn this new technology.

Member Avatar for crazy4fun
0
153
Member Avatar for bsjy

I have been trying to use one of the many ajax autosuggest code snippets available on the web to help me with a table server scheduling form. My scheduler can find the people by their last name, and I can auto-suggest that. The database would like to record the server's …

Member Avatar for bsjy
0
113
Member Avatar for Loony064

Hi everyone I hope someone can help me with this as its rather urgent. I have to create a template for a PHP based website. I won't be doing the PHP coding as there is another programmer who'll handle that. I basically need to create the layout of the pages …

Member Avatar for Loony064
0
136
Member Avatar for DealthRune

I'm making a PHP forum script But, when ever i try to add a new topic it gives me this error: [QUOTE]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc) VALUES (Test, General …

Member Avatar for DealthRune
0
95
Member Avatar for dmorrison

[CODE]include"../../pages/config.php"; $selectrow = mysql_query("SELECT * FROM members"); $query = mysql_fetch_array($selectrow, MYSQL_ASSOC); //Run business removal if ($query['Enable'] == "true"){ if ($query['autoRemove'] <= "0"){ $removeSQL = "DELETE FROM AccLink WHERE autoRemove <= 0"; mysql_query($removeSQL); echo "Business Removed. {$query['username']}<br>"; } $remove1 = "Update AccLink SET autoRemove = autoRemove -1"; mysql_query($remove1); echo "Run Sucessfull …

Member Avatar for somedude3488
0
131
Member Avatar for wd3bbas

hi,,,, my problem is : i need print out php file but the size changed from pc to another i need to print the file in A4 size

0
62
Member Avatar for goldy736

hi, i doubt whether this is possible , if it is possible i ll be delighted . I have a form of php array , with a submit button passing the values , this submit button is so ordinary , so i want to change the look and feel of …

Member Avatar for goldy736
0
272
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
467
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
110
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
313
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
325
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
655
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
133
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
108
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
107
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
110
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
68
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
82
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
126
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
133
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
79
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
94
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
158
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
76
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
132
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
104
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
123
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
68
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
91
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
84
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
80
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
85
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
142
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
36
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
90
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
94
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
433
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
74
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
114
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
157
Member Avatar for Takkies

I have tried to get my php scrip to work but it doesn't. can someone maybe help me to get it working please. Here is my script: [code=php]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <?php if(isset($_POST['mail'])) { $email_to …

Member Avatar for tiger86
0
83

The End.