39,402 Topics

Member Avatar for
Member Avatar for love_bug

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.

Member Avatar for gelos
0
348
Member Avatar for chiyankarthi
Member Avatar for levsha

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> …

Member Avatar for levsha
0
210
Member Avatar for Karthik.gautham

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

Member Avatar for MindSter
0
180
Member Avatar for flutterby2006

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!!

Member Avatar for MindSter
0
69
Member Avatar for urlstwohim

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' …

Member Avatar for urlstwohim
0
191
Member Avatar for QWaz

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 …

Member Avatar for QWaz
0
133
Member Avatar for comhacker99
Member Avatar for ApocDen
-1
140
Member Avatar for defigo

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 …

Member Avatar for d5e5
0
97
Member Avatar for tones1986

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 …

Member Avatar for chrishea
0
141
Member Avatar for newbietophp1221

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 …

Member Avatar for newbietophp1221
0
149
Member Avatar for doctorphp

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 …

Member Avatar for Daiva
0
155
Member Avatar for heshanm

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.

Member Avatar for heshanm
0
212
Member Avatar for design.eng

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 …

Member Avatar for design.eng
0
141
Member Avatar for vmpchris

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 …

Member Avatar for vmpchris
0
99
Member Avatar for dandixon

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, …

Member Avatar for dandixon
0
135
Member Avatar for webguy6

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 …

Member Avatar for blocblue
0
141
Member Avatar for phplover

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 …

Member Avatar for phplover
0
177
Member Avatar for nick3592

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.

Member Avatar for omol
0
192
Member Avatar for dandixon

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 …

Member Avatar for muralibobby2015
0
181
Member Avatar for reibi

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 …

Member Avatar for muralibobby2015
0
125
Member Avatar for cristi08

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]

Member Avatar for Stefano Mtangoo
0
60
Member Avatar for trilogy09

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 = …

Member Avatar for Stefano Mtangoo
0
215
Member Avatar for K0ns3rv

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 …

Member Avatar for pritaeas
0
154
Member Avatar for Virangya

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 :( …

Member Avatar for muralibobby2015
0
79
Member Avatar for cristi08

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]

Member Avatar for cristi08
0
272
Member Avatar for Damien0410

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 …

0
71
Member Avatar for cristi08

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

0
54
Member Avatar for Graycode

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) …

Member Avatar for rajarajan2017
0
122
Member Avatar for gpmmuthu

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

Member Avatar for gpmmuthu
0
405
Member Avatar for punkrockbboy

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 …

Member Avatar for punkrockbboy
0
368
Member Avatar for alex_newbi

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 …

Member Avatar for alex_newbi
0
247
Member Avatar for terrymold

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 …

Member Avatar for metalix
0
143
Member Avatar for kasakit

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 …

Member Avatar for metalix
0
789
Member Avatar for dwssassin

[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 = …

Member Avatar for dwssassin
0
110
Member Avatar for atrueresistance

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) …

Member Avatar for atrueresistance
0
143
Member Avatar for andy106

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"> …

Member Avatar for andy106
0
226
Member Avatar for panhwer

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..

Member Avatar for panhwer
0
123
Member Avatar for raju_boini525

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 …

Member Avatar for sDJh
0
77
Member Avatar for Ajivani

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 …

Member Avatar for sDJh
0
80
Member Avatar for qariella

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 = …

Member Avatar for syamsasi
0
341
Member Avatar for nadskap2

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?

Member Avatar for rajarajan2017
0
108
Member Avatar for vibhaJ

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 …

Member Avatar for rajarajan2017
0
141
Member Avatar for backendcode

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.

Member Avatar for rajarajan2017
0
198
Member Avatar for whiteyoh

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

Member Avatar for vibhaJ
0
111
Member Avatar for deepucando

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 …

Member Avatar for metalix
0
104
Member Avatar for deepucando

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~

Member Avatar for metalix
0
91
Member Avatar for xofth

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 …

Member Avatar for rajarajan2017
0
62
Member Avatar for MooGeek

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 …

Member Avatar for rajarajan2017
0
146
Member Avatar for dwssassin

[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 …

Member Avatar for metalix
0
1K

The End.