39,320 Topics
| |
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 … | |
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 … | |
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] … | |
[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, … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
| 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 … |
[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] | |
[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 … | |
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 … | |
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]<? /** … | |
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. | |
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; … | |
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 … | |
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 … | |
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 … | |
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 * … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … |
The End.