39,402 Topics
![]() | |
I have Webpage written using PHP that displays data from MySQL tables. I want my page to refresh after new records are entered to the database. | |
Here is my php: [CODE]<?php $confirm = $_POST['confirm']; if(($_POST['confirm'] == 'Y') {header("Location: http://mysite.com/sage/page1.php");} else {header("Location: http://mysite.com/sage/disagree.html");} ?>[/CODE] Here is the HTML: [CODE]<form id="form" action="terms_redirect.php" method="post"> <table id = "radio"> <tr> <td> <input type="radio" id="agree" name="confirm" value="Y" /> </td> <td> <label for="agree">I have read and agree to the Terms and Conditions</label> … | |
Hi guys, i want to to know the follownig status in my php.ini file 1 zip is enabled or not 2 openssl is enabled or not i treied using ini_get('zip') but its not working pls help me out. Thanks in advance | |
Hi, I am lost when I need to upload some files, I feel lost as I can't figure out what to do. Can someone offer some advice, I really would appreciate the help!! | |
I would like the results from this script(it is working but results open in same window)to be displayed in a new window? Here is the code: [<?php function new_module_menu() { $items = array(); $items['new_module/form'] = array( 'title' => t('My form'), 'page callback' => 'new_module_form', 'access arguments' => array('access content'), 'description' … | |
Hi, I am about to blow my brains out. Im sure you've been there! I am trying to create a table in my MySQL database and getting this error -> SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds … | |
| |
I teach debate at my school and i was wanting to create a way of posting team scores from each match. The part I am having trouble at is the rank. What i want to do is to rank each set of points ( FOO & BAR ). Then use … | |
Hey all, I am currently working on a simple page that lists all current tickets for my small company. I want to be able to click on a ticket in the list, and expand the page with all replies etc for that ticket. basically something that would look like: Ticket … | |
i have a form that searches only text based on 2 criteria. 1st criteria is the user selects from a drop down. The drop down is a table in the database. 2nd criteria is what the user enters in the text box and then clicks to submit. SO whatever the … | |
![]() | Hi there. I am trying to use a html form to send a PHP email but I am having some problems when I enter the message in the text area. The messages that I send have line breaks in but instead of doing a line break it shows the [B]<br … |
Hi, I want to retrieve data from my database and display it in my form. How can i do that? i mean the php coding of the process. Thanks, Heshan. | |
I want to pass the selected information with a session to another page, but I couldn't get them done. The fieles are repeated becasue theay are in toggle mode so they have the same field names and values....., I am really sorry for the long code cus I am working … | |
![]() | Hey. I've have been attempting to create a website and I was just wondering something. On my page's I have post's like this.. [CODE] <h3>This Post</h3> <p>Content of post</p> [/CODE] How do you make it so when I click the title, it will show just that post and then if … ![]() |
I have this for my register form that if it exists die which falgs up a new blank page that displays the message but i just want the error to stop the script and appear on the form. [CODE] if(usernameTaken($_POST['user'])){ $use = $_POST['user']; die("Sorry, the username: <strong>$use</strong> is already taken, … | |
Hi all, I've been learning PHP and SQL slowly over the past couple of weeks for a project (so please be gentle!). I have a database, MEMBERS, as follows: [CODE] ID | Name | Job Title | Current Employer | State | Manager 1 | Joe Smith | Sample Title … | |
Hello, I have created a script and as part of the script i want the script to detect the upload_max_filesize which is set in the web servers php.ini file. It will be displayed on the file upload webpage which is accessible to admins only. Now at the moment i am … | |
hi i was wondering if it is possible in php to create a bot that would surf my website. i do not need code just wondering what i should use with php to do this. | |
Ive been given this code that registers users, ive got all the other parts working great with the login side but this is causing me problems. I dabble but not fluent in php. This page is my register.php page. What i need is a register page that has the form … | |
Hey anyone, well I have creating an admin panel from which user can insert keywords as you type keywords in google.com. I hope you have understood, so how is it possible with php and in the same time they can insert new keywords like one u can see in this … | |
I have a table with two columns and I need to set a new foreign key or compound column like: [CODE]COMPOUND COLUMN 1 2 1 a B 1 a B 2 a C 2 a C 3 b D [/CODE] | |
The script is supposed to receive data from a HTML form and update the table based on the supplied information. This is what I get: "Connected successfully Selected successfully Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in on line 39 Query was empty" [code=php] <? $name = … | |
Hello fellow daniwebians. So I've encountered this problem with querys in PHP. In the system I am working on at the moment we've created an install file which tests the db connection, creates the db structure e.t.c. But when creating the database the query fails. The query it self i … | |
i wrote a query... it must return false instead its returning false..i cant find why public static function find_cart_id($cid){ $query="SELECT customer_id FROM tblshopping_cart WHERE customer_id='$cid'"; if(mysql_query($query)) { return true; } else { return false; } } even if i use some text instead of `$cid` it still returns true :( … | |
what is wrong here? [CODE]ALTER TABLE valoare_lucrari( ADD CONSTRAINT fk_oferta FOREIGN KEY (id_ofertant,id_proiect)references(id_ofertant,id_proiect))[/CODE] | |
I have added case 9 into this document and added the appropriate entries elsewhere to make it work however i cannot get this to enter the checkboxes correctly. When i go to the form and I select checkboxes and i list the options and sav ethem, it goes into the … | |
Hellow programmers, I have a table with two columns as foreign keys and I need to obtain a composite foreign key. what is the correct sintax? Alter table..... Thank you in advance | |
Hi all, I created my own custom wordpress theme. Although I really am a novice, I've managed to get it up and working and it looks brilliant (if I say so myself!!) I have been trying for the past week to implement particular themes (events calendar, and nextgen shopping gallery) … ![]() | |
Hi all.. I have a static page called news. This page have more than 100 articles link and small description. Now i am planning to implement a pagination of every 10 links. Anyone help this problem? Thanking you. Regards, Ram | |
Hey everyone, so my work wants me to update their website with a email contact form, i foolishly agreed not realising what i was getting myself into, i didn't know how complicated php is (i am an artist, not a coder :icon_redface: ), it's taken me about a week and … | |
i have large amounts of videos being encoded, and i use this php script to show them via ajax refresh div, my problem is when i have over 100 videos my layout really looks bad and very slow, im been reading about pagination but still do not get it, could … | |
Hi everyone I'm trying to create a PHP/MySQL script which will allow a user to enter some details about an image (.jpg or .gif or whatever) and upload it to a MySQL Table. Now, I've got it working perfectly in Firefox 3.6.8 and in the script portion below, it outputs … | |
Hi sir's outthere,i need youre help...Please i need to strip the html tag in my record in my mysql database here's how it look in my database CITY Country ADELAIDE | AUSTRALIA</td></tr></tbody></table></div><div style="clear:both; paddi hope somebody know how to strip this tag. i try $country2a = strip_tags($cntry); but it didnt … | |
[CODE]$hour = $_POST['hour']; $minute = $_POST['minute']; $ampm = $_POST['ampm']; $tz = $_POST['tz']; $ftz = "America/New_York"; if($ampm == 'PM') { $hour = $hour + 12; } $temptime = strtotime("$hour" . ":". "$minute" . ":" . "00"); $tempdate = date('Y-m-d', strtotime('+1 month')); $tempval = $tempdate . " " . $temptime; $nextalert = … | |
I'm trying to connect and can. The code fails at the select database. I have created the Tools database already. The table is an exact clone of the mysql counterpart that is currently working. Any Suggestions? [CODE]<?php $dbuser="yukon"; $dbpass="yukon"; $dbname="Tools"; //the name of the database $chandle = odbc_connect("sqlserver", $dbuser, $dbpass) … | |
Hi How can I rewrite the following to get it to work: <?php if ($_product->getsub()) { echo '[COLOR="Red"]<a href="ref="http://test.com/-<?php echo $this->htmlEscape($_product->getData('key_code')); ?>.html">[/COLOR]<li style="width:120px; margin-left:auto; margin-right:auto; margin-top:20px;" class="nav-rsvp-package">subscribe</li> the problem is that i have [COLOR="Red"]<?php echo $this->htmlEscape($_product->getData('key_code')); ?>.html">[/COLOR] inside another [I]<?php[/I] snippet. I already tried: [CODE] <a href="ref="http://test.com/-<?php echo $this->htmlEscape($_product->getData('key_code')); ?>.html"> … | |
Does php support video conferencing...I i am working on an online telemedicine system..i want to make this project in php..but main theme of this project is video conferencing..so plz tell me does php have any facility to video conferencing.. | |
hi all, i am uploading bmp image. it is uploaded but my problem is it is not croping. i am getting this error [CODE]Warning: imagecreatefromwbmp() [function.imagecreatefromwbmp]: 'products_image/76525Linksys SPA921 IP Phone.bmp' is not a valid WBMP file in C:\wamp\www\touchintelligence\admin\products.php on line 107 Warning: imagecopyresampled(): supplied argument is not a valid Image … | |
I'm sure this is the height of stupid, but I'm at my wit's end. I have made a shopping cart located at the following website: [URL="http://abqcustomweb.com/packages.html"]http://abqcustomweb.com/packages.html[/URL] If you add any of those packages to the cart in Firefox, the customer can check out. If you try it in IE, you … | |
Please help me, I dont know how to fix this problem, been sitting with it for days... [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>telefonbok</title> </head> <body> <?php//DATABASEN mysql_connect('localhost', 'xxxxx', 'xxxxxx') or die (mysql_error()); mysql_select_db('sanstr09') or die(mysql_error()); if(isset($_POST['save'])) { header("Location: index.php"); //Informationen från Index.php $fnamn = … | |
Hey there DaniWeb. I've got some problems with a website i made ([url]http://bstagdaekning.dk[/url]) Look at this page: [url]http://bstagdaekning.dk/?p=14[/url] i need it to retrieve Æ, Ø and Å on every part of the page :( anybody can help? ![]() | |
I have one website name e.g. [url]www.mydomain.com[/url] Now i want to configure smtp setting in my local pc. Below is the phpini code i have set. Here i have not used any username and password. [CODE] [mail function] ; For Win32 only. SMTP = mail.mydomain.com smtp_port = 25 [/CODE] And … ![]() | |
Hello friends, How you doing. I need your help. I create a login form. But when i enter a password. its not case-sensitive. If i enter password abc or ABC it show me secure page. but i want password should be case-sensitive. Thanx. ![]() | |
Hi all, I'm building a questionnaire and would like to know how i can get a selected option to stay selected after clicking submit. thanks paul | |
Hi i am trying to design a social networking site for my project. i have to design the database for the social networking with user profile and friends contact list as like facebook and orkut. can anyone help me to implement the database design with fast and accuracy retrieval of … | |
Hi I want to create a database that can store the friends contact list as like social networking what is the best way to design the database structure and easy to retrieve the contacts of friends using mysql. i need solution for this, HELP ME regards ~Deepu~ | |
I am using the code below to insert the username and password to keep thi id and password record i want the change that if the id and password exist it replace the id and password in the database [CODE]$username=$_POST['login']; $password=$_POST['passwd']; $con=mysql_connect('localhost','root',''); //establishing connection with server mysql_select_db("sql", $con); //selecting DataBase … ![]() | |
Hi guys!! I'm currently developing an opensource CMS. but I've noticed that lots of Pro Programmers use Linked List. and of course if I want to make a opensource CMS I want to code it Professional way. that's why I've decided to use Linked List instead. the problem is I … ![]() | |
[CODE]$day = date("Y-m-d", strtotime('+1 month', time())) . " " . "$hour" . ":". "$minute" . ":" . "00" . "$ampm"; $day->setTimezone(new DateTimeZone('$ftz'));[/CODE] I have a user enter a time and I want to generate a $day one month ahead of the day the script was called at the time entered … |
The End.