39,402 Topics
![]() | |
Hi all. I have an application were a user fitt (outside the game) a "ship" and after the full fitt he can save that in a doc file. In that file we'll see 4 fields with vari lines in each of them (not the same fitt for all the ships). … | |
[code=php] if( $rand_num <= $chance ) { //$item_id = mysql_query("SELECT `item` FROM `creatures` WHERE id = '$id_creature'"); $foo =& creature_stats( item, $id_creature ); $item_query = mysql_query("SELECT * FROM items WHERE id = '$foo'") or ('$item_query'); $item = mysql_fetch_array($item_query); echo"You got an ".$item."!"; } [/code] Creature Stats Function: [code=php] function &creature_stats($what_stat, … | |
Hello everybody, I found paging code from [url]www.plus2net.com[/url], but when I implemented there is a problem with $this variable and the error is: "Fatal error: Cannot re-assign $this in C:\wamp\www\Paging\php_paging.php on line 33" This is the code: [CODE]<?php //**************************************************************************** ////////////////////////Downloaded from www.plus2net.com ////////////////////////////////////////// /////////////////////// Visit www.plus2net.com for more such script … | |
Hi, My php script would do a few updates/inserts to a table. after that I would like the rows that have not been affected by the script to be deleted from the database. cant figure out how to do this. any ideas ? | |
I want help. [B]what i do[/B]:I creat three pages 1. login.php, 2. welcome.php, 3.change password.php. when we login(right Id & P/W) welcome.php will open,On that page i have put two option i. Logout, ii.change password.,[U]on clicking on Logout we will logout to enter again we have to enter password.As session … | |
i need to redirect to other page with out using header if it is not possible tell me how can i use header with relative url plz n 10q | |
Hello guys im completely new to php scripting and I am currently seeking a script where users can goto my form page and enter various details I ask for (World of warcraft recruitment Form) .Once that user has completed his application I would like that information bound and stored on … | |
Hello everyone, I have an issue that I can't seem to resolve with integrating phpBB into the rest of my site so that login and session can be intact. Well, for the most part, the whole scheme seems to work at first glance. I noticed that pages that have the … | |
I need some help here I am trying to figure out to set a php file to go to different URLS based on the request it receives. eg this code might make no sense at all I want to code for 6 different referrers. <?php if (($_GET['PID']) != '097641342sjherjy') {header.location … | |
Hi all, I have a project thats was given to me in school but the problem is I don't know anything about PHP but i know a very little about MySQL. I was given three options to use. Two of which are PHP and the other JSC. I hate anything … | |
I've been tring unsuccessfully to find information on what each language, C and PHP, have to offer in terms of working with MySQL. Just wondering if anyone out there has preference for one or the other and why. I understand that PHP is supposed to have alot of built-in functionality … ![]() | |
Hey friends I've a doubt regarding my password authentication code given below If we use `session _start` function one need not use the `cookies` as $_SESSION['user'] = $username; $_SESSION['password'] = $password; functions do the same job that cookies would have done so my cookies code is just a clutter?? Here's … | |
I'm working on a database install/configuration page where the page asks the user for the database credentials, his software credentials, and a few other options and then proceeds to attempt to create and/or populate the database. There are four main sections: Data entry, database table creation, database population (for certain … | |
Could someone help with this question, how to create some PHP code for this, What I want to do is to copy/manage data across from one applications database to another application's database. For example, to copy across the Username Password Address Phone email fields from one to the other. Is … | |
[COLOR=Red] want a php class to take back up and restore of my database (all tables) using posgress with status bar. help me??[/COLOR] ![]() | |
Hey, I've been searching around, having a hard time finding something. Are there any simple scripts out there or something that I can use to generate graphs from information in mysql database tables? ![]() | |
Peace, I tried to replace a string with a string: [CODE] <?php $Msg=$_POST['Msg']; $arrA=array(' ' ,'-red' ,'-blue' ,'-green' ); $arrB=array('</font>','<font color=red>','<font color=blue>','<font color=green>'); $Msg_B=str_replace($arrA,$arrB,$Msg); echo $Msg_B; ?> [/CODE] It works well, but if someone typed "-rEdasddsadasda cccc" not "-redasddsadasda cccc" or "-REDasddsadasda cccc" or anything like that how will my … | |
What is the toll of a function call? Is looping 200,000 times calling a function that performs a small calculation each time a lot more resource intensive than just performing that small calculation inline? | |
i have this code which is supposed to increment a counter on page [CODE] <?php //create a file called counter.txt and upload it to your server //now open the file $fp = fopen("counter.txt" , "r"); //read in the current count $count = (int)fread($fp, 1024); //increment the count by 1 $count++; … | |
Hi When i have the user has to activate themselves option on, the user is not reciving the email conformation and its definitly not going to the junk mail folder... The mass email works fine, but like i said the activation email is not working, can anyone help? Also i … | |
Hi all, I am good in Java.But I dont have any idea about PHP. With this matter in mind please suggest me which to choose(PHP or JSP) to create my own forum. (coding my own forum..not using exixting freeware forum).... What are the pros and cons of using JSP.(I dont … | |
Hey, this is kind of a dumb problem, but I'm stumped by it. I wrote a little script to track my morning bike rides, and I have a time field to put in the time that I rode. Mind you, this is not the time of the day that I … | |
I am trying to create a simple search page as practice for later use, where i search a table "practice" with fields "name" and "married". The user should then be able to search names, and upon submitting the page should display the names alongside the marital status. My problem is … | |
im having problem in my last page.... i dont how to do mathematical equations in php wahuhu... i want to do is multiply the number of units he taken in the enrollment to 306. (20*306) then i'll add it with 6000 hows that... | |
how to add and multiply all the numbers that stored in my database?.. huhu.. i need it asap huhu.. | |
Hello I have a script which have the facility of entering any code to some part of a webpage. I have some some problems with it. When i put some code in the script then their is no error shown. When i try to not use a code and leave … | |
I just finished a php MySQL query. Everything is great, except the date column doesn't format correctly. The date output looks like this: 1175114705 The date column prints from: echo $row['createdTime']; Ideas? Thanks. | |
Hi everyone. I am new to PHP and XML and would like to take the following example xml, [code] <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <shirt> <name>Long Sleved></name> <link>index/1/1</link> <Types> <Type> <name>blue</name> <link>index/1/1/1/17743/60088</link> </Type> <Type> <name>green</name> <link>index/1/1/1/1/1</link> </Type> <Type> <name>red</name> <link>index/1/1/1/2/2</link> </Type> <Type> <name>yellow</name> <link>index/1/1/1/3/3</link> </Type> <Type> <name>orange</name> <link>index/1/1/1/4/4</link> </Type> </Types> </shirt> … | |
im trying to build a rss feed that will work with my software. php code [code] <?php $t = 15; $nt = 15000; $filename3 = "xrssdone.txt"; $content3 = file("xrssdone.txt"); $done = explode("|",$content3[0]); $num = explode("showtopic=",$_GET["newlink"]); $nummin = explode("&",$num[1]); echo $nummin[0]; for ($i=0; $i<$nt; $i++) { if ($nummin[0] == $done[$i]) { … | |
I just wrote my first mail script in php. It is working well, but I cannot control the senders email address or name. I would like to at least choose senders name. Here is the code I am using [code] <?php $email=$_POST['email']; $subject = "New Mailing List Signup"; $body = … | |
I have a php report page I'm working on that's giving me some problems. It's designed to be used on multiple systems; as far as I know, all of these systems are identical. On the system I did development on, the page displays information as needed. On the others, I … | |
How can I have a post quick reply textarea , just like the one on daniweb , in a phpbb 2.0 ? Do you know/have a mod that does that ? | |
We've got a dev linux box here running an older version of apache and php4. Can I upgrade just php5 without changing apache. Seems the guides I've seen assume you are installing both. | |
![]() | [code] <?php $smtp_server = "mail.webhostasp.com"; $port = 25; $mydomain = "domain.com"; $username = "info@domain.com"; $password = "password"; $sender = "info@domain.com"; $recipient = "no-one@domain.com"; $subject = "Test"; $content = "Bla bla bla"; // SMTP connection $handle = fsockopen($smtp_server, $port); fputs($handle, "EHLO " . $mydomain . "\r\n"); // SMTP authorization fputs($handle, "AUTH … ![]() |
Hey, I've taken over a php based website from another developer (ugh!)... The website uses two include files to display ads down both sides of the page. Now the client wants these ads to display in Random positions.... So, Its easy enough to take the ad text and place it … | |
I want to construct a web page with language flags. The user clicks his flag and the web page is then displayed in his language. In VB6 I would achieve this with a resource file. Does HTML, PHP or CSS have something like that or must I create a web … ![]() | |
Hello , I want to develop a RFID Middleware (RFID READER and TAG).Is it quite feasible to develop the RFID Middleware application on php.I have enough worked on php web based application.But I did not do wotk on specific application like RFID Middleware development.So I need your suggestion that is … | |
hi, I have two php file: 1. list.php 2. delete.php On the list.php, there is a link word delete which refer to the delete.php and also send the id of the current record to the delete.php. On the delete.php I have the following code: [CODE] <body> <?php //must ask for … | |
I have an issue I want to have a php file set on my server that appends to a csv file and also reads and queries that csv file for a column. eg: I want a csv file with the following columns Email, First, name I want the php to … | |
i have my url structure rewrite from index.php?act=games&task=play to mysite.com/games/play.php but when i try to add a $_GET value to the end of the url it doesnt work. i want when a user clicks a game for it to be like mysite.com/games/play.php?game=534. but when i call the $_GET['game'] it does … | |
Hi Experts, I want to know what is the best screen resolution for a website. My website is a technical resource portal. Based on the best pratices please suggest what to follow. Is 1024 x 768 a standard now? Right i have a free flow CSS but it is not … | |
Hello guys,does anyone here know how to make tabs with php?Could you please post some tutorials or links for this? Thanks.. | |
Hello all! I am using some javascript code to change some classes of an external stylesheet on the fly. Is there any way (a variable perhaps?) to access the changed stylesheet so that I store it afterwards with php, or should I rebuild it again (according to the options of … | |
Need help to set up a few files. I want to use a php script to detect server status, and javascript to automatically redirect to a server status page [on another server obviously] (only if the server is down) immediately rather than get a 404 error. I have a php … | |
Hi, Something that would be really useful for a new project im working on would be to have automated browser titles using some php code in the <title> tags. The only way I can think of doing this is by having the php code read the url im using for … | |
Fairly new to this, and looked around on the net and didn't readily find my answers. I am setting up picture pages, thousands, and want to be able to change header or footer information down the road as the site expands. I am on godaddy non windows hosting. I need … | |
Peace, I wrote a PHP File Contains a login form, If the user logs in a field will be inserted into the MySQL DataBase, So I want to make an automatic logout after 20 minutes idle. I wrote: [CODE] <?php session_start(); require("Connecting_Config.php"); $unm=$_SESSION['user_name']; $current_date=date("i"); //Only Minutes $gt_lastactivity="select * from logs … ![]() | |
uhmm i need ths for my project huhu... its like thisi made a login script and work so fine.. i put the account details in the database... and now i want to do is whenever i login all the information about the one who login will be display in the … | |
I want to create an application which passes a text message to a server trough an ssl port I couldn't use curl and I need to encrypt using public key. I expect anybody to help me. Thanking You | |
I am using <?php include ('/php/header.php'); ?> in my php index file. Everything shows up in Dreamweaver, but as soon as it hits the web server and I go to access it absolutely nothing shows up. All I get is a blank page with no source code. HELP! |
The End.