39,402 Topics

Member Avatar for
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
86
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
176
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
114
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
137
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
84
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
233
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
170
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
64
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
972
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
74
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
144
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
337
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
69
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
119
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
138
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
121
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
200
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
40
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
107
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
102
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
103
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
69
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
86
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
93
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
183
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
145
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
138
Member Avatar for isotope

Hi everybody, I'm trying to read a Microsoft Word file, exported as microsoft xml, with PHP and simple_xml but I can't figure out how to do it exactly. Only things I managed to do are: [CODE] $tempXml = simplexml_load_file(file.xml); $xml = $tempXml->asXML(); print $xml; [/CODE] If I print before the …

Member Avatar for isotope
0
174
Member Avatar for sarithak

HI frnds.. i need a help from u.. now i am going to do a ecommerce gifts website. here i need to change total site from english to french,italie...based on selected language from select box how can i do this..plz help me asap.. is there any software or any procedure …

Member Avatar for diafol
0
97
Member Avatar for cosby

Hi everyone i am having a problem with file upload ownership,i am running apache2 and the default ownership on httpd.conf is nobody nogroup. can someone help me with a peace of php code to change this to my own.

Member Avatar for mschroeder
0
65
Member Avatar for Speedy Hawk

I am only beginner at this. I don't understand this fully, half of it was given to me and other half was my team writing it out. I can't work out how to create a form to edit a table. There is people.php file. Thats the file I want to …

Member Avatar for Speedy Hawk
0
105
Member Avatar for Mujahid MMS

I am starting to learn php and web designing but I don't know how to start so I need your help.Some tutorials and environment on which I will do programmig. Please help me. Email me at <EMAIL SNIPPED> Thanks

Member Avatar for emiola
0
66
Member Avatar for pentest

Hello, just recently I have experience the following error message: "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/ptremail/public_html/admin/newmail.php on line 431" If anyone could help I would greatly appreciate it. I have pasted the entire code below. Thanks! [ICODE]<script language="javascript"> function clear(){ for (i=1;i<=240;i++){ document.getElementById(i).checked=false; …

Member Avatar for prabugenius
0
177
Member Avatar for jober

++++Here is my code in to call the records from the list box that must be display in the datagrid. [code=php]<?php $a = $_GET[$query1]; $b = $_GET[$query2]; mysql_connect("localhost", "root", "") or die ('Error'.mysqlerror()); mysql_select_db("sched"); $query="INSERT INTO try (section,grp) values ('".$a."','".$b."')"; mysql_query($query) or die ('Error Cannnot Insert Records!'); ?> <?php // …

0
84
Member Avatar for smartness

How to include something that is a directory before the file like: public_html/includes/sources/yt.php the file yt.php must include a file which is in: public_html/includes/fetch.php what will it be like? [ICODE]include_once(../file.php)[/ICODE] or?:'(

Member Avatar for diafol
0
146
Member Avatar for qwertyas

i am trying to send SMS to multiple users. SMS string is being generated in a loop and is sent with that loop. The code which does the actual sending is below [icode] $host = "http://alertbox.in/pushsms.php"; $fp = fsockopen("alertbox.in", 80); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { …

Member Avatar for buddylee17
0
79

The End.