39,320 Topics

Member Avatar for
Member Avatar for aparnesh

The project specs requires that I send some data to a remote server, where records based on the data that I send will be searched from a MySQL db, and returned to the caller. I developed a class that resides in the remote Web server with MySQL. The local php …

Member Avatar for aparnesh
0
280
Member Avatar for ade92uk

I have used preg match to find in a page all img tags: [CODE]<(img)[^>]*?>[/CODE] Can someone please tell me how i would check if it has a full url and if it does not replace it with a full url from a variable called $link2. I would also like to …

Member Avatar for jrdark13
0
227
Member Avatar for tyop

I'm having a problem with newline characters and nl2br(), Basically I have a form with a textarea, it reads from a XML file and puts the contents into the text area. Then changes can be made to the text, button clicked, XML updated. Viewing the XML after it gets updated …

Member Avatar for mschroeder
0
116
Member Avatar for redgem

I have a database that I want query and pull an users specific details into a "$profile" variable. the url would be: "[I][url]www.website.com/profile.php?id=12345[/url][/I]" Thus, I use the $_REQUEST["id"] to put the id number into a variable and then I query the database using this id number. The code is below: …

Member Avatar for jrdark13
0
156
Member Avatar for allhimachal.com
Member Avatar for Emma1

Hello, How do i upload files from php to my ISP / server? Please tell me. Thanks In Advance

Member Avatar for diafol
0
60
Member Avatar for smartness

Can someone help me on making a function that can check for new version of my script! Any Sample Code?

Member Avatar for almostbob
0
968
Member Avatar for JukesK

Hi, okay im new to coding and got thrown in by my manager straight into .php without even looking at basic.. I have included my coding for a standalone webpage that is to be placed onto the IT systems purely to disect the php helpdesk ticket system and display the …

Member Avatar for JukesK
0
169
Member Avatar for dannybarh

i have finished installing iis,mysql,php, but my website is still not working. do i have to install anything apart from what i have install,pls. help.:'(

Member Avatar for inzomniac
0
72
Member Avatar for jlochhead

Hello everyone, I would like to include HTML from an external file, store it in a variable and then echo it, like so: [code=PHP] $html = include("stuff.html"); echo "$html"; [/code] Everything in the code is working ok, except for the fact that I get a 1 echoed back after the …

Member Avatar for diafol
0
92
Member Avatar for kittyponzo

This is driving me nuts!!! Is there anyway to have one checkbox with one value in a form, that simply stores that single value into a single field in mysql... without using any arrays or imploding / exploding things and all that nasty stuff. I just want to seperate the …

Member Avatar for diafol
0
89
Member Avatar for rutaba

the problem i am facing is that iam istalling WAMP5 and php-5.2.4-win32-installer.msi. after installation wamp works but when i try to connect to my admin for data base it gives following message.. "Cannot load mysql extension. Please check your PHP configuration. - Documentation" so plz any one can tell me …

Member Avatar for Stenna1
0
140
Member Avatar for redgem

The full error is: Parse error: syntax error, unexpected T_STRING in .../cgi-bin/register_login.php on line 33 The code is set to check if an email exists in the MySQL database. If the email does exist, then it checks the password and if both agree loads the users account into an array. …

Member Avatar for redgem
0
330
Member Avatar for chicago1985

I am using PHP 5.2.5 to insert record into Oracle 9i. For my database input I was getting two duplicate record inserts when I only needed just one record. Here is what I had: [code] require_once('oraConnect.php'); $query = "insert into cityTable values (1, 'George')"; $stmt = oci_parse($db_conn, $query); oci_execute($stmt);[/code] After …

0
96
Member Avatar for khr2003

