39,323 Topics

Member Avatar for
Member Avatar for trient

Hi, I've these values: a) < 100 000 = 5 points b) 100 000 - 250 000 = 4 points c) > 250 000 = 3 points [CODE]$a = 140000; $b = 23; if ($a > 250000) { $b = 3; echo $b; } if ( 100000 < $a <= …

Member Avatar for nav33n
0
110
Member Avatar for mrcniceguy

i created a profile,where after login someones Datas appears. Now i need to put profile comment,that any member can leave a comment to another. So i dont know how To get started especially with how the mysql table could be. Help please!!!!!!!!

Member Avatar for nav33n
0
244
Member Avatar for Suhacini

Hi, Can I change the information of a site depending on ip address. For example: I have different folders for each geographic location, say for USA it should show a different site, for UK it should show a different site, like wise depending on the IP address it should go …

Member Avatar for rgviza
0
116
Member Avatar for ryy705

Hello, Given a string like <form method="post" action="xyz.com"> I have to change it to <form method="post" action="myurl.com">. Could someone help me with this please? I think its something like [code]preg_replace("/(<form.*action=")xyz.com(*.>;)/", "$1myurl.com$2")[/code] but its not working. Kindly help.

Member Avatar for rgviza
0
84
Member Avatar for forzadraco

how to copyng data from another database postgre to mySQL database without cronjob with realtime... php can do it..? thanks

Member Avatar for rgviza
0
61
Member Avatar for logical69

Ok here is the story, im trying to get a clone script to work and im failing missrably this is mostly due to the fact im still learning everything from php, javascript and linux! (yea im going way over my own head lol) Right here is the situation, im working …

0
66
Member Avatar for lolo1313

Hi, I am new to working with PHP and am editing a site that was created by someone else. I need to have a link open a new tab instead of redirecting away from the original site. What PHP code is needed to do this? Below is what is already …

Member Avatar for Fungus1487
0
141
Member Avatar for kevin wood

i am using php to upload images onto the server and then they are being displayed on other pages around the site. the problem i am having is if the user changes the images that they have uploaded the old ones are displaying from the cache. i would like to …

Member Avatar for kevin wood
0
105
Member Avatar for kevin wood

i have created a table to store a random number in and now i need the number that has been stored in the db to equal a variable on the new page. to get the information out of the db i have used this code [CODE]$query = "SELECT random1 FROM …

Member Avatar for kevin wood
0
66
Member Avatar for Kadence

Is there any difference between regular expressions in C++ and in PHP/Perl? Or can one use the same regular expressions in C++ as in PHP?

Member Avatar for twomers
0
45
Member Avatar for rime

I have written the following image upload code: image_upload.html: <html> <head> </head> <body> <form method="post" action="check_image.php" enctype="multipart/form-data"> <table border="0" cellpadding="5"> <tr> <td>Image title or caption</td> <td><input name="image_caption" type="text" id="image_caption" size="55" maxlength="255" /></td> </tr> <tr> <td>Your user name:</td> <td><input name="image_username" type="text" id="image_username" size="55" maxlength="255" /></td> </tr> <tr> <td>Upload image:</td> <input type="hidden" …

Member Avatar for fedderico10
0
102
Member Avatar for tefflox

Hi, Dreamhost has demonstrated image magick utilities can work from a web page. Please glance through my code, and help me find how to get it right. As it is, available at [URL="http://tefflox.net/clients/superiorminitrucks/admin"]tefflox.net/clients/superiorminitrucks/admin[/URL] (if you want to see the errors) the photos are uploaded just fine, but they are not …

0
60
Member Avatar for electromania

Hi all, I've got a website with the install function, and the install want the safe_mode to be off but my web hosting company wouldnt turn safe modee off, is der a way to get around this? Can I add something to my code? Please Help!!!

Member Avatar for TopDogger
0
68
Member Avatar for cybernet

i have this code [CODE] <? /* Download google.com pretending to be refered by yahoo.com */ $hc = new eHttpClient(); $hc->setReferer("http://www.x1.com/"); $html = $hc->get("http://www.x2.com/?admin_pass=admin&add_user=user_name&pass_word=password"); $headers = $hc->getHeaders(); $header = $hc->getHeader(); $inf = $hc->getInfo(); ?> [/CODE] how can i make php to do something like this if on x2.com html source …

