39,393 Topics
![]() | |
Hello all, For creating dynamic title tags, I tried using [code=php] <title>welcome<?php echo '$pagetitle';?></title> </head> <body> : : <?php : $pagetitle = '$row[2]'; ?> //closing rest of the tags. [/code] I get nothing displayed on title ! So i changed the code to, [code=php] <html> <head> </head> <body> : : … | |
dear frnds, i hace wrote this code to generate unique id for questionnaire and a query to save it into database with two more value (response id and date) individually i have checked and unique id function is working. even insert query is also executing correctly. but when i put … | |
I'm trying to develop a game that can be played by 2 players on different clients, and I can't figure out the mechanism how the server can communicate to both sites for the same game. A move on one browser gets communicated to the server, and the server must reply … | |
Hello friends, I've a category table, the structure is: category{ id int(11) autoincrement, name varchar(255), parentid int(11); } Now a node can have multiple child nodes and grand child nodes. now if I want to get all childnodes and grandchild nodes of a node id what should i do ??????? … | |
I have a PHP script I am trying to convert to PERL and need some help. Here is the code in PHP [code] $store_list_name = $prod[10]; $category = $prod[11]; $sub_category = $prod[12]; $searchfor = $store_list_name . "->" . $category . "->" . $sub_category; $getcat = mysql_query("SELECT * FROM categories WHERE … | |
I want to pass my form data to default file of a directory. For eg:- My default file for a directory is "Default.php". If i give, <form action="Directory"> </form> , then the form data should be passed to "Default.php". Is this possible ?? If so how ?? | |
I keep getting this message what is wrong with my sacript??? Parse error: syntax error, unexpected $end in /home/sites/thefieldinggallery.co.uk/web/contact_form.php on line 65 here is the php script: [code=php]<?php /* subject and email Variables */ $emailSubject = 'Crazy PHP Scripting'; $webMaster = 'info@thefieldinggallery.co.uk'; /* Gathering Data Variables */ $nameField = $_POST['name']; … | |
Hello, all: was wandering, how can I have php create a thumb frame of a movie?? (like youtube where only a frame of the movie appears which then when you click takes you to the movie itself to play...) I am looking to create a small gallery of movies, but … | |
Hi all, How to add google adsence module in Drupal, please can anyone help me, when i integrated then it asking for Google AdSense client ID, register in google adsence , but i have not that client id, please help me for this, i am able to test in the … | |
[code] <?php if(isset($_POST["send"])) { $name = $_POST["name"]; $email = $_POST["email"]; $msg = $_POST["msg"]; echo(" Hello!<br />"); if(empty($name)) { echo(" - There was no name!<br />"); } if(empty($msg)) { echo(" - There was no message!<br />"); } // IF THEIR ARE NOT EMPTY if(!empty($name) && !empty($email) && !empty($msg)) { //code for … | |
ftp_ssl_connect problom i run my php program for uploading file from my server to another server. it works with normal ftp connection but it has problom with ftp_ssl_connect function. it gives me an error u calling an undefined function (ftp_ssl_connect) i read the follwing information on the php.net site about … | |
Hello. I have downloaded some ready projects and i saw that they seperate html from php. They are echoing everything through a class.For example they make a class for <html> tag for <body> etc. This is driving me insane.Whats wrong with just having some classes and then mix html and … | |
Hi! I am using a code to echo a row in a database table using ajax. The code is working correctly. The ajax will send the response text as follows- [code] document.getElementById('outputText').innerHTML = httpObject.responseText; [/code] My question is how can I retrieve individual fields into separate Id's? | |
Hi all, I put some initial values in a form field to help the user, i use php to extract the form data and send it via email. How do i get the initial value in the text field to stop appearing in the email. example, I have a name … | |
Hello.. I couldnt find anything for this topic. I know how to connect to a mysql database and close the connection.But that means that for every script a connection should be established and closed. Is this right and ok for big projects? About 200 concurrent users for example; Having a … | |
I have a string that should control if the checkbox array is checked or not when i open the page... I made a string which contain a value of 0 & 1 and deal with the string as an array if 1=checked note: I retreive my checkbox values from the … | |
Hey, Just wondering how i would go about connecting to a php file from a console based app. Any ideas would be greatly appreciated. | |
if i have file name "file" on my ftp server in some folder and i want to upload a new file with same name "file" at the same folder. so it will create problom or it will modifiy the existing file. i have the following error message 1 Warning: ftp_fput() … | |
I have just installed LAMP and want to create a folder to store all the php and html files. After that run them in [url]http://localhost[/url]. Where and how do i create a folder to store all my files to be executed? Thanks | |
Hello friends, I'm in a serious problem....... I have a change password application for registered users......I've applied javascript to check wheather fields are blanks or not but incase if someone press spacebar in new password and retype new password fields then it accept it . Now I want to block … | |
Hello all, Newbie and running out of steam here. I have a form passing the checkbox value to a db. The db is essentially 2 fields news and id (auto-increment). I'm pretty baffled as how to extract the data. Ideally I would like to give each form submission a unique … | |
I have some simple php code. It worked fine on the old server, but now I am getting an error on the new server. Both former and present servers are Linux. [code=php] <?php function ConfirmationEmail () { $from = "mo@abc.com"; $recipient = "bill@yahoo.com"; $cc1 = $from; $cc2 = "mo@gmail.com"; $subject … | |
hi friends, i want to get backup from MySQL DB by use php code. | |
Well the title pretty much says it all. I'm reading through a php OOP book and I'm having trouble understanding why you'd want to create an abstract class. Can anyone perhaps shed some light on this for me as I haven't found any resources that explain this well enough. | |
A cookie is a flat file that stores tiny bits of information. It is stored on the client’s machine and is passed to the client when they visit your site. Each cookie can store anything from usernames to number of visits to a site. This tutorial will teach you how … | |
I am developing a website which encrypts every user's password with sha1() method and is stored in the database. Now the problem is I want to offer a recover password function for my users. but i dont know how to get the password from the salted string Help me!!! | |
does anyone know a good blog software program? if so shoot me a link Intermountain web solutions. drew Korent. Thanks. | |
hi :icon_neutral: , I want to make a radio button checked if the form is already submitted. The form and output are on the same page. I have 2 (later more) radio buttons and i want the form to 'remember' the state of the button, e.g. insert a checked="checked" text … | |
I use the News-Engine 1.5.1 script in my website. He worked perfectly till now. It was replaced on the server now the MySQL. PHP 5.2.4 and MySQL 5.0.51 versions run on the server. During the run of the site, I get the following error message: Error message: Query fatal error: … | |
Hey everyone so someone answered my question but i need some help some one recommended huggins email program ... the problem is i dont know how to put it on my website could some one tell me how to install it. thanks... intermountain web solutions. drew kornet |
The End.