39,402 Topics

Member Avatar for
Member Avatar for markg1978

Hi, I have script below that scans a folder and lists the contents into a drop down box. What I want to do is then select the file and press the delete button. Which removes the file from the folder. I do realise you can use unlink to remove the …

Member Avatar for amac44
0
118
Member Avatar for gym_shorts

I am having a problem with URL redirection using a mail submission form. The form is working and sends the mail successfully, the problem lies when I try to redirect the user to a thankyou.php page using header('Location: http://whatever.com/thankyou.php'); When the form is filled in and submitted, the mailform.php page …

Member Avatar for riaver
0
3K
Member Avatar for andydeans

Hi, this is probably a simple one for someone, but i have on my page a button rather than a text link. when they click cancel i want it to back to my details page but pass the parameter id back. so currently it is like this [CODE] <input type="button" …

Member Avatar for andydeans
0
119
Member Avatar for Boskor

I have another problem with mysql. I have 3 tables (Users, User_status and Analysis). Users and User_status are in relation (Users.User_status_name=User_status.user_status) and Users and Analysis are in relation (Users.Username=Analysis.Tipster). I want to have table in php: [CODE]Tipster Form boskor 1W 1V 0L slopart 0W 1W 2L [/CODE] In table Analysis …

Member Avatar for Boskor
0
129
Member Avatar for Fost

Hi Guys and girls, I'm doing some work with XML documents and one is stored behind a .htpasswd arrangement. I have a script which requests the xml docs using XMLReader. So the problem is the secure xml file, does anyone know of a way to access the file without going …

Member Avatar for Fost
0
209
Member Avatar for printsmarter

we've got an issue on our new test site that i'd like you to be able to solve; we have product pages; example page: [url]http://www.printsmarter.co.uk/newPrinttest/34-Brochures.html[/url] there is a selection of menus on the screen that you can change select different options to show you a price. issue is as follows; …

Member Avatar for macneato
0
204
Member Avatar for mayanktalwar

[CODE]Warning: preg_match_all() [function.preg-match-all]: Compilation failed: range out of order in character class at offset 76 in C:\xampp\htdocs\extracter.php on line 7[/CODE] hey i am not able to figure out what kind of warning is this? the line 7 is this in the code [CODE]preg_match_all("/(http:\/\/)?(www.)?rapidshare\.com\/[0-9A-Za-z]+\/[0-9A-Za-z]+\/[0-9A-Za-z_-.]+/",$contents1,$out1);[/CODE]

Member Avatar for pritaeas
0
298
Member Avatar for niths

hi all, i am having a page where i can select a projectname from the dropdown box(the project names will be cuming from database) and below that there is a list of users with checkbox. so i wil select a projectname and select one or more users for that project …

Member Avatar for niths
0
148
Member Avatar for niths

hi all, I had a page.It works fine in mozilla.But i am getting problem with Internet Explorer. The problem is...In my page i can add users and they can be seen in a table on the same page.so this is fine with mozilla,but in IE i can see the existing …

Member Avatar for diafol
0
83
Member Avatar for wemustdesign

I have a form, I have successfully passed the username from jquery [CODE] $.post("http://www.photographycourses.co.uk/cpl/cplfunctions.php?action=checkUsername", { username: username} ); [/CODE] to php script. The php script checks the database to see if the username exists: [CODE] if ($num >=1){ echo= 0; }else{ echo= 1; } [/CODE] How do I pass the …

Member Avatar for rajarajan2017
0
87
Member Avatar for zaki_bwz

Hello. i have a trouble with my php and javascript code. I want to get database from form that use javascript that use onSubmit as form validator. It work when i refer to another page as addDb.php then add to database. I want to stay on current page then php …

Member Avatar for blackhole
0
212
Member Avatar for azegurb

Hi all, I have taken simple CMS script from internet but there are such things that i dont understand them below is the code [CODE]<?php //////////////////////////////////////////////////////////////////////////////////////// // Class: DbConnector // Purpose: Connect to a database, MySQL version /////////////////////////////////////////////////////////////////////////////////////// require_once 'SystemComponent.php'; class DbConnector extends SystemComponent { var $theQuery; var $link; //*** …

Member Avatar for alanwdaniweb
0
123
Member Avatar for brenton_77

I am currently trying to create a live search box that as I type it will start displaying results that match. Here is an example [URL="http://www.w3schools.com/php/php_ajax_livesearch.asp?output=print"]http://www.w3schools.com/php/php_ajax_livesearch.asp?output=print[/URL] but it retrieves its data from an XML file, I need mine to retrieve from a column called FirstName within a table of an …