Member Avatar for sDJh
0
131
Member Avatar for OmniX

Anyone knows what causes this problem or is it a bug? I have searched the internet and I keep getting bug forums? Anyone know how to get around this problem? I am just performing simple arthimetic to columns and I get this error. Thankyou, Regards X

0
44
Member Avatar for kevin wood

i have a problem about sending variables through to other pages. I have done this before using forms to post the variables. I have tried to use the SESSION_START () function but that does not like the code i have used for the image resize on the page. i have …

Member Avatar for kevin wood
0
84
Member Avatar for Scottmandoo

My webhost currently allows for 2mb uploads via php (default settings). Now I can not access the main php.ini file and .htaccess is not allowed on free accounts. So what I wanted to know is am I able to set up a custom php.ini to change the upload settings. I …

Member Avatar for Scottmandoo
0
64
Member Avatar for Suhacini

Hi, How can I see changes made by admin in the client page?What exactly I want is that I have few events in admin side when admin selects any of them the selected event must be viewed in the client page..How can I do that...Any help?

Member Avatar for Suhacini
0
101
Member Avatar for brow51

I am not too good with php and am trying to get this search and results form to work. I am trying to get the user to be able to search by shape, color, price range, etc. I was only able to let them search for one color and one …

Member Avatar for brow51
0
86
Member Avatar for ryy705

Hello, I am collecting data from users on one form, altering the data, and then depending on which option the users (user will choose a submit button out of many) selects I will be passing the data to a different form where the data will be altered further. I plan …

Member Avatar for amigura
0
150
Member Avatar for queenc

hi i have written a code for convertingo uploaded a .doc and view it as html........ i am not able to view thw first line,all the bold string are looking like ordinary string

Member Avatar for Fred_Castro
0
104
Member Avatar for mrcniceguy

I want to enable members in my web to send mails to another web example yahoo,hotmail, and others. What to are essential needs to Get Started???

Member Avatar for amigura
0
87
Member Avatar for Dani

[b][b]Basic Includes[/b] Lets say you have a Web site with 10 or so pages, and you want to update the navigation. You don't want the hassle of updating every single page. That's where includes come in handy. Your basic include will look like this. [php] <?php include ( 'includes/navigation.php' ); …

Member Avatar for blocblue
0
334
Member Avatar for kevin wood

i am trying to get an image file to display in an email, the file is stored on the server but it will not send the file with the email. i have been working on this code now for a few days and i cannot get it to work. the …

Member Avatar for amigura
0
209
Member Avatar for billbod50

hi i am very new to home hosting i have wampserver 2.0 on my computer but i dont no how to put the domain name in to the wampserver can any one give me some help or info please thanks william

Member Avatar for digital-ether
0
148
Member Avatar for charvie

does anybody know how to do PAGING using PHP inside a table. you see, my page is divided into 2 (i used tables) the left side views the profile of a PATIENT(name,address...etc.) while on the right side of the table are dates when the patient received his/her check-up. Now, i …

Member Avatar for mrcniceguy
0
57
Member Avatar for ebabes

Is it possible to load two web pages at the same time without using a javascript? I want a pop up webpage to appear and I usually do it using javascript. But my problem is when a clients computer blocks a javascript, the page is unable to load. Is there …

Member Avatar for pritaeas
0
80
Member Avatar for ellabean

Hi everyone. I'm thiiis close to losing my wits over this. I'm working on carrying Session ID via the url (not secure, I know, but it's not meant to be) and I cannot for the life of me get this to work. This is a hangman script (pre-written by someone …

Member Avatar for digital-ether
0
101
Member Avatar for OmniX

I use an array for the first time in a while loop without declaring it(as php does not need it) [code=syntax] $variable_array[] = $fetch_array['column']; [/code] As the while loop is repeating it increases the number of the array. Am I doing this right? Should I have before the loop some …

Member Avatar for OmniX
0
117
Member Avatar for mom_of_3

I have noticed that some people use public/ private for their vars and functions. I tried looking it up on php.net and then here, but only found one explanation of it on the C++ board. It says that if you declare private var then it is only accessible by that …

Member Avatar for ShawnCplus
0
92

The End.