39,393 Topics

Member Avatar for
Member Avatar for MDGM

Hi, Im having a wierd problem with my mysql query: I have entries in my database with a rating (out of 10) and a timestamp, and I want to pull out the highest rated entry from the past 30 days. These are the entries I have: [CODE]Primary key ----------------- Rating …

Member Avatar for MDGM
0
110
Member Avatar for serdas

this is code diplays everything in one page how can i make this show more then one page? thak you [code]// Addon Specific Function function viewallusers_display_addon_link() { // Show the link for the menu $display = '<a href="index.php?action=addon_viewallusers_showpage1">View All Agents</a>'; return $display; } function viewallusers_display_addon_page() { // display all the …

Member Avatar for serdas
0
85
Member Avatar for serdas

hi, i have a program that i am using from an open source, it does not have a privete messaging system like this web site has, is there any way i can find some kind of a code to cretae one for the site, is something like that possible, i …

Member Avatar for lordspace
0
175
Member Avatar for nicolemcgrgr50

Can anyone help me i need to make it so that my customers can click a button and it will preform this mysql query *UPDATE Users SET groupid = 'P' WHERE userid = '$id';* and then re-direct them to a specific page. Thanks

Member Avatar for anuspan
0
123
Member Avatar for gpittingale

Invalid query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''12' at line 1 ----------------------------------------------------------------------------------------- Seen as someone kinda helped me with the last thread i posted i have now been issued with …

Member Avatar for FlashCreations
0
85
Member Avatar for serdas

this is a very messy code, i tried to copy from one to other. it displays images and the name and last name of the person. it does it vertically and i need to show let say in two columns so the third image and the name last name falls …

Member Avatar for serdas
0
113
Member Avatar for Morty222

I have a feed for UPS that gets real time shipping costs for packages shipped throughout the US. The feed works fine, except if someone enters AE or AP as the state if they are shipping to a military base overseas. I get this error: 111286:AE is not a valid …

Member Avatar for Salem
0
28
Member Avatar for gpittingale

So i have this script, instead of having the output as what is in th script below, i would like to have it in a table i have had a couple of gos at this and failed......MISERABLY!!!. Could anyone help me out with an example. ps there are more fields …

Member Avatar for Devendar Singh
0
135
Member Avatar for gpittingale

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/sites/miraclehosting.co.uk/public_html/scdc.php on line 169 --------------------------------------------------------------------------------------- Can anyone help here this is doin ma ed in!! gggrrrhhhhh i get the above result when Load the script into the browser. here is the form: [code=html]<form action="scdc.php" method="post" name="chooser"> <label>Select Parish …

Member Avatar for gpittingale
0
176
Member Avatar for Stefano Mtangoo

I have been using WAMP to setup my forum (PHPbb3) and and a site. For some reason I don't know, PHP installation of WAMP was crashing with message can't find logger.dll. I removed my www directory and uninstalled WAMP and re installed, that is when I knew that I forgot …

Member Avatar for cwarn23
0
90
Member Avatar for serdas

hi, i am very very new to php. have a some code like this [code=php]// Get file name from URL and remove any bad filename chars. $url_parts = explode('/', $url); $num = count($url_parts)-1; $file_name = $url_parts[$num]; $badchararray = array(" ", "'", "\"", "$", "&", "%", "-", "#", "^", "*", "(", …

Member Avatar for death_oclock
0
133
Member Avatar for nicolemcgrgr50

I'm new to php, but not to programming, and i'm using very basics of sessions to manage a user being logged into my site. When testing it, everything works until I move away from my site. I would like the session to be destroyed if you navigate away, is there …

Member Avatar for Dani
0
82
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
284
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
229
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
118
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
166
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
61
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
971
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
171
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
73
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
95
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
90
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
143
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
335
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
98
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
68
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
118
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
137
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
119

The End.