39,402 Topics

Member Avatar for
Member Avatar for tryphy

I have some doubts in form submission. The function that i need is adding a prompt dialog box to confirm befor the user submits the form. Eg: The user is entering some data in the form and he clicks submit..a dialog box appears and says " Are you sure you …

Member Avatar for tryphy
0
1K
Member Avatar for tryphy

Hi people, My issue is more of a MySQL issue than php. I am trying to store a 3digit integer value with a leading Zeros in front such as 001 i have a company table , which auto increments the id as 001, 002, 003...and so on... In the company …

Member Avatar for maks91
0
143
Member Avatar for forzadraco

i have a problem: i want redirect everything page in url: ex: [url]http://dracotech.biz[/url] to [url]http://www.dracotech.biz[/url] . want to add www. in everything request from user.. maybe with mode rewrite in apache but i didn't find way how to do it..

Member Avatar for rsleventhal
0
174
Member Avatar for cane23

i have a multiple select drop down menu where i select some courses however my problem is that i was to store the selected courses in an array for further use. i have tried creating an array but is is coming up empty. Can someone help me out here here …

Member Avatar for rajabhaskar525
0
85
Member Avatar for moobaa

Hi all.... Ok, so I've got 3 components, all working independently: 1) Simple HTML page 2) PHP Script (which produces 3 arrays) 3) Javascript (which processes 3 arrays) Now, I need to hook them all together through the HTML. The PHP should be called on the loading of the page, …

Member Avatar for NettSite
0
550
Member Avatar for ajithperuva

How can i rewrite [url]http://localhost/shopboxcms/?productid=62953[/url] to [url]http://localhost/shopboxcms/product/62953[/url] in wordpress using .hraccess file Please help me

Member Avatar for rajabhaskar525
0
94
Member Avatar for prem2

Hi, I am new to php.I want to read a word by word from a file.When I use fgets it read line by line.When i use fread then it read full contents from a file.File_get_contents read a full contents from a file. I need to read a each single word …

Member Avatar for prem2
0
2K
Member Avatar for muralibobby2015

hai... i want to dispaly table like this. actually i am fetching data from database. i am displaying data in tables. but i want to display like column wise after row wise. [CODE] A F K B G L C H M D I N E J [/CODE] like this. …

Member Avatar for urtrivedi
0
112
Member Avatar for footsouljaN

I need guidance on how to show live feeds on my website from a software...All ideas and solutions are highly welcomed....

Member Avatar for footsouljaN
0
68
Member Avatar for iniyanmani

Hi, I am new to PHP. I wanna know how the button reacts on the click event. [B]This is my code snippet.[/B].. [code]Name: <input type="text" name="fname" /> <input type='button' name='Release' onclick='hello()' value='Submit'> <script type="application/javascript"> function hello(clicked) { alert(clicked); return false; } </script>[/code] Whenever I click the button, it triggers javascript …

Member Avatar for OS_dev
-1
7K
Member Avatar for justinmyoung

This is a dumb question, but I used MAMP and I don't know how to access my phpmyadmin. I used to have it on my localhost server, until I had to reinstall it with MAMP. Now I don't know how to access it? Thanks

Member Avatar for audioholic
0
97
Member Avatar for network18

Hi, The dynamically created rows are appended at the end of the table i.e. after the last row of the table (found by table.rows.length) and those individual <tr> contains 8 more <td>s carrying some texts and their respective text fields. Now we have one such default <tr> , which also …

Member Avatar for Banderson
-1
191
Member Avatar for Anarionist

im having trouble understanding why this won't work. I'm extremely new to php (my primary language is c++) [CODE]<html> <body> <?php if(strpos($_GET['codev'], 'ddd') !==FALSE){ if(strlen($_GET['codev'] ==3) { echo "<p>Welcome</p>"; } ] ?> </body> </html>[/CODE]

Member Avatar for Anarionist
0
105
Member Avatar for baseballfury

Hello, I'm returning results from a database but they are showing as yyyy/mm/dd I would like them to display as dd/mm/yyyy is there a simple way to format $newrow5['StartDate'] to do this. while ($newrow5 = mysql_fetch_array($result5)) { echo "Starts on the: {$newrow5['StartDate']}"; } thanks in advance, Tom.

Member Avatar for baseballfury
0
2K
Member Avatar for Motorider

I have searched for a solution to this problem on daniweb and google to no avail. You folks have been so kind as to help me before. This portfolio piece, slash website for my father incorporates a MySQL PHP search form in the left div, and the search results in …

Member Avatar for EvolutionFallen
0
144
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
134
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
138
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
246
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
189
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
67
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
835
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
73
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
115
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
112
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
133
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
182
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
55
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
97
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
97
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
191
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
207
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
108
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
176
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
130
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
101
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
82
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
117
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
136
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
94
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
151
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
53
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
74
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
69
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
61
Member Avatar for ronaldpaul

In my project i wanna use the last_insert_id() to be stored in a session variable and after that i wanna use that session variable i.e., the value of last_insert_id() in another page. How can i carry the last_insert_id() to some other page using session or storing it in a session …

Member Avatar for CFROG
0
161
Member Avatar for tunde011

i have a vanity url where my users type in [url]http://www.mysite.com/user[/url] but some users type in mysite.com/USER and it redirects them to error pages because "USER" is not the same as" user" in my database. What i want is a maybe a php or htaccess code to change whatever they …

Member Avatar for OS_dev
0
93
Member Avatar for itisnot_me

ok i had a thought and i know that i can do it with jquery but dont know if it could be done with php. i would like to create a function where, if called it could see if the necessary files and code that it needs are in the …

Member Avatar for Atli
0
109
Member Avatar for jeeter19

Hi, I'm trying to just grab a small column of data from a Database and return it. This is a function called getAccessLevel(), it returns the Access level which is an integer. There is a table called users in the DB and the column access holds either 0, 1, or …

Member Avatar for jeeter19
0
148
Member Avatar for nelliott10

I am producing a input form, the code of which can be seen below: [CODE]<form method="post" action="../php/addshopfloorcount.php"> <table width="80%" border="1" class="table_text"> <tr> <td colspan="4" class="table_text">Count Information:</td> </tr> <tr> <td width="30%" colspan="-3" align="left">Count ID</td> <td width="70%" align="left" >Department</td> <td width="70%" align="left" >Username</td> </tr> <tr> <td colspan="-3" align="right"><input name="id" type="text" id="id" size="10" …

Member Avatar for nelliott10
0
88

The End.