39,320 Topics

Member Avatar for
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
143
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
110
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
1,000
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
508
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
151
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
Member Avatar for satlok777

<?php session_start(); error_reporting(0); ?> <?php ob_start(); ?> <?php include("connect.php"); $u_name = $_POST['email']; $u_pass = $_POST['pwd']; if ($_POST['Submit']=='Login') { $sql = "SELECT * FROM user WHERE username = '$u_name' AND password = '$u_pass'"; $result = mysql_query($sql) or die (mysql_error()); $cmd=mysql_fetch_array($result); $num = mysql_num_rows($result); if ($num) { $_SESSION['username'] = $u_name; echo '<META …

Member Avatar for vibhaJ
0
103
Member Avatar for trektrak

I've created a web application page with login and session login basically a <?php session_start() ?> do I really need to put this code on every page of my php ? because session login only active on the first page after I do login.. Anyone.. Help me on this.. Thanks

Member Avatar for vibhaJ
0
197
Member Avatar for yanwick

I have the simplest code possible to upload a file using php and it only doesnt work using mozilla firefox. The server responds: 'Bad Request Your browser sent a request that this server could not understand.' This is the code(2 files): upload_file0.php <html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> …

Member Avatar for vibhaJ
0
550
Member Avatar for jepp3

Hey! I'm trying to get mail(imap) from google by oauth authorization . I have got the authorization to work, but I can not retrieve the emails. As I understand it should be posible. But Google does not have any api to retrieve mail(?). I found the following: https://developers.google.com/google-apps/gmail/oauth_overview That says: …

Member Avatar for jepp3
0
169
Member Avatar for showman13

Could someone tell me how to extract the right most single digit from a number without knowing the length of the number? 123 I need the 3 386485 I need the 5 etc... Seems it should be simple, but been searching for over an hour and can't find the resolution... …

Member Avatar for cereal
0
90
Member Avatar for ak47carbon

i want to know that what is php frame work and how it use tell me benefits,uses and disadvantages of php frame and also tell mee benefits,uses and disadvantages of oop in php

Member Avatar for pritaeas
0
47
Member Avatar for Octet

I am attempting to create a script which checks to see if the user has a warning level of less than 3. Basicaly, I want to automatically deny any account which has a Warning Level (stored in the Database) of 3 or more from logging in but whenever I attempt …

Member Avatar for Octet
0
164
Member Avatar for rogerg

hello, I use a script I found on this site [Click Here](http://www.html-form-guide.com). I don't think the htmlentities check work and I don't know what's wrong. the .php file for the registration starts with <?PHP require_once("./include/membersite_config.php"); if(isset($_POST['submitted'])) { if($fgmembersite->RegisterUser()) { $fgmembersite->RedirectToURL("thank-you.php"); } } ?> and the user registration form starts with …

Member Avatar for rogerg
0
199

The End.