39,320 Topics
| |
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 … | |
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 … | |
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 … | |
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: … | |
[B]What is the PHP Script to GET OS Bit Version?[/B] | |
Hello, How do i upload files from php to my ISP / server? Please tell me. Thanks In Advance | |
Can someone help me on making a function that can check for new version of my script! Any Sample Code? | |
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 … | |
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.:'( | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
Hi, How can i run a file called card.exe stored as "C:\Documents and Settings\user1\Desktop\card.exe" with PHP? thanks | |
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 … | |
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 … | |
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 … | |
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 | |
can you give me some samples??thx | |
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 … | |
make a loggin and register page and have it connected to a mysql database using phpmyadmin. Please help! | |
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] | |
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 … | |
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 … |
The End.