Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF PHP


Reading values from Mysql to create a dynamic Form - Help please  

Uhm, your whole file extension dillemma is unclear, causing the entire problem to be unclear, buuut... if you need it to be .shtml, you could put a .htaccess file in that dir: Continue Reading
Views : 109
Wednesday 24th of October 2012

Automatically *ing  

I would like to use PHP to automatically delete something from the database, or send an automatic email... How can this be achieved without having someone online? Continue Reading
Views : 175
Wednesday 24th of October 2012

Retreiving operating system  

Hi there,I have seen that it is possible to detect the viewers operating system....How is this done?Also, if you know, how do you retreive, RAM usage, and current music being played...Thanks alot,RoundHost Continue Reading
Views : 174
Wednesday 24th of October 2012

The equivalent of
in GD
  

Hi all,I want to start a new line for text in a GD image,What is the code i use to make a new line in gd?Thanks in advance,RoundHost Continue Reading
Views : 228
Wednesday 24th of October 2012

Bold Text  

Hi,I am using the image functions in PHP to make text on a background. I am also using imagetfttext. I was wondering, is there a way to make the text Bold or Italic?Thanks. Continue Reading
Views : 192
Wednesday 24th of October 2012

Parse Error, Please Help  

i have a login script... and its basic right now... but im working on improving it, back on topic...when i login, the login_success page gives me this Quote: Continue Reading
Views : 170
Wednesday 24th of October 2012

Detecting file extension  

Hi there,I am uploading a file to a webserver and i am using the following bit of code to find out what the file type of the file is. This is meant to be so the user can only upload certain filetypes to the server. I am having aproblem as the following bit of code is printing... Continue Reading
Views : 160
Wednesday 24th of October 2012

Change Password  

im trying to create a script to go along with my users table which enables the users to change their passwords. i already have the reset one... now i just need the change one, because face it, no one wants to remember zzx7bkl8 as a password.heres my change... Continue Reading
Views : 207
Wednesday 24th of October 2012

Forum to post to 3 DB  

Any one know an easy way to make a form post to 3 DB all the information being submitted it exactly the same it is just running 3 different programs? Continue Reading
Views : 193
Wednesday 24th of October 2012

If is an integer then do this....  

Hi there,I have currently got a little hit counter type thing on my site, basically i want it so every 10 hits you get 1 point. The way i thought of doing it was in psydocode: Continue Reading
Views : 172
Wednesday 24th of October 2012

Calendar - Next month --> Next year  

Hi all,I'm busy with this calendar script that is clickable on the days to use it as a reminder script. If you click on day 2 it will let you add a reminder by email to you on that day. What I'm trying to do now is to add link buttons that will take me to the next month and then... Continue Reading
Views : 190
Wednesday 24th of October 2012

Row Colour Variables from MySQL  

Happy belated Easter everyone.Here is my question: When I try to make every other row a diff colour (interchanging between lite and darker blue) i pull a douple copy from my database. I want to have every other row a different colour repeating after 2 colours. Here is my code... Continue Reading
Views : 162
Wednesday 24th of October 2012

Backup DB For Remote DB Connection  

I have a site that connects remotely to a mysql database. I am trying to make it so if the remote database cannot connect for some reason then it will go to my backup database on my own server that I create. I am having some problems getting it to work.Here is what I got so... Continue Reading
Views : 185
Wednesday 24th of October 2012

Article system  

Hi,I want to make an article system for my webpage , on my Old page I had to add the articles manually by correcting the html code.I have made... Continue Reading
Views : 161
Wednesday 24th of October 2012

PHP based Ad Management  

Where do I start if I am looking for some info on advertisement management using PHP, right from submission to accounting? Continue Reading
Views : 185
Wednesday 24th of October 2012

repl rreferences via values of two arrays  

I would like to replace all the references to particular values found in array 1 with values in array 2. Can't get it quite right.Example:Suppose I have this text: "The quick brown fox jumped over the moon."Array 1 : Array 2brown : blackump... Continue Reading
Views : 179
Wednesday 24th of October 2012