I have found while i was surfing the intent a function that shows how long a topic was posted. this is the function: [CODE]function RelativeTime($timestamp){ $difference = time() - $timestamp; $periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade"); $lengths = array("60","60","24","7","4.35","12","10"); if ($difference > 0) { // this …

Member Avatar for khr2003
0
66
Member Avatar for ade92uk

Can someone please tell me how to replace any code before a particular div, this is what i have so far: [CODE] $pattern1 = "/^<!doctype html>[a-zA-Z0-9._-]$/"; $replacement = '${1}1,$3'; preg_replace($pattern, $replacement, $ch); [/CODE] I want it to replace absolutely anything it finds before a particular word which will be specified.

Member Avatar for ade92uk
0
116
Member Avatar for emhmk1

Hi there, I have recently added a login system to a site i'm doing and i'm stuck on something thats getting quite annoying! The user registers then gets an email with an link to follow to activate the account. The problem is the $link in the email is just text …

Member Avatar for emhmk1
0
134
Member Avatar for nishant52

I have some important PHP scripts on my server. My problem is that with the help of a download manager, the user can download those scripts and thus can view the entire source code. For e.g:- If my php script's URL is [url]www.mydomain.com/index.php[/url] Then the user is able to download …

Member Avatar for almostbob
0
117
Member Avatar for nmcgoo108

Hey Guys, I just set up a contact form on my site and used an image as the "send" button. When I get an email from the form, I get x= some number and y= some number. So the form is sending the coordinates where the user clicks on the …

Member Avatar for nmcgoo108
0
198
Member Avatar for veledrom

Hi, How can i run a file called card.exe stored as "C:\Documents and Settings\user1\Desktop\card.exe" with PHP? thanks

Member Avatar for buddylee17
0
38
Member Avatar for desiguru

In my mysql data is something like this Name 1.0 Name 6.0 Name 5.2 Name 4.8 Name 10.00.258 now when I short that column it shows up like Name 6.0 Name 5.2 Name 4.8 Name 1.0 Name 10.00.258 I want that 10 to be on top Is there any way …

Member Avatar for desiguru
0
104
Member Avatar for arvindikchari

Hello I have a template creator script where the user pays for a template and then downloads it. What i want is this: there should be Download Template button on the page which should be initially disabled. In an IFRAME within this page, the user will be directed to paypal …

Member Avatar for buddylee17
0
100
Member Avatar for rajeesh_rsn

hi What is wild card search ? How can make it using php and mysql to search a "shop" from a mysql table which contains as follows |Shop Name | Address | Phone Number | Details I need to search all in this details and show the results.. Please help …

Member Avatar for jrdark13
0
100
Member Avatar for prethum

hi How to reverse a string without using strrev() i want the output to be like Two dogs in the farm owT sgod ni eht mraf thank you

Member Avatar for prethum
0
67
Member Avatar for palaboy
Member Avatar for Speedy Hawk

I am only beginner in this. I don't understand all of code, most of it was given to me to work on. I am trying to do checks on MySQL on workshift table. There is dayshift, eveningshift and nightshift (Other two fields are shiftid, name and date). They are drop …

Member Avatar for diafol
0
84
Member Avatar for ~gamer4life~

make a loggin and register page and have it connected to a mysql database using phpmyadmin. Please help!

Member Avatar for Ole Raptor
0
91
Member Avatar for jober

here the code, [code=php]<?php $a = $_GET['Cors']; $b = $_GET['sem']; $c = $_GET['yrlvl']; mysql_connect("localhost", "root", "") or die ('Error'.mysqlerror()); mysql_select_db("sched"); $query="INSERT INTO sked (crs,sm,yrlvl) values ('".$a."','".$b."','".$c."')"; mysql_query($query) or die ('Error Cannnot Insert Records!'); ?> <?php the listbox is "sem", tnx[/code]

Member Avatar for diafol
0
173
Member Avatar for isotope

Hi everybody, I know I'm still a noob with php, but I feel so sad I couldn't manage such a simple (at least apparently) issue. Here's what I want to achieve, in general: - I'm reading XML files via simple_xml - while reading I would populate an array with some …

Member Avatar for isotope
0
142
Member Avatar for emiola

I have been finding it difficult to understand the error statement I recieved from my php file using the code below. I keep on getting this result: [COLOR="Red"]Parse error: syntax error, unexpected T_STRING, expecting '(' in /home/username/public_html/application_form.php on line 28[/COLOR] [code]<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for mschroeder
0
136

The End.