Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF PHP


mysql > php  

HI guys...I want to make a form in php that will allow my users to view, edit records from a mysql database? Would this be hard to accomplish considering I do not know php. I have attached an excel spreadsheet of the form I want to create. You will have to rename it to .xls. Continue Reading
Views : 2280
Wednesday 24th of October 2012

information over multiple blocks  

How do i split the record fields over multiple blocks.(e.g. in the "find file option" of windows. there are three blocks : "name & location", "date" , "advanced")The validation for mandatory fields on each block Continue Reading
Views : 333
Wednesday 24th of October 2012

calling php from inside   

if anyone can help me of the following php & javascripts:purposes:(1) upon click on the "Clear All" button, the selected item in the list of product chosen will be cleared, and the user will start from begining. This is a shopping cart program. But when I run the... Continue Reading
Views : 277
Wednesday 24th of October 2012

PHP, mySQL, and QuickTime links...  

This is my first php app. I've got a details page which has filenames of QuickTime movies. I'm trying to make them open up into a new browser window of a specified size and play. I can only manage to get them to open up as a fullsize browser window, not the 400x300 or 200x150 I've... Continue Reading
Views : 340
Wednesday 24th of October 2012

strip URL out of a Database field  

Hi,I have some text that is stored in a database field called 'Body'. Within this field there are URLsI want to be able to get the URL out of the Body field and show it as a Link on a page?I am a novice user and I'm still not to sure how to get this... Continue Reading
Views : 313
Wednesday 24th of October 2012

php mail() and firewalls  

I've created an email form that emails from my client's web site to my client using the php mail() function. The web server and mail server are on seperate machines. It works on all email addresses I've tested (it's a script that I've used many times before) except my client's email... Continue Reading
Views : 349
Wednesday 24th of October 2012

Problem capturing output from GPG command in shell...  

I am uncertain what I am doing wrong here....I have finally sorted out that it was permissions that were preventing me from running the gpg commands I was trying to run and I can now run them. The problem is that I am having real trouble capturing the output from the commands I... Continue Reading
Views : 259
Wednesday 24th of October 2012

Problems with gpg in php  

I have been working oon this problem non stop for the last two days and think I am going to go out of my mind.From all the research I have done my coding should work, but alas it does not.I am trying to get the values from a form encrypted, and then emailed. Continue Reading
Views : 278
Wednesday 24th of October 2012

Display error message when user tries to add duplicate record into MySQL  

I am letting users add some information into MySQL database via forms. I have set one of the fields in the database as"unique" to prevent duplicate records. What I want to do is to display message to the user when he/she tries to add the same record twice(i.e submit ethe same form with the... Continue Reading
Views : 235
Wednesday 24th of October 2012

posting diifferent time zones  

I want to post the date and time it is here (PMT) and the date and time in Austrailia (whatever that is) on the same page so you can see what the difference between the 2 are... any suggestions would be great.Thanks. Continue Reading
Views : 337
Wednesday 24th of October 2012

lookijng for a file upload/download database script.  

Hi i was wondering if anyone can point me in the direction of a script.I need a script that lets people upload a zip file to my website but also fill in a form with some fields.Then i want to be emailed notifying me of the uplaod and for me to have to manually allow... Continue Reading
Views : 208
Wednesday 24th of October 2012

multiple indirections through object methods  

I've been trying to get something like the following to work, but I can't figure out if PHP has any facilities/hacks for making it work: PHP Code: Continue Reading
Views : 334
Wednesday 24th of October 2012

forms and headers  

so there's all the bs about how u cant type anything before using a header("Location..."), (assume we're also using sessions for authenticating user) then how would u implement code such that u have a form - call it formA. Continue Reading
Views : 354
Wednesday 24th of October 2012

Does php still support configure with java  

I found several pages that explained step by step how to configure php with java support. I followed the instructions and everything went well until it got to the point of copying libphp_java.so from the modules directory to the php install directory. The problem is - libphp_java.so doesn't... Continue Reading
Views : 322
Wednesday 24th of October 2012

Can I simulate "back" button   