Member Avatar for digital-ether
0
643
Member Avatar for commandgeek

Does anyone know if it's possible to have several text fields that place the data into different spots in the same web page. If needed I could just use two pages, it doesn't really matter. I've heard this requires a PHP script, but I'm not sure how to set this …

Member Avatar for diafol
0
127
Member Avatar for nevergone

Hi, Inside [url]www.sitename.com/games/[/url] I have [url]www.sitename.com/games/arcade_game1/[/url] [url]www.sitename.com/games/arcade_game1/game.php[/url] [url]www.sitename.com/games/arcade_game1/arcade_game1.swf[/url] What I want is to allow access to the game.php only if data is sent from the swf file. Eg: arcade_game.swf is embeded on [url]www.sitename.com/games/arcade_game1/index.php[/url] You start the game,and then swf sends some data to the game.php,and the game.php echo'es back some …

0
55
Member Avatar for PixelatedKarma

Good Afternoon Everyone; Let me first start by apologizing to the moderators in advance if this is in the wrong forum but it is php / mysql related and I cannot find a place suitable for this thread. A few weeks back I had a discussion on these forums about …

Member Avatar for PixelatedKarma
0
105
Member Avatar for kirtan_thakkar

I have created one php file which open a mysql database in my local system... I want to know that i have created a database in PhpMyAdmin.. What would be the user and password.. And how to run that php file.. Can I run it in a web browser to …

Member Avatar for rajarajan2017
0
108
Member Avatar for niths

hi all, can we call the parameter like this. And pass the value to javascript.. [CODE]<?php $sql3="select userid from projectassign where projectassign='$projectassign'"; mysql_error(); $idresult=mysql_query($sql3); $idarry=mysql_fetch_array($idresult); ?> <td><select id="prolist" name="projectassign" onchange="return enable(<?php echo $idarry;?>)">//can we do like this.[/CODE]

Member Avatar for storm123
0
157
Member Avatar for hassal

