39,326 Topics

Member Avatar for
Member Avatar for ramganesht

I have question in creating a dynamic menu items. my require ment is as below. In my web site the menu items are 'Education' 'Leasure' 'Quotes' In Education i have sub menu items like colleges, schools, science, maths. In Leasure i have sub menu items like movies, resorts, parks, lakes. …

Member Avatar for diafol
0
150
Member Avatar for stephen_UK

I have 2 versions of the same database. One uses M/S Access and is installed on stand alone laptops, the second is web based MySQL/HTML/PHP. The database is simple ie a single table with cuirrent 8000 records with 32 fields/record which is expanding at around 1000 records per year. What …

Member Avatar for stephen_UK
0
168
Member Avatar for HiWorld

I am stuck on a problem, and can't seem to figure out why this isn't working, when I am pretty sure it should be... I am trying to get my code to delete users from the dropdown list after the admin hits the delete button within the page. The form's …

Member Avatar for HiWorld
0
356
Member Avatar for rakibtg

hello there, i can run php script from my computer(windows 7) by xampp. today while testing a php mail form to send an email from my computer to a e-mail address then it refuse me! it shows me something like this: Warning: mail() [function.mail]: SMTP server response: 553 We do …

Member Avatar for pritaeas
0
231
Member Avatar for BoB3R

Hello, I want to edit record in mysql and ive got problem with UPDATE command its giving me syntex problem here is the code: <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("dbname", $con); $sql="UPDATE users SET (userid, firstname, lastname, email, username, password, role) …

Member Avatar for BoB3R
0
173
Member Avatar for ak47carbon

diffrentialte btween function, variavble,constant and string in php tell me $_file[] is function or variable

Member Avatar for cereal
0
145
Member Avatar for hwoarang69

for some reason when i hit submit button it doesnt go run php code. i have this form below. when i hit sumbit button it should start the php code. <form action="" method="post"> <?php //print errors if(array_key_exists('reg_error', $_SESSION) && !empty($_SESSION['reg_error'])) { echo $_SESSION['reg_error']; unset($_SESSION['reg_error']); } ?> Firstname: <input class = …

Member Avatar for |-|x
0
1K
Member Avatar for Albert Pinto

Hi People. Got a small issue, although its big for me........ I'm using phpmyadmin.... I have 2 tables.... My First table is 'user' which has 4 columns ( eventid, Name, Email, Address ) ( eventid is the primary key) My Second table is 'trips' and it has 6 colums ( …

Member Avatar for pritaeas
0
115
Member Avatar for my3h

Hi, I really do not know how to read line by line csv file and store it in the database. I want to check datatypes, and the mandatory fields. Please somebody help me in this

Member Avatar for diafol
0
129
Member Avatar for BoB3R

Hello, I am new in all this and i was hoping you could help me with a little thing so here it is ive got 2 files one is for showing movies from database and there is "delete" button that is taking an a id and deleteing the raw display.php …

Member Avatar for BoB3R
0
118
Member Avatar for leader2345

I have a form in php that allows users to edit their user profile after the user logs in. It is prefilled with the users current info and when it is submitted, it updates the database. However, when it returns to the edit user profile page, the prefilled text is …

Member Avatar for diafol
0
4K
Member Avatar for prem2

Dear all, I am new to mvc architecture Programming concepts.I have doubt that why peoples are using MVC Architecture?.What are the core benefits of using this architecture. Thank you, Regards, prem2

Member Avatar for baig772
0
144
Member Avatar for hwoarang69

this part of code send a email to user if they forgot there password. first question i have is how can i add string and variables. this give me error Parse error: syntax error, unexpected ':' in C:\xampp\htdocs\login_test\forgotpassword.php on line 46 $body = "Hi " . $firtname_db . ",\n Your …

Member Avatar for hwoarang69
0
160
Member Avatar for HayLift

