39,323 Topics

Member Avatar for
Member Avatar for mrcniceguy

HI everyone!!i have this got this function, and i dont know what is going wrong here. in the table, the field for date i saved as timestamp, meaning time is automatically inserted when the record inters. [code=php] function time_stamp($session_time) { $time_difference = time() - $session_time ; $seconds = $time_difference ; …

Member Avatar for mrcniceguy
0
132
Member Avatar for sweetorangepie

Hi Guys, basicly what im trying to do is upload a file to a folder on a server. here is the html form: [CODE]<form enctype="multipart/form-data" action="upload.php" method="post"> <fieldset> <legend>Upload File:</legend> <input type="file" name="upload" />&nbsp;<input type="submit" name="submit" value="Submit" /> </fieldset> </form>[/CODE] and here is the php code: [CODE]<?php #upload.php ini_set('display_errors',1); error_reporting(E_ALL|E_STRICT); …

Member Avatar for diafol
0
136
Member Avatar for sassenach

Hi, I am trying to create a RewriteRule for my site. I got the first part correctly. This means say /index.php?mid=#. This passes correctly. Here is the example: [url]http://www.orchot-hagilboa.com/דף_הבית[/url] But how do I add another param? Say I am passing /index.php?mid=#&smid=# ???? Here is my rewriterule in htaccess: [code] Options …

Member Avatar for sassenach
0
245
Member Avatar for codeblock

Hello everybody, I've posted this question before but i got no help, may be i wasn't clear enough or it can't be solved but i really need someones help. The problem is my if else statement. My if else conditions will block the first two int values but then allow …

Member Avatar for codeblock
0
181
Member Avatar for sassenach

Hi, I have a website where you need to login. The login works fine, it saves the session variables as I need. After browsing the site, maybe one minute, the session times out before it should. I am not sure if this is related, but I moved my site a …

Member Avatar for sassenach
0
66
Member Avatar for dan4domination

Hello all, Just wondering if I could pick some brains, I'm currently learning PHP and have been messing around with a fun project, currently developing a simple login / register script. The error that I keep getting is - [b]Parse error: syntax error, unexpected T_ELSE in /home/danhumph/public_html/smithy/login.php on line 27[/b] …

Member Avatar for Ezzaral
0
821
Member Avatar for tryingtofindout

[CODE] 1. CREATE TABLE details ( 2. s_no int NOT NULL AUTO_INCREMENT PRIMARY KEY, 3. 4. content1sno varchar(50) NOT NULL, 5. 6. content1name varchar(50) NOT NULL 7. 8. content2sno varchar(50) NOT NULL, 9. 10. content2name varchar(50) NOT NULL, 11. 12. content3sno varchar(50) NOT NULL, 13. 14. content3name varchar(50) NOT NULL, …

Member Avatar for tryingtofindout
0
72
Member Avatar for tryingtofindout

help me!! [CODE]if ( $username == 'admin' and $password == 'ncr' ) { echo("Location: http://localhost/ncr/home"); } [/CODE] if username and password is correct, echo should takeme to specified link. This page ([url]http://localhost/ncr/home[/url]) should be displaced

Member Avatar for tryingtofindout
0
113
Member Avatar for Pooja J.

Hello,i m newer to the php. my problem is... i have one form with textfield and multiple selection listbox. i select multiple values form listbox, implode it with comma and put all values in single database field. its working. But, i cant retrieve them with explode function . i want …

Member Avatar for urtrivedi
0
110
Member Avatar for jeeter19

Hi, I'm trying to write a short/simple function that will get the information that is in a COOKIE and return it. I have a COOKIE that is called [B]auth[/B]. This COOKIE is properly set as I can do an [I]echo $_COOKIE['auth'];[/I] and it will show the proper number. The problem …

Member Avatar for Airshow
0
131
Member Avatar for manolisvl46

Hallo there i wan to make my ldap connect with the client pc's over ssl (like this one) [URL="http://www.openldap.org/pub/ksoper/OpenLDAP_TLS.html#4.0"]http://www.openldap.org/pub/ksoper/OpenLDAP_TLS.html#4.0[/URL] or this one [URL="http://www.madboa.com/geek/openssl/#cert-self"]http://www.madboa.com/geek/openssl/#cert-self[/URL] i have already made a self signed key and all the steps i found through the internet... but when i try to do one of the last …

Member Avatar for manolisvl46
0
177
Member Avatar for anju.anjali

Hello, I am doing one application to find the rank of a website for a particular keyword in different search engines.For this i am giving the keyword as the input to the search engine(google,yahoo,msn).I am trying to read the search engine results.but some times i am getting the warning :fopen …

Member Avatar for cwarn23
0
53
Member Avatar for rskoora

I have [url]http://localhost/auto/controller/user[/url] this url and i want to rewrite this url to [url]http://localhost/auto/user[/url] please help me

Member Avatar for garromark
0
94
Member Avatar for ryan311

i have index.php [CODE] <form action="login.php" method="post"> <table width="249"> <tr> <td> <span class="style3">Username:</span> </td> <td> <input name="username" type="text" /> </td> </tr> <tr> <td> <span class="style3">Password: </span></td> <td> <input name="password" type="password" /> </td> </tr> <tr> <td> </td> <td> <input name="Login" type="submit" value="Login" /> </td> </tr> <tr> <td colspan="2"> <div align="center" class="style3">Not …

Member Avatar for ryan311
0
94
Member Avatar for Pooja J.

Hello, I have one table with user information contain unique ID and password. When user enters the ID and password in php login form, my php code should check that ID is already present or not. If it is present, my php code should check that the password is same …

Member Avatar for Pooja J.
0
189
Member Avatar for kevindougans

For anyone still using the old "mysql_fetch_assoc" here is something I've just discovered today after about 9 years of PHP'ing and thought I should sahre because I've not seen many open source projects use it (maybe for another reason I'm not yet aware of)... (note: both provide the exact same …

Member Avatar for pbcomput
3
204
Member Avatar for muralibobby2015

hello... i want to move specific location with in a page. for that i used like this [CODE]<a href="knowledge.php#news">HHH</a>[/CODE] then it points the news table. now i have query string is there. how to give like above. now i want to point a div which is in comment.php. where can …

Member Avatar for pushpakalpana
0
106
Member Avatar for diafol

Hi folks, I'm looking for a function, similar to str_replace that replaces just the first occurance of a specified string. I have found such a function: [url]http://www.help2go.com/Tutorials/Programming/PHP_:_How_to_replace_only_the_first_occurrence_in_a_string_with_str_replace.html[/url] However, this does not take into consideration of 'search from an initial position'. My interest is with regard to replacing strings within a …

Member Avatar for diafol
0
173
Member Avatar for tryingtofindout

[CODE]while ( $row = mysql_fetch_array($sql) ) { echo "<table>"; } [/CODE] if nothing is found in the database relating to the query i should get like this [CODE] while ( $row = mysql_fetch_array($sql) ) { [COLOR="red"]if nothing is found in the database[/COLOR] echo "<table no results found>"; } [/CODE]

Member Avatar for tryingtofindout
0
128
Member Avatar for tryingtofindout

[CODE]<option>location1</option> <option>location2</option> <option>location3</option> <option>engineer for location1</option> <option>engineer for location2</option> <option>engineer for location3</option>[/CODE] wen i choose a location the corresponding service engineer for that location should be added to d database in d user form ther will be no option for engineer for that location, by selecting the location, it should …

Member Avatar for tryingtofindout
0
99
Member Avatar for pixeldiver

Hi there, My script doesn't work properly. I have a function called showCart2 which populate a table with rows and a textareas. Every item has it's own textarea. Users should be able to enter text and submit. Entered text should be hold in the array. The output of textareas and …

Member Avatar for EvolutionFallen
0
79
Member Avatar for Barefootsanders

Hey everyone. I just got my server up and running and I programed my database, or so I thought. I tried uploading it and running it but my index.php gives me "syntax error, unexpected $end in [B]index.php[/B] on line [B]127". [/B]My code is below. Can anyone help?? Thanks! [code]<? /** …

Member Avatar for Barefootsanders
0
1K
Member Avatar for fuggles

Is there a way for me to have a PHP script run constantly on the server, rather than only run when a user loads the page? Sorry if this is a stupid question. I just haven't ever had the need until now.

Member Avatar for CFROG
0
112
Member Avatar for JSHGROUP

Hi there I'm having a problem with a script. [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"> <head> <meta http-equiv="Content-Language" content="en-gb" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Thank You for your order!</title> <style type="text/css"> .style1 { text-align: center; } .style2 { font-size: x-large; font-family: Arial, Helvetica, sans-serif; …

Member Avatar for misterrmac
0
133
Member Avatar for swapna7999

hi all i have a vb application and i need to include this in a php page i tried the exe file of the application to include in the php page but i have to download it to run what i want is to call this vb application as part …

Member Avatar for democracy7.com
0
91
Member Avatar for closebys

Hi, I am full time PHP programmer for the past 2 years. Now I am trying to gather some project on my own and work from home besides office. I don't know how to quote a project. Now I have one project where I have to do coding for creating …

Member Avatar for smartbuzzinc
0
147
Member Avatar for sassenach

Hi, On my site, the session worked fine until i changed hosting the other day. When i login to the site, it creates sessions. If i open a page in the site, it opens up fine, but after i open another page or refresh the same page, it automatically takes …

0
51
Member Avatar for venusseo

please help me with this parse error.. tnx Parse error: parse error in C:\wamp\www\concentrix\aboutUs.php on line 49 <form action=<?php $_SERVER['PHP_SELF'];?> method="post" enctype="multipart/form-data"> User Name:<input type="text" name="u_name"> </form> <table border=2> <tr> <?php $con = mysql_connect("localhost","con","centrix"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("concentrix", $con); $result = mysql_query("SELECT * …

Member Avatar for urtrivedi
0
72
Member Avatar for dhrider

So I am trying to create a page with an booking calendar on it which gets its content from my sql data base. As of right now, I can't get it to display my booking info from the database, or insert the proper date into the form field when creating …

0
68
Member Avatar for whiteyoh

Hi all, When sending emails i get random ! in the tex! t a bit like this ! po!st i believe its someting to do with RFC 2822 what can i do to my headers to rectify it?

Member Avatar for whiteyoh
0
56

The End.