39,326 Topics

Member Avatar for
Member Avatar for altarek

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?

Member Avatar for vibhaJ
0
93
Member Avatar for Mike516

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)

Member Avatar for tech.biztech
0
112
Member Avatar for jacob21
Member Avatar for divyakrishnan
0
105
Member Avatar for Layerphp

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 …

0
60
Member Avatar for jatpatel1

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 …

Member Avatar for Troy III
0
344
Member Avatar for arsenalfun

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 …

Member Avatar for arsenalfun
0
102
Member Avatar for dhruv_arora

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 …

Member Avatar for dhruv_arora
0
284
Member Avatar for mgt

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, …

Member Avatar for Stefano Mtangoo
0
561
Member Avatar for god_1896

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, …

Member Avatar for instantcarma
0
2K
Member Avatar for yli

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 …

Member Avatar for diafol
0
127
Member Avatar for sheennave

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 …

Member Avatar for sheennave
0
117
Member Avatar for bob on whidbey

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 …

Member Avatar for diafol
0
3K
Member Avatar for jacksantho

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. …

Member Avatar for Pampas
0
171
Member Avatar for attism

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, …

Member Avatar for attism
0
229
Member Avatar for sid78669

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 …

Member Avatar for sid78669
0
162
Member Avatar for feedz87

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 …

Member Avatar for mgt
0
2K
Member Avatar for utthu

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 …

Member Avatar for utthu
0
153
Member Avatar for Joe34

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']; …

Member Avatar for karthik_ppts
0
224
Member Avatar for saadi06

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 …

Member Avatar for karthik_ppts
0
60
Member Avatar for jacob21

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 …

Member Avatar for jacob21
0
386
Member Avatar for peterpa

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 …

Member Avatar for divyakrishnan
0
149
Member Avatar for naru vaishnaw

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, …

Member Avatar for urtrivedi
0
134
Member Avatar for geekme

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

Member Avatar for diafol
0
160
Member Avatar for jacob21

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 …

Member Avatar for jacob21
0
2K
Member Avatar for dhruv_arora

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 …

Member Avatar for dhruv_arora
0
429
Member Avatar for nsyncpilu

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 …

Member Avatar for nsyncpilu
0
101
Member Avatar for Espenij

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 …

Member Avatar for reygcalantaol
0
91
Member Avatar for geekme

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' …

Member Avatar for urtrivedi
0
170
Member Avatar for narekm

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 …

Member Avatar for diafol
0
312
Member Avatar for chaychie

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 …

Member Avatar for chaychie
0
253

The End.