39,323 Topics

Member Avatar for
Member Avatar for flames1

Hello ppl... How to insert a list of lines to sql through php and create a id for each line example....i have flames flintones flames1 .... .... so on after submitting these lines i need a short id for these lines like (short id can be anything) 1232 1546 1578 …

Member Avatar for seslie
0
111
Member Avatar for phplover

Hi, When a user registers on my site there status is 0 (not active) ... meaning they not activated there account via email. When they register i also store the DATETIME they registered, i store it in MySQL using MySQL DATETIME and using `NOW()` in my INSERT query on registration. …

Member Avatar for phplover
0
3K
Member Avatar for bavenbabu

I had a file named start.php in my D:\Wamp folder.I need to upload the file and enter the full path ie D:\Wamp\start.php into my database.I did the code.But I am not getting the full file path in my database the Code is as follows: <tr> <td width="71">Select a file <span …

Member Avatar for bavenbabu
0
238
Member Avatar for saadi06

Hi, I am having a problem in making a query. I have a table in which dates are saved in varchar format and I want to compare these dates in my search query. I want to take two input dates from the user i.e. starting date and ending date and …

Member Avatar for diafol
0
1K
Member Avatar for lazo87

Hello peeps! I've got an issue which I am trying to sort out. I am trying to build a website where ppl can search for car's sell and buy. I got stack where I had to make the search option on the website, so I started looking on google where …

Member Avatar for lazo87
0
216
Member Avatar for shaqib

Hello, i am saving a listbox into a mysql database. it saves correctly expect if there is space in between the data, it saves only the first part. any reason why so?

Member Avatar for diafol
0
59
Member Avatar for Tackey

I keep on getting this warning message Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\test\checkPosts.php on line 12 <html> <p><a href = "postArt.php"> Post Article </a></p> <p><a href = "editArticle.php"> Edit Article </a></p> <p><a href = "viewAllPosts.php"> View All Article </a></p> <p><a href = "Logout.php"> Logout …

Member Avatar for Nimrod7676
0
157
Member Avatar for ZER09

hello everyone Can someone explain to me about this two syntax of php the => and ->, i dont have any idea what this is. I already googled it but didnt find anythig. Actually I tried to look the source code of joomla and found this two syntax. I will …

Member Avatar for ZER09
0
99
Member Avatar for ethar

hi, Am a new in php,i have php page with mcq questions, when the user starts with the Q.No 1 the timer should start ,and I want to turn off the page after the completion of the timer. Can any one please help me out to do this . Thank …

Member Avatar for ethar
0
196
Member Avatar for jonow

By using the `.htaccess` file, I can make any missing image on a page be replaced with a default ‘not found’ image. However, when this is done the replacement ‘not found’ image is stretched to the dimensions of the original missing image. I was wondering if anybody has a solution …

Member Avatar for diafol
0
135
Member Avatar for joshmac

