39,320 Topics
| |
I'm still very new to this but is there a way to control content (text and/or image) using PHP and a specific date? For example I need to add "New Store Hours" to a listing of locations for a client website, however I don't want to have to go back … | |
i have a page which list all the products and there are checkbox to do muiltiple deletion. but there is an error on line 62 for the $delete [CODE]<html> <head> <title>delete</title> </head> <body> <? $objConnect = mysql_connect("localhost","root","booo33384") or die(mysql_error()); $objDB = mysql_select_db("db-test"); //$strSQL = "SELECT * FROM products3"; $strSQL = … | |
I have a variable [ICODE]$topic = $POST_['topic'][/ICODE] that is entered by the user, it can possibly have spaces. I want to create a table based on this variable. Right now the code creates the table but only uses the first word. [CODE] $create="Create TABLE $topic (I know this part works)"; … | |
<?php $res = mysql_query("SELECT * FROM users WHERE username = '$user' LIMIT 1"); if(mysql_num_rows($res)>0){ $d = mysql_fetch_array($res)){ if($pass == $d['password']){ session_regenerate_id(); //security for changing permissions $_SESSION['user_id'] = $d['user_id']; $_SESSION['usertype_id'] = $d['usertype_id']; switch($d['usertype_id']){ case 1: $loc = "nurse.php"; break; case 2: $loc = "paramedic.php"; break; case 3: $loc = "doctor.php"; break; … | |
i'm newbie in php. need more help to finish my project..i have 3 page: 1st page : status button(i'm using image button for each status and have 5 status button) code for image button: [CODE] <a href="negeri-semak.php" ><INPUT TYPE="image" value="" src="pictures/icon/image005.gif" width="230" height="37" border="0" id="RAKAN MUDA" onclick="javascript:this.form.submit()" name="BTN" alt="RAKAN MUDA"></a> … | |
Error messages should be displayed within the html if certain fields on my member register form are left empty, if they are invalid types or if the username entered already exists. I've tried adding a record with an already existing username and it does direct to the member registration failed … | |
Hi, How to know the cron is working or not. i am getting mail from cron but how to know whether the functionality is working or not. i am getting mail like this [B]Cron Daemon [email]root@ip-xyz.ap-southeast-1.compute.intern[/email]al to me show details 4:59 AM (11 hours ago) --2012-01-10 04:59:01-- [url]http://www.xyz.com/reports/status.php?provider=6[/url] Resolving [url]www.xyz.com[/url]... … | |
i am trying to create google adword sandbox account and display the information returned by sandbox for it i hv installed google adword library and installed it.and made a code index.php which is[CODE]<?php require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; $username = "rmvd for security"; $password = "rmvd for security"; $currencyCode = "USD"; $developerToken = … | |
hi, how can i select only unique string out of a series of iterating strings? for example, i have this folder which contains number of files with quite long names. i have used readdir() to find all the files. assume that the name of the file has an format. eg: … | |
Hi All, Need your help. I'm trying to create a small movie DB for my personal use. I have a input form from where I'm collecting all the data as an array and processing through PHP to MYSQL. I have three tables where I have tried to create many-to-many relation … | |
I need some help with radio button data and how to code it in PHP to insert the data into MySQL. Here is my [B]Form Code[/B]: [CODE]<form method="post" action="update.php"> First Name: <br /> <input type="text" name="fname" size="35" /><br /> Last Name: <br /> <input type="text" name="lname" size="35" /><br /> Phone … | |
Hey guys New to PHP and programming in general. I am writing my first PHP form to spit out some "instant" answers based on user input. Basically, i want the form choices to change automatically(without page reload) depending on the choices made before it . I do not know AJAX … | |
This is partially in reference to these threads: [url]http://forums.cpanel.net/f5/fastcgi-fcgid-php-ini-per-user-100133.html[/url] [url]http://forums.cpanel.net/f5/individual-php-ini-files-php-fcgi-php-cgi-160398.html[/url] I more or less followed the instructions there and I came up with the following settings: [b]/home/username/public_html/cgi-bin/php.fcgi[/b] [code] #!/bin/sh export PHP_FCGI_CHILDREN=1 export PHP_FCGI_MAX_REQUESTS=10 exec /usr/local/cpanel/cgi-sys/php5 [/code] [b]/usr/local/apache/conf/userdata/std/2/username/custom.conf[/b] [code] AddHandler php5-fastcgi .php Action php5-fastcgi /cgi-bin/php.fcgi [/code] [b]/usr/local/apache/conf/includes/pre_virtualhost_2.conf[/b] [code] Action php5-fastcgi /cgi-bin/php.fcgi … | |
Hi every one, i am making a database table which count how much times page reloaded. i have create a variable in session and assign it a value "0"; now i want when page reloaded this value of session variable will increase with 1. how can i do this. please … | |
Hi, I got this function on index.php: [CODE]//user 'logado' ou nao function is_logged() { if(isset($_SESSION['username'])) { return true; }else{ return false; } }[/CODE] And i want to use it on top.php (on top is the banner and the menu). [CODE]<div> <ul class="menu"> <li class="top"><a href="index.php" class="top_link"><span>Página Principal</span></a></li> <li class="top"><a href="inscricao.php" … | |
hey can i transfer pictures through sockets through php? how can i do it if its posible.i want to send n receive pictures | |
i have 3 different table in 1 database.. and i want to let my user see their own profile by using search.. but, my user will divide by those 3 program and their details may be only in one table.. how can i let my user choose their program using … | |
hi m making aregisteration form for employees. n validate its some very basic field. but the problem is that if i enter wrong it shows me the error and says click here to refill as told by me but when i enter the correct data even then it shows click … | |
I have a loop that writes out data for franchises. It works the first time through, but not the 2nd. Here is the page where the data is written out: [URL="http://184.172.137.97/~royl21st/1.php"]http://184.172.137.97/~royl21st/1.php[/URL] Here is the code that spits out the wrong data after the first successful loop. Any ideas? [code] $areaCodeData … | |
Hi, How to change the csv file's header. In my csv file i am having header as name and email. I want to change it with first_name and emailid without any data lose. Please give me solutions.......... | |
Dear All, I am using fpdf to generate a report but one of the field I need to be multicell as the contents can be few lines long. Below is the codes what happens now is that the multicell will be few lines long but the rest of it will … | |
Hello, i am a newbie on php programming and try working on my last project in my school. My program is to compare 2 different xml file, it working well at first. but when i tried to add more xml file to compare, the page keeps telling "Fatal error: Call … | |
I knew radio buttons allow for a single selection, but mine allows multiple button selection. please i need a solution. thanks. | |
Hi all, I haven't changed anything in the config file in phpMyAdmin folder. I don't know why the WAMP server gives me this error. Although everything was working perfectly yesterday. Does anyone know how I can fix this problem? [CODE] You don't have permission to access /phpmyadmin/ on this server. … | |
| Hey guys , i am working on a login page that will only allow an admin login , if the user is part of a trade account or is classed as a customer i would like them to be redirected. [CODE]<?php session_start(); if (isset($_SESSION["superUser"])){ header("location: index.php"); exit(); } ?> <?php … |
Can anyone help me for email message parsing and header parsing for reading multilingual email messages? | |
Hello fellow daniwebians, I seem to have run into a problem echoing MySQL/HTML and am hoping one of you may be able to point me in the right direction. I'm trying to echo portions of HTML(if there is an event for that date) inside HTML that's not echoed, so it … | |
Hello all. I am making a website that requires put reviews into my database. I have restaurant sections. I want to have reviews stores per restaurant. When it comes to mysql data tables i can only imagen having one column for reviews then giving each picture an id to accociate … | |
hi m trying to make a login page. m trying that when username and password is confirmed it shows name of customer with welcome message and further page appears accordingly. this is my code for login GUI [CODE]<!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"> <!-- DW6 --> … | |
I am new new to PHP and would like some help. I have read as much as i could but could not get any help hence why i donot even have code i had tried. Assume a database names "sales" with fields" fieldOne" and "fieldtwo". using sql and PHP how … |
The End.