39,320 Topics

Member Avatar for
Member Avatar for mahul000

Here is a problem faced by me while handling the GET request method : suppose the login form has user-id and password fields as text boxes. now after clicking on "sign-in" button the address bar of the following page(i.e the homepage of a particular member) shows: <serverURL>.php?id=<someID>&pass=<somePass> - where "id" …

Member Avatar for Puckdropper
0
120
Member Avatar for alvin_aldrich

Hi everyone, Im a bit new in PHP and i heard it is similar already to java in the sense that its already object oriented. I was wondering if there are some free codes that does persistence on the database ( something that returns DTOs instead of the usual resultset). …

Member Avatar for alvin_aldrich
0
289
Member Avatar for michael123

I have php code that retrieve data from mysql DB, and print it in html table. [PHP]<? print "<table>"; $result=mysql_query("select fd1,fd2,fd3 from tbl"); for ($i = 0; $i < mysql_num_rows($result); ++$i) { $line = mysql_fetch_row($result); print "<tr><td>$line[0]</td><td>$line[1]</td><td>$line[2]</td></tr>"; } print "</table>"; ?>[/PHP] I have no problem to implement above code, this …

Member Avatar for mmonaco27
0
198
Member Avatar for vssp

Hai friend I am using thirt party open soucre in php to mail finction. I want to add additional functionality to move mail to folder. I want add new menu add new folder and select the mail and move to the new folder . seelcted mails are move to that …

Member Avatar for mmonaco27
0
103
Member Avatar for Mushy-pea

Hello all. I decided to use some PHP scripts on my website recently. :p I know all you need to do is write a .php file with PHP code embedded within (<?php ?>) tags, then upload it to your host. What I was wondering is, does the code stay in …

Member Avatar for mmonaco27
0
194
Member Avatar for kibanga

I have a class and defined as follows: [PHP] class theclass { var a; var b; function seta(x) {this->a=x; } function setb(x) {this->b=x; } } global $myclass; $myclass=new theclass; [/PHP] This is saved in a [B]fileone.php[/B] Then I use it in the fisrt script file as [PHP] include_once("fileone.php"); global $myclass; …

Member Avatar for kibanga
0
145
Member Avatar for cjm771

For some strange reason I am having problems with sessions, ainly in safari I believe which is wierd considering php is a server-side programming language. anyways, when a person goes to /cp (control panel) for example, it redirects them to login.php?url=/cp. then they login, the sessions are created, and then …

Member Avatar for digital-ether
0
566
Member Avatar for nandox5

