39,326 Topics

Member Avatar for
Member Avatar for bradly.spicer

Hello, I'm posting again regarding as to why my php code won't process the delete.php Index.php: <div id="DeleteFile"> Delete A Script: <form action="delete.php"> </html> <? $path = "uploads/"; $handle = opendir($path); echo '<select>'; while ($file = readdir($handle)) { if (substr($file,0,1) != ".") { echo "<option value ='$file'>$file</option>"; } } echo …

Member Avatar for adam.adamski.96155
0
217
Member Avatar for opawix

if (@$_GET['action'] == "Save") if(@$_GET[idnum]==null || @$_GET[fname]==null || @$_GET[lname]==null||@$_GET[midin]==null||@$_GET[gender]==null||@$_GET[bdate]==null||@$_GET[course]==null||@$_GET[year]==null||@$_GET[address]==null||@$_GET[cnum]==null) { echo "<font size=5><center>Fill-Up First the Provided Information<br><button type=button onclick=history.back();>Back</button></center></font>"; } else { @$result = mysql_query("insert into students (idnum,fname,lname,midin,gender,bdate,course,year,address,cnum) VALUES ('$_GET[idnum]','$_GET[fname]','$_GET[lname]','$_GET[midin]','$_GET[gender]','$_GET[bdate]','$_GET[course]','$_GET[year]','$_GET[address]', '$_GET[cnum]')"); if(mysql_error()) { echo "<font size=5><center>ID Number: $_GET[idnum]. Already Exist(it must be unique)<br><button type=button onclick=history.back();>Back</button></center></font>"; } else { echo "<font …

Member Avatar for opawix
0
301
Member Avatar for louie540

Hey. I have a website that is user submitted which has a repot button and the Google crawler keeps spamming that button. I am aware of robots.txt but it seems that nothing is working to stop Google from clicking it. So instead, I'd like to assign the link an ID …

Member Avatar for Igal-Incapsula
0
305
Member Avatar for pore

Hey guys, I'm currently experimenting with WURFL; I tried to set up a WURFL File to track my own browser and later other devices and browsers. However, it is an example of the o'reilly book " Mobiles Web von Kopf bis Fuß" or English title Head First Mobile Web". Can …

Member Avatar for pritaeas
0
178
Member Avatar for GhuleVishal

I have installed php mysql and apache but when I run my php program browser ask me to download that file. but required output is not appear.

Member Avatar for broj1
0
161
Member Avatar for adeyombo

I integrated my website to an e-payment platform, and after processing the payment, it redirects to a page with a dynamic url that is like this: http://www.abcdef.com/paymentsuccess.php?TransactionReference=2012101020201015T&OrderID=61373444. and i have a page created as paymentsuccess.php. The question is this: what code snippet can I put inside this paymentsuccess.php to make …

Member Avatar for Bachu
0
202
Member Avatar for ratanji

i want to take the attendence of the students from database...if they once punch-in then i want to disable it upto clicking the punch-out button if browser 've been closed ! so how can i get it can pls anyone help me :) :))

Member Avatar for leviathan185
0
1K
Member Avatar for jordo76

hi guys i keep getting this error message 1046 - No database selected select configuration_key as cfgKey, configuration_value as cfgValue from configuration DATABASE_TEP_DB_ERROR and also at the end of the insulation i get this message any help please its doing my head in Warning: mysql_num_rows(): supplied argument is not a …

Member Avatar for LastMitch
0
279
Member Avatar for developerwwe

We want to develop a website similar to http://shoesofprey.com/ functionalities for Interior Decor Objects using PHP Language. We want to use a custom script (without any flash functionality) for this purpose so that user can customize the product by changing the color, type and attribute and can also see 360 …

Member Avatar for diafol
0
1K
Member Avatar for geneh23

Hey everyone, No errors here but I was wondering..is there an easy way to simply "add" an administrator in a log-in script to redirect to a certain area of a website that the administrator can only access? Any advice would be greatly appreciated :)

Member Avatar for diafol
0
537
Member Avatar for Dendei

hello! i have a function in my C# code that returns a string array. and when i test my function in WCF Test Client i get Name Value Type (return) length=4 System.String[] [0] "DE" System.String [1] "DK" System.String [2] "NO" System.String [3] "SE" System.String **code if i do var_dump on …

Member Avatar for Dendei
0
600
Member Avatar for ismael ahm@d

i have three db tables products product_id- Name 1 | hairoil 2 | lotion 3 | cream Countries country_id- Name 1 | UAE 2 | France 3 | UK Now i wanna that when select multiple countries for one product from Html form, then in third db table should insert …

Member Avatar for ismael ahm@d
0
9K
Member Avatar for bradly.spicer

Hey everyone, Been working on a php snippet which finds the names of all the files in a Directory and populates them into a drop down box. Which would then allow me to select that file, click a submit button and delete them. Here is what I have SO <?php …

Member Avatar for bradly.spicer
0
214
Member Avatar for groma1

Hi, just started to learn php so fairly new to the concepts. Need some help making a sticky select form from an array. This is what i have so far: print '<label>Select your favourite colours:'; print '</label>'; print '<select name="colour" multiple="multiple">'; $colours= array('R'=>'Red','O'=>'Orange','Y'=>'Yellow','G'=>'Green','B'=>'Blue','P'=>'Purple','Pi'=>'Pink'); foreach($colours as $colour => $cname){ if($csel === …

Member Avatar for Bachu
0
158
Member Avatar for cssweb

hello guys how are you today i am not good with function so i want to ask a question how can i do that by function i have tried but i am Failure also how can i protect the input by this way by using mysql_real_esacpe,strip_tags .... $getidtopic=$_GET['id_topic']; function isint …

Member Avatar for diafol
0
113
Member Avatar for HunainHafeez

guys, i developed Students alumni project,in php + mysql where students registers and check their online status and view his academic records, i completed evaluated my project on local host, WAMP(apache), and my project worked fine, all db connection, data access everthing is fine on local host but on Online …

Member Avatar for HunainHafeez
0
211
Member Avatar for maori

hi guys having some problems and for the life of me cant work it out how can i get all users that have a registerd date of 3, 6, 12 months which i think i can make as an array and get the users that have been registerd at these …

Member Avatar for diafol
0
156
Member Avatar for nicoalmighty

hi all, please kindly give me advice and help me on my project this is just a piece of it. thanks and God Bless. i got this database error **A PHP Error was encountered Severity: Notice Message: Undefined index: username Filename: controllers/login.php Line Number: 20 A PHP Error was encountered …

Member Avatar for LastMitch
0
207
Member Avatar for bafaqih

Hi, i made an HTML contact form with the following fields name, email and message and i want to send it to my gmail address with SMTP authentication. Please can anyone guide me with a step by step process? i am new to PHP. i found the script for SMTP …

Member Avatar for LastMitch
0
331
Member Avatar for asrsmunna

Hello Admin and other PHP experts..!! small question, how to send email to the email IDs, that are listed in a database, i want to sent it as "noreply(at)mydomian(dot)com" and the receipents should be in BCc. And the mail i send is a HTML Advertisement of my service. help me …

Member Avatar for rayidi
0
251
Member Avatar for Riu 2009

Hi everyone :) i am doing my final year project in PHP and MYSQL and i am just at beginner level of php.i found this forum really helpful. in my teacher module i allowed the teacher to upload video, audio, mp3 and image files and here is my code... i …

Member Avatar for Riu 2009
0
156
Member Avatar for McLaren

Hello, I am stuck with tryting to upgrade PEAR fri 1.7.2 to newest version. I want to install PHP unit and it does not like 1.7.2 version of pear. I managed to get till there: C:\Users\Darius>pear upgrade pear WARNING: channel "pear.php.net" has updated its protocols, use "channel-update p ear.php.net" to …

Member Avatar for McLaren
0
309
Member Avatar for tonyfonseca

<html> <head> <basefont face="Arial"> </head> <style> body { background-color: #E6E6FA; } </style> <body> <?php error_reporting(E_ALL); if (!isset($_POST['Submit'])) { // form not submitted ?> <H3>Search Records Application</H3> <form action="search.php" method="post"> Search <input type="text" name="search"> <select size="1" name="dropdown"> <option value="" selected>Search By...</option> <option value="BookID">Book Id</option> <option value="transactiondate">Transaction Date</option> <option value="storename">Store Name</option> <option …

Member Avatar for tonyfonseca
0
3K
Member Avatar for mmcdonald

I have three scripts running under crontab and theyre executing perfectly (see the log below): Oct 9 10:40:01 servercharlie CRON[29850]: (root) CMD (php -q /var/www/folder/script-3.php) Oct 9 10:41:01 servercharlie CRON[29861]: (root) CMD (php -q /var/www/tasks/script-1.php) Oct 9 10:42:01 servercharlie CRON[29867]: (root) CMD (php -q /var/www/tasks/script-1.php) Oct 9 10:43:01 servercharlie CRON[29873]: …

Member Avatar for pritaeas
0
233
Member Avatar for Dendei

Hello, so im trying to send an metod that takes a class as input parameter with a bunch of variables. I want to write in some textboxes in my php side of the program send them with my class and into a database. but the database part is no problem …

Member Avatar for Dendei
1
964
Member Avatar for reemasmartin

i want to create a login page for admin anduser.suppose admin is login access to all pages.But user is login only display for user details page.so any idea give me.i want to related script

Member Avatar for Bachu
0
192
Member Avatar for bettybarnes

Hello, I have a problem in my codes. Obviously, I'm beginning to program in PHP and know nothing about its advanced concepts. So I'm asking of your help. I'd like to add 2 months to the end date the user input. I tried this code below: public function inputEndDate() { …

Member Avatar for bettybarnes
0
320
Member Avatar for sparkles_links

I have something like this <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="xxxx"; // Database name $tbl_name="xxxxxx"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // username and password sent from form $username=$_POST['username']; …

Member Avatar for sparkles_links
0
122
Member Avatar for nit8899

I am getting this error "Fatal error: Call to undefined function mysql_connect() in /var/www/html/test1.php on line 8" for the following code: <?php $host = "localhost"; $user = "user12"; $pass = "34klq*"; ini_set ('display_errors', 1); $r = mysql_connect($host, $user, $pass); if (!$r) { echo "Could not connect to server\n"; trigger_error(mysql_error(), E_USER_ERROR); …

Member Avatar for nit8899
0
1K
Member Avatar for andyy121

when i search something in the database it doesn't show me what is in the databese how to connect into it or it doesnt show what is in it????

Member Avatar for rayidi
-2
321

The End.