I have a Drupal site which is quite big and practically unreadable on most mobile devices, by using this [scipt](http://detectmobilebrowsers.mobi), I have managed to get the site to redirect to a sub-domain for each mobile browser. As the pages on the sub-domains are very minimal with little information, I also …

Member Avatar for Doug_Vann
0
289
Member Avatar for hwoarang69

i have this form. when user hit sumbit button i want to run changepassword.php <form action = 'changepassword.php' method = 'POST'> Old password: <input type='password' name='old_password'><br/> New password: <input type='password' name = 'new_password'><br/> Confirm password: <input type='password' name = 'confirm_new_password'><br/> <input type='submit' value='Change password'> </form> so when user hit submit …

Member Avatar for hwoarang69
0
212
Member Avatar for code739

yow! I have a question. the case is have and email notifacation in my php code in the database(MSSQL) i put an email add these are the two email address Rex.Cam@email.com and rex.cam@email.com the email notication is intended for the email who has a capital letter on the start the …

Member Avatar for code739
0
111
Member Avatar for Ekko

I am trying to write out some areas of an existing guestbook program, and keep hitting brick walls. It consists of a controller, view, and a tweaking of the results display. Anyone here interested in taking a look ?

Member Avatar for veedeoo
0
145
Member Avatar for piotrekw

Hi I write a bbcode and I have a problem. I have this code: function bbcode($tresc) { //... $tresc=str_replace("\n",'<br />',$tresc); $tresc=preg_replace('/\[\-\]([\w\W]+?)\n?(?=(?:(?:\[\-\])|(?:\[\/lista\])))/is','<li>\\1</li>',$tresc); $tresc=preg_replace("/\[lista\](.*?)\[\/lista\]/is",'<ul>\\1</ul>',$tresc); return $tresc; } I would like to in the tag [list] [/ list] - sign <br /> - turned to back to \n I do not know how …

Member Avatar for diafol
0
124
Member Avatar for rogerg

Hello, I try to call a header A if a user is logged in, and a header B if a user is not logged in on some pages I haven't managed to do so, I've tried to create a php function, but didn't manage to make it work. Then, I …

Member Avatar for rogerg
0
257
Member Avatar for waqar3

Hi, i want to create cookies in my shopping cart site. I want when i click on add to cart button of this product. the information of the product save in cookies and destroy when user close his browser. I want a script. When i create cookies it's work only …

Member Avatar for waqar3
0
165
Member Avatar for MrXortex

G'day. I get this error when I go to some other page, or redirect to index.php Warning: Cannot modify header information - headers already sent by (output started at /hermes/web05/blubbz/register.php on line 33 CODE on register.php: <?php if (isset($_POST['register_email'], $_POST['register_name'], $_POST['register_password'])) { $register_email = $_POST['register_email']; $register_name = $_POST['register_name']; $register_password = …

Member Avatar for FaisalSarfraz
0
208
Member Avatar for reco21

Hello, I'm trying to get results from a mysql database based on values in an array. My tables look like this 1. id | articles | thumbs | etc 2. tag_id | tag_name | article_id I'd like to get related articles based on the tags for that particular article. So …

Member Avatar for diafol
0
1K
Member Avatar for TheGame1083

Hello everyone, I have 2 issues that I've been trying to solve for days now 1. I'm trying to display an error message if a user tries to purchase more quantities of an item than what are actually available 2. I can't figure out how to decrease the actual in …

Member Avatar for TheGame1083
0
150
Member Avatar for veledrom

Hi, I am using WAMP on Win7 and my root folder is obviously `c:\wamp\www\` On same computer I use `http://localhost/project/` to run my project. The question is how do I run same project on other machine which is on same network? Also I rather use a bit human friendly naming …

Member Avatar for veledrom
0
2K
Member Avatar for DarkMonarch

i posted earlier this week about getting around codes in large projects. someone told me to install phpDocumentor and it will give the architecture of the software. i though, i should give it a shot, because im wasting my time searching instead of doing. the thing is, phpDocumentor doesnt work. …

Member Avatar for veedeoo
0
105
Member Avatar for johndohmen1963

Who can help me with the following. a part of my code doesn't work and i do not know wy. <?php //from here it is working $con = mysql_connect("localhost", "bla", "bla"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("wordpress", $con); $sql1 ="CREATE TABLE IF NOT EXISTS stamboom_landen …

Member Avatar for johndohmen1963
0
1K
Member Avatar for mariaceline_21
Member Avatar for mariaceline_21
0
65
Member Avatar for shahbaz13

Hi there, I am making a spell checker program with php with words stored in mysql. I use it to check unicode languages. But I do not get good suggestions with similar_text with percentage above 82. But if I decrease this percentage, I get many useless words. How can I …

Member Avatar for shahbaz13
0
510
Member Avatar for mariaceline_21

error Please select an imageError: Duplicate entry '' for key 'img' ` //file properties $file = $_FILES['image']['tmp_name']; if(!isset($file)) echo "Please select an image"; else { $image = addslashes(file_get_contents($_FILES['image']['tmp_name'])); $image_name = addslashes($_FILES['image']['img']); $image_size = getimagesize($_FILES['image']['tmp_name']); if($image_size==FALSE) echo "That's not an image."; else { { if(!$insert = msql_query("INSERT INTO shop (id, img, …

Member Avatar for vibhaJ
0
152
Member Avatar for LastMitch

Hi I have a question regarding **Ascending Order** and **Descending Order**. I want to learn how to write a **Ascending Order** and **Descending Order** on any list. For example: I want to create a booklist and I want to organized it by a library code system. **Category**----**ID**-----**Arthur** History-------123----Scholastic Art------------456----Da Vinci …

Member Avatar for diafol
1
4K

The End.