[B]Parse error[/B]: syntax error, unexpected T_STRING in [B]/home/intel1/public_html/ccahs/myspace/mainfile.php[/B] on line [B]16 Any help?... code: [/B][php]<?php if ( !defined('XOOPS_MAINFILE_INCLUDED') ) { define('XOOPS_MAINFILE_INCLUDED', 1); // Physical Path // Physical path to your main directory WITHOUT trailing slash define('XOOPS_ROOT_PATH', '/home/thedemo/public_html/ccahs/myspace'); // Virtual Path (URL) // Virtual path to your main directory WITHOUT trailing …

Member Avatar for nandox5
0
184
Member Avatar for zippee

Is there anyway I can implement user authentication, such as Sender-ID in php mail function? I like to have email send out from my mail server (from me to clients) as well as email send by users through my online form (to me) to be authenticated.

Member Avatar for dkittell
0
484
Member Avatar for tzan2833

Dear all I want to populate a few drop down boxes using PHP. However i have tried many examples i found from the web but the select box does not get any values. Below i have one example i have tried. ********************************************** <?php $link = mysql_connect("localhost", "root", "password") or die("Could …

Member Avatar for pritaeas
0
178
Member Avatar for EnderX

I am attempting to track and record information in a specific php file used where I work. The file is not my own work originally; I inherited it from my predecessor in the position. I am somewhat familiar with PHP, but not an expert. Additionally, I am still a newcomer …

Member Avatar for EnderX
0
178
Member Avatar for puddin

[B]Good Day, PHP Members HELP W/DB Images[/B] I am desperately trying to allow the user to put selected images into the database and than view them in the photo gallery. If you know the method please tell me. I have tried for 3 days. I have in my database table …

Member Avatar for darylcharm
0
175
Member Avatar for dss

Hi, I had made a phpbb dicussion forum section. I had alreadt edited the logo. But i am not able to edit its footer link. and the outlook and color combination. overall i need to customize the look of my phpbb forum. I had many question: 1. How to change …

Member Avatar for dss
0
253
Member Avatar for xgmx
Member Avatar for vssp

Hai Friends I need another clarification GD lib. I want to create the new image using GD lib. I user select one immage and set the dimension values and press enter the new immage the given dimension value Please send me any sample code How to create the new image …

Member Avatar for joelgreen
0
157
Member Avatar for SirHoliday

Hey I have a website ( [url]http://www.ppltalkin.com/[/url] ) and the administration panel is powered by [I]cPanel[/I]. I want my members to be able to apply for an email address and have one automatically created for them on the spot! I have squirrel mail installed and I have a cPanel password …

Member Avatar for joelgreen
0
282
Member Avatar for anamerican

I have a tell a friend page done in PHP adnd I'd like to have it so that they can't edit/change the message only add their email & friend email...and not be able to add spam to it. and I'm pretty new at PHP so Thanks in advance for any …

Member Avatar for StatiX
0
105
Member Avatar for Techscorpio

Hi, I am trying to develope a PHP script which will automatic startup for virtual machines under Microsoft Virtual Server 2005 r2 but it failed due to COM object saying Source unknown But the same thing when i tried through VB script it works fine. [U]VB script:[/U] Set objVS = …

0
90
Member Avatar for petzoldt01

Hello, I am sort of new to PHP programming. I am very familiar with C++, but i seem to be having some stupid little problems in PHP. The code I am writing is to validate the information from a form and then email the information in the form to an …

Member Avatar for Puckdropper
0
94
Member Avatar for kibanga

I am learning to set up a cookie and assign a user_Id to whoever visits my website. I want to keep a record of all user IDs in mySQL database. I tried something like this: [PHP]if(!isset($HTTP_COOKIE_VARS['user_id'])) { $cart_id = md5(uniqid(rand())); $COOKIE=setcookie("cart_id", $user_id, time() + 14400); if (!$COOKIE) { echo "To …

Member Avatar for Puckdropper
0
241
Member Avatar for accioportkey
Member Avatar for Puckdropper
0
124
Member Avatar for Woobag

Ive done several echo's and such to make sure info is in my variables before. When i do the first update on the page, i think the second one is running too. Either way, my record is being deleted for whatever reason... Aside from some help with the current setup, …

Member Avatar for Woobag
0
98
Member Avatar for pillow

I have installed apache 2.2.3 and PHP 5.1.5 on Win XP (IIS is also set up on different port) I have try the sample code from php.net; however, it keeps giving me error on opening the file please help. [php]<?php $file = "data.xml"; $depth = array(); function startElement($parser, $name, $attrs) …

Member Avatar for pillow
0
160
Member Avatar for rfulky

How can you send a username and password combo to a page and login by using [fsockopen] along with [fputs]. i.e. can you log into another website from your website using these commands. Lets say you are trying to log into your yahoo mail account or say your online banking …

0
102
Member Avatar for silverdollar

I am trying to find a good way to parse the input from a textarea into HTML (including line breaks etc) Basically the user needs to be able to not enter markup in order to keep the format they enter their data in. For instance if they enter: Here is …

Member Avatar for silverdollar
0
182
Member Avatar for rfulky

How do you send data to text box on another website from your website. i.e. send data to at google search text box from your website. Thanks, rfulkly

Member Avatar for stymiee
0
61
Member Avatar for chaosdirector
Member Avatar for big_k105
0
146
Member Avatar for vssp

Hai friends, I am very confused this task. please help me. if five banners are stored in one location , I want to displayall the banners simultaniously in my application. How to rotate the webpage top banner ? In my application i am getting the immage details using database. Please …

Member Avatar for vssp
0
87
Member Avatar for kibanga

I have files of several with geographical information of several places and animals that i want to be accesed by through the menu. Here is an outline of my project; I have simplified it by taking only parts that are relavent for my questions below. I have a PHP class …

0
167
Member Avatar for baysiqq

[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>Login Processing...</title> </head> <body> <?php $username = $_POST['username']; $password = $_POST['password']; if( $username != null or $password !=null) { $conn = @mysql_connect("localhost", "uesrname", "pass") or die("could not connect"); $rs = @mysql_select_db( "siqq_web", $conn ) …

Member Avatar for blacksmoke
0
104

The End.