I have this form with a lot of stuff to fill in,when one submits it, the values are checked and you get an error message if you forgot to enter some things ( like the date ).Now if you press 'back' on your browser, you still have all the values filled into the form. If I... Continue Reading
Views : 325
Wednesday 24th of October 2012

preg_replace problem  

Ok, I am trying to encrypt specific strings in a file.current code: Code: Continue Reading
Views : 372
Wednesday 24th of October 2012

array allocation  

if i say $test['question'][5678] = 38will this allocate space for all the elements from 0 to 5677 or just for one element Continue Reading
Views : 337
Wednesday 24th of October 2012

Serializing objects and storing them is sessions  

I'm having a problem unserializing objects that are passed from page to page with sessions. Registered globals is disabled so I am using the $_SESSION array to store session variable and am not using session_register(). Here's what I'm doing.On first page: Continue Reading
Views : 224
Wednesday 24th of October 2012

date - day finder  

How can i find out if a date in future is between Sunday - Thursday, or even a particular date is Monday, Tuesday?Thanks Continue Reading
Views : 353
Wednesday 24th of October 2012

Verifing username and passwords from .htpasswd  

I am having problems reading my .htpasswd file, or I think I am. I borrowed this PHP Script from a zend.comarticle. But I am getting a false value and not a true value. Continue Reading
Views : 307
Wednesday 24th of October 2012

deleting files from server  

i've tried searching on here and google and havent found anything, how can i delete files from the server using php? , i actually did try the manual, buti must of been searching the wrong thing, thanks for the help Continue Reading
Views : 331
Wednesday 24th of October 2012

time() - to nearest half hour  

I need to write a function that can return the number of seconds between present time and the nearest coming half hour.For example: If the time is 22:12, I want the number of second to 22:30.I didn't think this was hard, until i tried it... I just can't find an easy... Continue Reading
Views : 334
Wednesday 24th of October 2012

quiz problems..  

im creating a quiz system that allows visitors to create their own quizzes on their own webspace and use my site including some $_GET variables that incldue the given path where they saved the quiz info, and then it generates the multipage quiz from the array of provided questions. the... Continue Reading
Views : 297
Wednesday 24th of October 2012

Order by, PHP and MySQL  

When I try order by, it prints in assending order, how can I do this to print in deseding order? Continue Reading
Views : 292
Wednesday 24th of October 2012

string striping question  

hi guys i have a bunch of values like$a = 1/2/4$b = 12/12/4$c = 12/4/4$d = 4/12/4what i would like to do is to get rid of the "/" and store each number in between them. so for the first one$var1 = 1;$var2 = 2;$var3 = 4;and for... Continue Reading
Views : 289
Wednesday 24th of October 2012

Getting double line breaks when send with mail...  

I've been searching on and off for a few weeks to get rid of double line breaks (\n\n) when I send e-mail via the mail command (in text format, not HTML)For example, if I send a $message looking like :line1line2line4... I get in the e-mail : Continue Reading
Views : 352
Wednesday 24th of October 2012

disapering zeros and forms  

Hi I'm new at this so pray forgive me if I break netiquete in some way...I have part of a form that collects an isbn (book ID number). These frequesntly start with zero. There are 4 fields to collect the part of the isbn to avoid user error.$form.=" Continue Reading
Views : 312
Wednesday 24th of October 2012

Include security  

I have a sensitive PHP file on my server and I want stop anyone being able to do a PHP include to the file and grab the variables etc. How can I stop that? Continue Reading
Views : 308
Wednesday 24th of October 2012

Accessing multiple databases  

Hi all, in a bit of a pickle, hope you can help.Assume i have 1 database with a users and a comments table, the, followign sql is fine,SELECT u.name, c.comment FROM user u, comment c WHERE c.userid = u.userid;Now, how could this be achived if the user... Continue Reading
Views : 291
Wednesday 24th of October 2012

Looking for PHP4 ClipText Library  

I have been all over the net looking for a quick language reference (not the manual) or preferably a cliptext library for PHP that can be plugged into an editor. Does this exist? Can anyone point me in the right direction?Thanks, 7tech Continue Reading
Views : 294
Wednesday 24th of October 2012