Problem with adding information to mySQL database  

I am trying to create a form that will allow a user to add new categories to a dB.A simple form was created where the add a name and submit. Code: Continue Reading
Views : 108
Wednesday 24th of October 2012

form reset when u go back  

Hi,How do i stop reseting form inputs..when u go back in the browserI use sesession before printing forms. Session is just check whether user is login or not if they login then redirect to member section if not show the form.When you enter login... Continue Reading
Views : 197
Wednesday 24th of October 2012

Uploading image script problem  

what does this mean?Warning: move_uploaded_file(): open_basedir restriction in effect. File(/home/public_html/testforupload.gif) is not within the allowed path(s): ('.:/tmp:/home:/usr/local/lib/php:/nfs/home:/usr/home:/usr/local/bin/') in... Continue Reading
Views : 212
Wednesday 24th of October 2012

Rating System  

I've searched the forums and found answers to some of my questions however not all of them were answered. My biggest question is how do I prevent receiving the following error when there is no rating at all? Continue Reading
Views : 171
Wednesday 24th of October 2012

update field if condition is matched  

Hi all,Can anyone pls help me with my problem as follow?I have created a program to compare the file_ref_no + file encl no with the doc name stored at /var/www/hotdoc/doc,if match and the table is empty update then update the database... Continue Reading
Views : 185
Wednesday 24th of October 2012

not-so-simple redirect  

I desparately need a redirect for my site in that if anyone accesses ANY page that has "affiliateID=53" in the URL (eg 4lancer.net/search.php?format=HTML&affiliateID=53&str=A0C9697D07 ) they are redirected to a different page. Almost always that address format.Thanks Continue Reading
Views : 225
Wednesday 24th of October 2012

Rounding functionality in php  

I'm trying to find a function that rounds a float with 5 decimals UP, with 2 decimals in the resultLike this:4.25359 rounds up to 4.26I can't use round() because that rounds down from .4 and up from .5ceil() can't seem to work with decimals.And... Continue Reading
Views : 222
Wednesday 24th of October 2012

Help with finding GD module for PHP  

Can anyone tell me if GD/GD2 comes with PHP or does it need to be downloaded especially?, because when i installed PHP on my box id did not have GD or GD2, and either do my friends, if it doesn't can anyone tell me where to find it? Continue Reading
Views : 178
Wednesday 24th of October 2012

Loopping Inside a loop  

Hello everyone, I am having a problem output some data. Ill start with the code:$sql = " select company_name, project_name, task_name from c_info inner join p_info using (company_id) left join t_info using (project_id) "; Continue Reading
Views : 188
Wednesday 24th of October 2012

accessing array after $PHP_self submit  

Hi, I posted on this earlier today but I'm still having problems and the thread seems to have gone dead.I have a page(a) which recieved a data from some checkboxes on another page(b) called $selected. Page a then does some more processing and resubmitts giving... Continue Reading
Views : 271
Wednesday 24th of October 2012

Syntax problem in PHP / MySql Fetch_Row  

I am trying to build a simple shopping cart as part of my final year project and I am not too hot on php.I wonder if anyone can help me?I have used a return error to get more details on mt previous error of Warning: mysql_fetch_row(): supplied argument is not a... Continue Reading
Views : 241
Wednesday 24th of October 2012

Novice needs syntax for Form Action command  

I have a script that is working on a server where the command is: Continue Reading
Views : 189
Wednesday 24th of October 2012

Header while doing a write  

I used the $fp to creat a file witht he extention .gcd (this_file.gcd). now i want to send the file to a mail address with the a header of Header('Content-type: text/x-pcs-gcd')how would i go about doing this. I tried with out the header and get nothing so i guess i need the header... Continue Reading
Views : 207
Wednesday 24th of October 2012

newbie php question regarding mail()  

i was wondering if someone could show me how to have a script take in a variable in a url and then mail that variable. i am a veteran C++ programmer and i am writing a program to call a php script.here is an example to illustrate what i'm trying to say.. Continue Reading
Views : 219
Wednesday 24th of October 2012