39,326 Topics
| |
Hello i have checkbox like this at update form but it's appear unchecked [CODE]<input type="checkbox" name="years[]" id="years" value="<?php echo $key; ?>" > [/CODE] i want if it has value at database appear checked any help? | |
I have a code that gives me a unix time ie)1277851200 How would i be able to convert that to x minutes x seconds and so on. (real time) | |
I want to print a particular <td> only in php/javascript need suggestions | |
Hi all, I have been working with shadowbox in joomla which was working correctly but now it is not working as it use to.When i click on a hyperlink in a joomla page the content regarding that link should be shown in the shadowbox,but now it is showing in a … | |
Hi there, I was wondering if anyone can resolve my problem. Just to give you a heads up. I have a page with many input fields like textboxes, select etc. All these input fields are on one line in a table row. The number of rows depends on the amount … | |
Hello guys, i need some idea or someone to give me right directions how to make something like this: if user want's to insert a proxy site in database he got to backlink from proxy site to my proxy list. that's made at atproxy and centurian.com/submit.php i hope you can … | |
Hey, I created a simple user register script which later stores the data in a mysql database. What I did initially was that a small code would count the number of rows in the database and then automatically increase the variable by 1 to set the user id. For example … | |
I'm trying to create a simple members only section. With the following code, I'm able to log in and get redirected to a page (that simply says: "hello") if the login is correct. If I then copy the URL from the page to which I was redirected, open up IE, … | |
hi all; can anyone tell me where can i find a good example for this; i have this whole code [CODE]<?php $name = $_POST['name']; $sender = $_POST['e_mail']; $phone = $_POST['phone']; $subject = $_POST['subject']; $message = $_POST['message']; $email = $_POST['email']; // Insert data into hotelinfo table $sql="INSERT INTO mailRecord(name, sender, phone, … | |
hi have the next code[CODE] <?php $search="ala salsa portocala nueve vacas"; $where="texto ala salsa nueve texto portocala verde nueve"; $search = explode(" ",$search); $old_kw = array($search['0'], $search['1'], $search['2'], $search['3']); $new_kw = array('<b>'.$search['0'].'</b>', '<b>'.$search['1'].'</b>', '<b>'.$search['2'].'</b>', '<b>'.$search['3'].'</b>'); $where = str_replace($old_kw, $new_kw, $where); echo $where; ?> [/CODE] because i just started to learn … | |
Hi all , I have collected php shell scripts on various sites on web. However the only script which works is this : $ php helloWorld.php [CODE] <?php $var = "honey"; print "hello $var"; echo "world"; ?> [/CODE] Any other script which has different commands doesn't work on the system … | |
Some simple php code; [code=php] $dir = '../images/'; $file = $_GET['name']; // Last, First M. "nickname" $f = $dir.$file; list($width, $height, $type, $attr) = getimagesize($f); echo $f."<br />"; echo "width ".$width."<br />"; echo "<img src='$f' $attr title='getimagesize example' />"; [/code] while the last echo line displays the image correctly (and … | |
Hi, Anyone please help out. By using select query i am getting this following output. [B] itemname idno name price A B01 sa1 10 B B01 sa1 40 C B01 sa1 50 D B01 sa1 100 [/B] But i don't want this(as above one) type of display in my browser. … | |
I want to create a dropdown menu in my main menu. It should look like this: [URL="http://www.freeimagehosting.net/uploads/73ebcb47c3.jpg"]LINK to the photo[/URL] But I don't know how to get it work, that it should count the links (categories) inside the menu. If its more than 6, than it should put the 7th, … | |
I am currently working on a site that requires periodic download of data from other sites. For this I have been trying to find some way to make the server automatically download the data every few hours. Any suggestions on how I might get started? Right now we have to … | |
Hi, I have a site with a login form for users and administrators to enter their details. Anyone can show me simple code how to separate between admin login and user login because i'm new in php.I uses PHP object oriented.Anyone can show me simple tutorial and easy to understand … | |
I am having a problem with the execution of this particular php page. I'm using a wamp 2 server on windows7. The output is always "Unable to Open Database", no matter what changes I make to the code. Please help! I am a newbie in php! The php code is … | |
I think I must be blind ;) [CODE]$Title = $_POST['title']; $Category = $_POST['category']; $Content = $_POST['article']; $Tags = $_POST['tags']; $Description = $_POST['description']; //error below... $Title = addslashes($Title); //error above... $Category = addslashes($Category); $Content = addslashes($Content); $Tags = addslashes($Tags); $Description = addslashes($Description);[/CODE] I declared title the first time... $Title = $_POST['title']; … | |
Hi, I am having a problem in building a query.I want to get first 10 users that has 1000 positive feedback my table structure is something like this id(primary key) userid(name of the user) raterid(name of the rater) rate_type(type of rating for example +ve,-ve or neutral).I have used many queries … | |
Hi,I have 6 checkboxes. name,father name,city,state,dob,education What i am trying 1)if user check name,father name its shows only checked item [B]name[/B] [B]father name[/B] Mr. a Mr.abs Mr. B Mr.bcd ([B]table structure like that[/B]) 2)if user check name,father name,city its shows only checked item [B]name[/B] [B]father name[/B] [B]city[/B] Mr. a Mr.abs … | |
friends i want to create a array which contain no of unique key , it also need store in mysql database , which i have done on my wamp server but when i m running this code on web server online i getting that my page will hangup .......so please … | |
here is my code for read message but error display in my page Notice: Undefined index: message in C:\wamp\www\.....m\Mailbox\read_message.php on line 6 anyone help me for this problem.how to solve it. [CODE] CREATE TABLE `messages` ( `message_id` int(11) NOT NULL auto_increment, `from_user` varchar(65) character set latin1 collate latin1_general_ci NOT NULL, … | |
I'm new to using dreamweaver, earlier used simple text editor.Can someone please help me as to from where should I learn dreamweaver?I'm well-versed with Php basics. REgards | |
I have a problem, submit button is not working on index.php and if I copied into another page it works fine.. here is the complete code.. [CODE] <?php session_start(); if (!isset($_SESSION['username'])) { header('Location: login.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> <script type="text/javascript"> function … | |
I wrote this code in php, it's purposes is to update the user record in mySQL database. There's already a script view.php which displays all records in the database, in the view file there's a edit link which sends the user id information to edit.php via get method. on the … | |
Hy , i`m new on the forum , so Hello to all , I want to make a "mini robot" that autocalls it self every night at 12 o`clock , and calls a php function that deletes some records form database on some criteria.My problem is not what the php … | |
Hi I get this fatal error when I am upgrading from php4 to php5: Fatal error: Function name must be a string in /home/test5/www/sok-om-billan.php on line 54 My code is (line 54) : [CODE] if(isset($_POST["submit"]) && $_POST("submit") == "Legg til medsøker"){ [/CODE] Do i have to define it as a … | |
The following id my php code [CODE]<html> <head> Checking ! </head> <body> <?php $errors_array=array(); if(isset($_REQUEST["welcome_already_seen"])){ check_data(); if(count($error_array)!=0){ show_error(); show_welcum(); } else{ handle(); } } else { show_welcum(); } function show_welcum(){ echo "<form method='post'>"; echo "What's your ice cream flavour?"; echo "<br>"; echo "<input name='flavor' type='text'>"; echo "<br>"; echo "<input type='submit' … | |
Hello ...I just was trying to output the file names of different folders in my PC using PHP code...But I found that it outputs actually more than visible files in that particular folder..So what did I mean by visible that when I count the number of files in my folder … | |
Hi everyone, Im relatively new to PHP. Im required to create a database to store all the courses taken by a student and his/her grades. i have created the database and able to store and display all the data stored in the database. I have a problem here: Im required … |
The End.