39,323 Topics
| |
Hi, I need help for this problem that i'm trying to solve for a while. How do i submit the value into database and view value ? Here's the code: [CODE] if ($id_pac && $id_rej && $data && $id_kon && $lekarz) { // tworzymy zapytanie $id_mat = (isset($_POST['id_mat'])) ? 1 … | |
Hello, I was wondering does anyone have an idea how to make a dropdown menu that dosent repeat values from the SQL Server? Perferably using a while loop. I was thinking of camparing the set values with the new values as it loops through them but im not sure. -Thanks | |
I have been struggling with these two pages for awhile. I have one page with a form which shows different data depending on who is logged in. There is one drop down adjustment field that the users between "Active" and "Bench". The submitted form should be updating that field in … | |
I would like to start development on a web application but really have no idea how to do it. I like to think that I am pretty well versed in PHP, but feel like my coding practices are off. What I would like to know is, what is "the best" … | |
Hai, How to set secure cookie using ini_set function ? | |
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 … | |
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 … | |
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" … | |
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 … | |
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 … | |
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; … | |
[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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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; //*** … | |
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 … | |
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 … | |
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 … | |
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 … | |
| 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 … |
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] | |
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( … | |
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 … | |
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=' … | |
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 … | |
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 … | |
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, … | |
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 … |
The End.