39,395 Topics

Member Avatar for
Member Avatar for websurfer

Hello, all: I have this small script where I am tryign to switch sessions based on what url-variable appears on address, as a way to use like a breadcrumb... and so far it only takes the first one, but then the "category" one doesnt catch... it keeps the "pageNum_worksRS" still …

0
61
Member Avatar for genieuk

Hi, Does anyone have a simple script that i could put on my webpages that when a user clicks on a link to download a file it displays something like (File Downloaded XX times) on the webpage. I found many scripts with admin interface etc, but i just want it …

Member Avatar for genieuk
0
306
Member Avatar for WhYuLoOkIn

Hi, I am having a problem using the curl lib with php. What I want to accomplish is to make multiple request pulling xml returned from two different url's that are called with curl. Here is the code: [CODE=php] $BROWSER="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 YFF3 Firefox/3.0.1"; …

0
84
Member Avatar for baudday

I've been working at this and I just can't get this. Can anyone please tell me why this just will not work? [CODE=php] function procNewsStory() { global $session, $database; $admin = $session->username; $date = time(); $title=$_POST['title']; $story=$_POST['story']; $story_id = time(); $q = "INSERT INTO " .TBL_SITE_NEWS. " VALUES ('$admin', '$time', …

Member Avatar for baudday
0
291
Member Avatar for Tonkz

Im getting this error: Parse error: syntax error, unexpected $end in /hsphere/local/home/blah/blahblah.com/home/phonenumber.php on line 188. Problem is line 188 is </html> only. Also, I'm having problem making this code to work, it doesnt display the tables that I want [code=php] <?php $selection = $_POST['person']; $conn = mysql_connect("mrrrr.com","yyyyy","yyfffsd"); mysql_select_db("hhhh_ggg", $conn); // …

Member Avatar for Tonkz
0
109
Member Avatar for joeltonnberg

Hey, I have the following query which I would like to insert into another table which I guess would demand some kind of loop or such. The query: [CODE]$colname_GetName = "-1"; if (isset($_SESSION['MM_Username'])) { $colname_Name = $_SESSION['MM_Username']; } mysql_select_db("db_name"); $query_Recordset = sprintf("SELECT * FROM Table WHERE UserName = %s", GetSQLValueString($colname_GetName, …

Member Avatar for Designer_101
0
89
Member Avatar for fiddler80

I have over 50 sites on a host that provides Cpanel for each site. Through the Cpanel, I can do manual backups of the public_html directory, was well as the MySQL databases for each site, and have had those backups mailed to me quite successfully, but to do each site …

Member Avatar for bbeauford
0
254
Member Avatar for Q8iEnG

I did this video today, showing how to add "Re-generating Image Captcha" To your Scripts to avoid SPAMS! :) Metacafe Link.. [url]http://www.metacafe.com/watch/2723025/how_to_add_captcha_to_your_scripts/[/url] Youtube Link.. [url]http://www.youtube.com/watch?v=WLbxx64FbX0[/url] Enjoy.. ;) Rights to.. [url snipped]

0
78
Member Avatar for SheSliq

i am trying to validate a form so that all required fields are filled before submission. If they are not filled then an error message should appear.. But I keep getting this error: "Parse error: parse error, unexpected '{' in C:\Program Files\wamp\www\template1\updateReceipt.php on line 31 " Here is the code …

Member Avatar for nav33n
0
139
Member Avatar for hacker9801

I was thinking about making an avatar system (like Gaia Online; I've tried befor but it's hard). Can anybody help me with one? I'm gonna make an open source site like Gaia... I can't do it by myself, though.

Member Avatar for jmvazq
0
611
Member Avatar for akshit

Hi. I am working on a php-mysql project. My table contains a field called "ID", which i have declared as teh PRIMARY key. but what i want is, that when the user tries ot insert record B into the table, an **ERROR message** should be displayed, showing that a record …

Member Avatar for akshit
0
132
Member Avatar for raghu6152

Hi Friends, I just want to output the xml using php and mysql. Like If i have data in jan month and feb. I wanted to display that in xml sheet. How to go about this please help me. Regards Raghu

Member Avatar for raghu6152
0
88
Member Avatar for sreya.n

hi all, i have a problem with the array search in php.I have an array like ("apple","orange","mango") and i have a variable as $var="apple 1". Now i want to search this $var is exist in the above array and if so want to retreive that element from the array? that …

Member Avatar for nav33n
0
86
Member Avatar for santhanalakshmi

Hi, Please help me.I am new to PHP.I dont have any idea. For Example,i had set of 100 records in the table. Sample Design:PREVIOUS [U]1[/U] [U]2[/U] [U]3[/U] [U]4[/U] [U] NEXT[/U] Using PHP :if i click 1 (first 10 records must be list out in the web page) and then if …

Member Avatar for darkagn
0
59
Member Avatar for Merlin33069

I included a file in one of my sites via an iframe (simplest solution and by FAR not permanent), just to get a feel for the way it might look on the site However, after adding the iframe to the site, i have no other data, the page is saved …

Member Avatar for sassenach
0
143
Member Avatar for chandanv

hi pls give me the code for verifying the value in the drop down list thanks in advance chandan

0
39
Member Avatar for jyotiu

Hi all i am a newbie and try different things everyday and always come here when i am stuck with something. I want to write a script using curl and php that goes to this link :[url]http://tools.cisco.com/WWChannels/LOCATR/openBasicSearch.do[/url] and then goes through each page for each country capturing a list of …

Member Avatar for cwarn23
0
1K
Member Avatar for masocha

l am a php developer living in Zimbabwe,in need for help on selecting mercants who can help in my acceptance of payements from all over the world at an affordable cost

Member Avatar for pritaeas
0
56
Member Avatar for kapi

trying to get the user input via check boxes in my form. Data is held in an associative array $_POST, but when in processing page where I send the details back to myself I'm not quite sure what to do next. I figure I have to iterate my way through …

Member Avatar for pritaeas
0
53
Member Avatar for omoabobade

i'm currently working on a blog and i want it to get output from the database without refreshing the whole page. please can anybody help cos i'll be most grateful. thanks

Member Avatar for ShawnCplus
0
56
Member Avatar for rEhSi_123

Hello all, I have a bit of an issue, Currently I am working on a forum system. This is the code for when a person click on a forum category. I would like some suggestions as to how I could implement in such a way that if a non user …

Member Avatar for rEhSi_123
0
138
Member Avatar for prawin@123

Hi can any one help me!!! I need to display the latest entries by date and time ie i stored the date as 2009-Apr-16. so that i wrote a query as select * from tbl_projectstatus order by date asc ,time desc" But the above code displays as follows ie Normaly …

Member Avatar for rikcando
0
103
Member Avatar for dipakxyz

Hi , PEARS installed on my demo server and i want to run my script containing timezone but i am unable to run the script, the script is working properly on windows but as oue demo server is on linux i am uanble to run the script on linux,so plz …

Member Avatar for HITMANOF44th
0
67
Member Avatar for madhuprasad

I have created a form with PHP and connectied to database. Now i want to add images through my form and save in MYSQL database. Once i click on SUBMIT button i want to see total profile with image in new window Please provide complete code to add image from …

0
48
Member Avatar for darkagn

Hi all, We are experiencing the following problem with the latest versions of IE and FF in regards to sessions. If anyone has encountered these problems before, any insight would be valuable. [B]In FF:[/B] An ongoing problem where sessions are saved across multiple tabs and windows in the same machine. …

Member Avatar for nutty2chat
0
237
Member Avatar for externalaw

Hello all, I run a student website for law students, and got an amazing present today. A zip file with 1500 html pages with law related material. I need to integrate this into my vbulletin forum somehow. Some of the pages are good as simple posts, and the rest would …

0
51
Member Avatar for srilakshmitr7

If i have 3 records and if i apply random function to it ,i is displaying last two records frequently third record is displaying rarely but i want those three records to be display frequently can any one solve this problem,

0
83
Member Avatar for veledrom

Hi, This is my array and i want to make [2] => 1 to [2] => 4 How do i do it? Thanks [code] Array ( [SESSION] => hs6f5ul7q9dic13nv7crikf0p2 [USER] => Guest [5] => 3 [1] => 3 [2] => 1 [7] => 1 ) [/code] This code doesn't do …

Member Avatar for veledrom
0
63
Member Avatar for winwebsolutions

Hi am newbee to this forum.. feel happy to join with your [urlsnipped]web design[/url] and [url snipped]web development[/url] team... Once again i thank you friends.. have a great day

0
49
Member Avatar for kate@deni

I am new to php. I have any issue that i want to use dynamic links and want to rewrite them. I want to use single page for all the pages but different urls.

Member Avatar for kate@deni
0
104
Member Avatar for maheen123

Hi! I want to know that how can i use buttons to update ( edit or delete) records from the php form directly into the database... Thanks

Member Avatar for BzzBee
0
326
Member Avatar for SKANK!!!!!

everything doesnt make sense. does anyone know of a very SIMPLE good script to make required fields. ive seen a lot but i dont know what they mean. most of them look like they do like nothing or not all the way. i dont want to use javascript because it …

Member Avatar for SKANK!!!!!
0
121
Member Avatar for JoKat

hi, i am a novice and have recently started practicing some php tutorials. there is this bit of code that involves HTTP authentication which makes sense up until this part: [CODE] // connect to database $dbc = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME); // grab the user entered log-in data $user_username = …

Member Avatar for BzzBee
0
102
Member Avatar for shasha821110

Hi, all I am using simplexml_load_file() function to get the rss and change it to the XML and get the elements. But i got the error information like below: [CODE=php]failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable in [/CODE] My code is like this: [CODE=php] $zip = …

Member Avatar for martin5211
0
217
Member Avatar for movieprodw

Hello, I am currently able to upload an image and the info is being inserted into the db correctly. I would like to add a gd function to add 3 image re-sizes into it. locations and sizes /prop_enlarged/ max 600px 400px /prop_listing/ max 405px 270px /prop_thumb/ max 135px 90px I …

Member Avatar for chrishea
0
135
Member Avatar for Jayse

Hi Everyone. I am new to this group and web designing. I am wondering if anyone could please tell me how to page_rewrite. I Web Host has set up my own reseller account and there are error and they told me I could fix it be rewriting the script and …

Member Avatar for HITMANOF44th
0
68
Member Avatar for shasha821110

Hi,all Here is the sql sentence i wrote on my php file. But when i test with it nothing show up which there should have some results?? My idea is :get the sw and ne point, choose every value live inside the rectangle in my database [CODE=php]//zips is my table …

Member Avatar for ShawnCplus
0
87
Member Avatar for marjan_m

Hi, I am trying to implement the following ajax code: [CODE] function create() { obj_t = new XMLHttpRequest(); if(obj_t == null) { alert("Your broweser does not support it"); } } function data() { if(obj_t!=null) { if(obj_t.readyState == 4) { var dv = document.getElementById('tdetail'); dv.innerHTML = obj_t.responseText; } } } function …

Member Avatar for marjan_m
0
131
Member Avatar for cinsPHP

Hi all, Im a still very new to PHP and don't know how to attempt the following: I'm trying to build a dynamic array in a form i'm utilizing. Also I am passing parameters from the url as follows: colour.php?val=3&co1=Red&co2=Blue&co3=Green //where val is the iteration number and co1,co2,co3 is the …

Member Avatar for cinsPHP
0
78
Member Avatar for veledrom

Hi, I have a page called func.php which has several amount of function only. How can i block someone accessing func.php via typing URL/..../func.php ? It should kick the person out from this page? I accecc func.php with calling particular functions stored in it. I was wondering if there is …

Member Avatar for jakesee
0
76
Member Avatar for Designer_101

Hi This may not be a php matter but i'm wondering if it can be done? I have a table like the following: [CODE] <table> <tr> <td>1</td> <td>2</td> </tr> <tr> <td>7</td> <td>9</td> </tr> <tr> <td><<SUM OF THIS COLUMN (8)>></td> <td><<SUM OF THIS COLUMN(11)>></td> </tr> </table> [/CODE] I hope you understand …

Member Avatar for BzzBee
0
109
Member Avatar for Ethan James

Hi Guys I need some help. I am trying to modify a website which is based on template engines and I am not sure how to do the following. I have added a drop down box to the header.tmp and the form action posts the user selection (user_loc) to another …

Member Avatar for Airshow
0
115
Member Avatar for justinmyoung

I have been trying to figure how to implement a "hit counter" for each of my websites in my css gallery, and display the total number of times a person has visited that link (or image). Could anyone lead me in the right direction, so I could get started on …

Member Avatar for Josh Connerty
0
236
Member Avatar for genieuk

Hi, I'm new here, Does someone have a script that asks user to enter there day/month/year and if over xx minimum age they are taken to website, if under age they are told they are under age and redirected to a link i specify. Possibly with a function to choose …

Member Avatar for genieuk
0
265
Member Avatar for jameswoodhouse

Hi there what i'm trying to do is: return a car manufacturer from a MySQL database and have the text returned a hyperlink to the car manufacturer website. The below just returns the manufacturer without a hyperlink: [B]$row['manufacturer'][/B] Would i make a row in the database called 'carmakeurl', store the …

Member Avatar for vidaj
0
205
Member Avatar for superyo

i got this error: [code]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\db.php on line 13[/code] my php code is this: [code=php] <?php //Database Info $dbhost="localhost"; $dbuser="root"; $dbpass="something"; $dbname="somedb"; $table="users"; //Connect to Database $con=mysql_connect($dbhost, $dbuser, $dbpass); mysql_select_db($dbname, $con); $user=$_POST['user']; $pass=$_POST['pass']; $query = "SELECT * FROM $table …

Member Avatar for martin5211
0
261
Member Avatar for kssi89

Hello everyone! I've been able to successfully implement this bit of php that alters the color of tables for each row, but I am having a difficult time implementing it on our current web app. I am thinking I have misplaced something because the output shows one grey row where …

Member Avatar for komang80
0
154
Member Avatar for jbobfunky

Hello Everyone! I am having the most difficult time figuring out a nested loop i would like to perform. The Senario: I have a simple flash image gallery that accepts an XML scheme: The page: [url]http://www.jbobfunky.com/multipage_site/gallery.php[/url] An example of the XML scheme i am trying to render out with PHP …

Member Avatar for jbobfunky
0
125
Member Avatar for nathenastle

Hi this is nathen can you please some one help me the following is my form what i want is when ever i fill an empty value that is nothis in my text box and when click on shareacoupon button i need a message that empty values are not allowed …

Member Avatar for samarudge
0
123
Member Avatar for solocky

Hello all i have (after much googleing) written a php script which when activated appends to a main text file with the text seen below in this exact format type= name=---------------------------------------------------------------------------------------------- # type= name=(USER INPUT HERE) # type= name=---------------------------------------------------------------------------------------------- # what i need is a simple webform with one input …

Member Avatar for solocky
0
153

The End.