Since md5 will be deprecated at some point (if it isn't already), and will soon pass away, I thought I should think about of another way of securing passwords. I've been thinking about phpass for a while and decided to jump in feet first. I am pretty sure that I …

Member Avatar for joshmac
0
193
Member Avatar for nathmack

Hi, I have been trying to solve this for ages and just can’t seem to get it right. I want to do 2 things here, i am getting an array out of a mysql database (i am getting the user’s id) and then converting that array into a string and …

Member Avatar for |-|x
1
146
Member Avatar for knowill

Help realize mvc architecture, please. I need site simple on mvc architecture. Here http://www.phpro.org/tutorials/Model-View-Controller-MVC.html#5 is example. i don't understand his. i don't understand how realize site.

Member Avatar for veedeoo
0
170
Member Avatar for nchy13

i am ensuring on both pages i have first of all called session_start(); on one page i declared $_SESSION["username"]=$username; the link of another page is on this page. and another page i tried to print it by echo $_SESSION["username"]; but it showed nothing. i am using php 5.4 with apache …

Member Avatar for nchy13
0
194
Member Avatar for eltonpiko

Hi i need a little advice i need to build a website where user login and get some sort of form where they can order their meal form a list for every day in a month. how can i achive this? the admin must be able to view ecah user …

Member Avatar for eltonpiko
0
143
Member Avatar for ashiiiish

<?php $noticeid=$_POST['nid']; $uname=$_SESSION['user']; include('db_connect.php'); $sql="SELECT * FROM notice WHERE nid='$noticeid'"; $data=mysql_query($sql); $d = mysql_fetch_assoc($data); $notice=$d['notice']; echo $notice; ?> When I am retrieving data its saying : Notice: Undefined index: nid in C:\xampp\htdocs\sm\viewnotice.php on line 53 Wheres i am passing the varibale from previous page and its reflecting in browser too. …

Member Avatar for rajesh1158
0
121
Member Avatar for adityamadhira

Hi I want to clear back button history in browser after log out in php Thanks in advance

Member Avatar for rajesh1158
0
109
Member Avatar for robertcraiguk

Hi, I have been trying for the last few days to figure out how to send a particular user to their own specific URL. For example, all users will use the same login.php page but when User A logs in they will be redirected to A.php and if User B …

Member Avatar for Biiim
0
209
Member Avatar for Venom Rush

Hi all Is it possible to continue running a script after encountering a maximum_execution_time error? If so, how would I go about doing this? EDIT: My script is processing an xml feed that contains approximately 9000 images. I'm resizing the images and saving them to the server and the max_execution_time …

Member Avatar for pritaeas
0
185
Member Avatar for phplover

Hello, Can someoneone tell me when you `prepare()` a statement (in my case an update statement) and then `execute()` it, i then check using `rowCount()` after the update query (see code below) if `rowCount() > 0` if it is then a match was found and update took place, but i …

Member Avatar for phplover
0
201
Member Avatar for nathmack

hi, I am having trouble finding the problem here. i also can't really find anything great on the net to help me. I keep getting an error saying: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax …

0
48
Member Avatar for stanley87

Hi,guys.I have 1 question on the rest api redirection problem,hope you guys can help me to solve this problem,thanks. My question is: How to i embed the redirection script into the response api? eg,The user call http://domain.com/api=redirect&keyword= 'bla,bla,bla,bla'. What i want to do is to force the user to redirect …

Member Avatar for pritaeas
0
184
Member Avatar for ashiiiish

<?php $tname=$_POST['tname']; $uname=$_SESSION['user']; include('db_connect.php'); $sql="SELECT marks FROM marks WHERE uname='$uname' && tname='$tname'"; $data=mysql_query($sql); $marks=$data['marks']; echo $marks; echo $uname; echo $tname; ?> When I am trying to retrieve data marks is not retrived its displaying as "Marks" Please help

Member Avatar for niranga
0
77
Member Avatar for Panathinaikos22

Hello, i want to make this site http://dotest.webege.com/main.php To show datas per pages, how all this work? How i just show 10 recrods per page, how i create dynamic pages? Any link for this, how all that work?

Member Avatar for cjohnweb
0
2K
Member Avatar for nchy13

i am trying to print " in echo statement. i can't get any method other than <?php echo " " "; ?> which is definitely wrong. help me to find a way out of it. any help is appreciated.

Member Avatar for nchy13
0
157
Member Avatar for MMG35

Hi friends, I have a site, where I want to limit the number of pages being viewed. example: 1 | 2 | 3 | 4 | 5 | 5 | 7 | 8 | 9 | 10 | 11 want to reduce this to: 1 | 2 | 3 | …

Member Avatar for MMG35
0
248
Member Avatar for epson121

Hello, i have a problem with displaying a picture. Picture is stored in database as mediumblob. Storing pictures in database is going ok, since i can see them in phpmyadmin. Problem is, i can't see them in browser. THe code im using for this is here: login.php --lots of code …

Member Avatar for epson121
0
275
Member Avatar for maurya10
Member Avatar for Tristan2036

I am having the following issues setting up php probid on my virtual dedicated server. I have virtual dedictaed server at godaddy.com. It has paralles plesk 10.4.4 and Cent OS 5. Iam having the following isses 1. I cannot get the database to work correctly. I am getting access denied …

Member Avatar for Tristan2036
0
1K
Member Avatar for Tristan2036

I bought a copy of php probid. Everything on it looks ok. I have looked at other sites using it and obviously they got it to work, I have installed it on my local host for testing. I am using xampp 1.7.1 becuase the script require gd library and zend …

Member Avatar for Tristan2036
0
249

The End.