I have a problem to retrieve the user id logged on joomla 1.5 from an external php script, I tried the following code but the problem is that sometimes it works very well and sometimes not work anymore : define( '_JEXEC', 1 ); define('JPATH_BASE', dirname(__FILE__).'/../..'); define( 'DS', DIRECTORY_SEPARATOR ); require_once( …

Member Avatar for sourcebits
0
168
Member Avatar for ayesha789

This is my form: I want to calculate Units Billed when user enter present and previous reading before submission. [CODE] <form action="EIMS_North_Inserted.php" method="post"> <table class="mytable" align="center"> <tr> <td><label>Site ID <span class="small">Example N-WAH-8620</span> </label></td> <td> <input type="text" name="a" id="course" value="" class="input"/> </td> <td> <label>Previous Reading <span class="small">Regular bills</span> </label></td> <td> <input …

Member Avatar for ayesha789
0
223
Member Avatar for fawad123

My problem is very easy. I have written the following PHP code to generate the arrays of textareas: for ($i=0; $i<length; $i++) { echo '<textarea type="text" name="username'. $i.'" cols="60" rows="4" onkeydown="check_username(this.form.username'. $i. '.value)">'. $sentences_data [$i]. '</textarea> <span id="username_label"></span><br/>'; } The Java function is function check_username(username) { if (ajax) { ajax.open('get','testuser.php?username=' …

Member Avatar for fawad123
0
120
Member Avatar for methuselah90

hi guys really i don't know what im doing wrong... i am trying to process multiple radios with mysql. the first step has involved me echoing the results on the process page. each time i select any radio option it simply displays the first row result. this is that i …

Member Avatar for vibhaJ
0
88
Member Avatar for nabilamn

my testing folder in my site is red. perhaps anyone can help me to identify what is the problem because i got the database connection using phptriad and everything goes well because i can view my database by dreamweaver8. whats wrong with my site folder when i click to view …

Member Avatar for nabilamn
0
115
Member Avatar for muralibobby2015

hello.. i am using facebook sharer for share products which is in my website into facebook. i tried all the ways to do this..but i don't know where is the problem. when i am clicking the facebook icon in mysite then it redirecting to facebook and not displaying product name, …

0
82
Member Avatar for jhonnatas

hi friends!i have database with "events" table,then the user clicks on the "events" link on the index page and it searchs in the database all the events loads a page with links to the events. example: january events ( a link to january events) february events (another link) if the …

Member Avatar for vibhaJ
0
89
Member Avatar for Barrett1

[CODE]<?PHP $results = mysql_query("SELECT * FROM messages, comments WHERE messages.user_on='$user2' AND comments.msg_id_fk = messages.msg_id ORDER BY messages.msg_id, comments.com_id DESC") or die(mysql_error()); ?>[/CODE]

Member Avatar for Barrett1
0
88
Member Avatar for griffith

is it possible to order a query by another query by mysql_num_rows? if so, can someone please tell me thanks $query2 = doquery("SELECT id FROM table_name2 WHERE id='$thisid'"); $idcount = mysql_num_rows($query2); I tried this: $query = doquery("SELECT * FROM table_name ORDER by mysql_num_rows($query2)"); AND $query = doquery("SELECT * FROM table_name …

Member Avatar for scaiferw
0
93
Member Avatar for rameshreddy

hi to all, plz visit this page, [url]http://www.stubhub.com/new-york-yankees-tickets/yankees-vs-astros-6-11-2010-898499/[/url] and i need right side table values of all pages(means price, section, row, etc) i tried but i can't, i tried class_http.php too.........plz help me

Member Avatar for rameshreddy
-1
68
Member Avatar for davidjennings

Hi All, I am trying to pass the value from drop down menu generated from the database and I am trying to pass the value from the first drop down selection to the next the value in red is the variable. I have tried the $category_id=$nt['category_id']; $category_id=$_GET['category_id']; but this does …

Member Avatar for scaiferw
0
99
Member Avatar for dalip_007

hi can any one please tell me how can i increase sql packet size in xampp server? i am getting an error like "Mysql packet size is 1MB and it is lower than the size of the file GeoIPCountryWhois.csv which is 9MB. " Thanks

Member Avatar for xylude
0
163
Member Avatar for niths

Hi all, i had written a query [CODE]$sql3="select userid from projectassign where projectassign='$projectassign'"; mysql_error(); $result3=mysql_query($sql3); $num1=mysql_num_rows($result3); $i=0; while ($i < $num1) { $userid=mysql_result($result3,$i,"userid"); echo $userid; $i++; }[/CODE] so now i am getting some userid's. Now there are some checkboxes present in a table of users.Based on the query, userid's obtained …

Member Avatar for sergb
0
118
Member Avatar for zia zia

Hello Guys... I'm a novice in both php/mysql. I'm creating an application and have many problems with it.I need help with some of the areas. First my application is a multiple forms based. The first page is that an admin logs into it by authenticating with mysql (This part I've …

Member Avatar for amac44
0
214
Member Avatar for cthoes

it would be really great if any one of you could help me out difference between the following to connection to database 1 $connection = DB::connect("mysql://$db_username:$db_password@$db_host/$db_database"); 2 $con=mysql_connect(servername,username,password);

Member Avatar for Designer_101
0
71
Member Avatar for lifeworks

Im building something that awkwardly resembles Facebook, to use as an intranet... and as such, the system allows you to organise meetings. In my attempt to make this thing useful, I thought it would be cool to email everyone thats invited to the meeting an 'Outlook meeting Request', which I …

Member Avatar for nquinlan
0
491
Member Avatar for Makall

I tried using the example at [URL="http://www.w3schools.com/php/php_includes.asp"]http://www.w3schools.com/php/php_includes.asp[/URL] [CODE=menu.php]<a href="/default.php">Home</a> <a href="/tutorials.php">Tutorials</a> <a href="/references.php">References</a> <a href="/examples.php">Examples</a> <a href="/about.php">About Us</a> <a href="/contact.php">Contact Us</a> [/CODE] [CODE]<html> <body> <div class="leftmenu"> <?php include("menu.php"); ?> </div> <h1>Welcome to my home page.</h1> <p>Some text.</p> </body> </html> [/CODE] I tried this: [CODE] <div id="topbar"> <form method="post" action="parser.php"> <p>URL: …

Member Avatar for digital-ether
0
340
Member Avatar for dalip_007

Hi all i am tracing ip addresses of all the site visitor using $_SERVER['REMOTE_ADDR']; and its working fine, But i want to exclude all ip starting from 172.122.*.* . i want to put "if" condition but don't know how to track these first two figure. can anyone please tell me …

Member Avatar for xylude
0
74
Member Avatar for Mongooseman

Last summer I took a job working on a small company's website. At first I just added some pages they wanted, but by the end of the summer, I rebuilt it from the ground up. The original version looked like something from the nineties, complete with scrolling text and a …

Member Avatar for Mongooseman
0
162
Member Avatar for maunica

please can any1 tell me what is the problem with this delete code?? [CODE]<?php $con = mysql_connect("localhost","username","pswd"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("dbname", $con); $val=$_GET['teachers']; mysql_query("DELETE FROM teacher WHERE title='$val'"); mysql_close($con); ?>[/CODE]

Member Avatar for Manuz
0
85
Member Avatar for kirtan_thakkar

Hi, I am beginner in PHP and MYSQL ... Before using mysql i have created database in text files.. Now I have to convert it into the table of mysql database.. The things i want to do is .. first open the specific folder and into that open the sub …

Member Avatar for digital-ether
0
128
Member Avatar for bashaash

Hi everyone i have maked pop upp audio player play.php and the i want to my url adress to appear like this [CODE]http://www.mydomain.com/play.php?id=1[/CODE] now it appears this [CODE]http://www.mydomain.com/music.mp3[/CODE] and here the pop upp player Ex. play.php [CODE]<?php $mURL=$_REQUEST['id']; ?> <object id="p67" height=64 width=360 border="0" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"> <param name="URL" value="http://www.mydomain.com/<?php …

Member Avatar for rajarajan2017
0
659
Member Avatar for LalinM

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/a1420653/public_html/processform.php on line 46 Here is the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php // include MySQL-processing classes require_once 'mysql.php'; try{ // connect to …

Member Avatar for silviuks
0
1K
Member Avatar for kirtan_thakkar

Hi, I am beginner in PHP and MYSQL ... Before using mysql i have created database in text files.. Now I have to convert it into the table of mysql database.. The things i want to do is .. first open the specific folder and into that open the sub …

Member Avatar for drjohn
0
118
Member Avatar for davidjennings

I am trying to populate a dropdown list using <select><option> and on the selected option pass the values to another page. I have been trying a lot of things over the las two days and I have finally decided to go to the community for assistance. The data is displayed …

Member Avatar for davidjennings
0
277
Member Avatar for Elehas

I'm not sure how many users on here are familiar with Drupal. I have an issue with views. I have two view displays and am displaying each in a separate block. The problem is that each display is pulling information from the same content type and I want it to …

Member Avatar for sourcebits
0
64
Member Avatar for digiplaystudios

Hi There, My website is a search engine and on the home page it has the 'total number of searches performed: 123,456' - This is running simply by counting the total number of tags (it counts the entries in a MySQL table). Is there any way of it automatically updating …

Member Avatar for vibhaJ
0
98
Member Avatar for keyroche

Hello! I am creating a database driven site that is a directory of businesses. I have a page that displays the categories and a table full of categories in the mysql database. I have a while statement get the categories that start with a certain letter and echo them on …

Member Avatar for rajarajan2017
0
99
Member Avatar for rameshreddy

hi, iwant data from [url]http://www.stubhub.com/new-york-yankees-tickets/yankees-vs-astros-6-11-2010-898499/[/url] in that right side div of all pages data, how can i get, plz help me.. thanks in advance

Member Avatar for chrishea
0
360
Member Avatar for demodav

For all those people who were like me at one time doing the long process of $thing1 = $_GET['thing1']; $thing2 = $_GET['thing2']; ... $thing1 = $_REQUEST['thing1']; $thing2 = $_REQUEST['thing2']; ... $thing1 = $_POST['thing1']; $thing2 = $_POST['thing2']; ... $thing1 = $row['thing1']; $thing2 = $row['thing2']; ... etc. we probably all have done …

Member Avatar for scaiferw
0
278
Member Avatar for scaiferw

This code does a nice job reading the members from my database and setting up a form with checkboxes for each member in one long single-column list. What I need to do is to write some sort of loop that sets out 3 or 4 columns and splits the names …

Member Avatar for scaiferw
0
222
Member Avatar for tulipputih

Hi, anyone can help me with getting the check box value? this is my code. Thank you [CODE]<HEAD> <SCRIPT LANGUAGE="<strong class="highlight">JavaScript</strong>"> function getSelectedCheckbox(buttonGroup) { // Go through all the check boxes. return an array of all the ones // that are selected (their position numbers). if no boxes were checked, …

Member Avatar for diafol
1
140

The End.