39,316 Topics

Member Avatar for
Member Avatar for hudhasama

Hello there. I used this code for user and it works but when I use and alter a bit for admin side system, there is no data inside of the text field and the username keep on changing to 0 eventhough I type in other username. This is the code. …

Member Avatar for code739
0
222
Member Avatar for jkaye

I have racked my brain and can't find the error for the incorrect SQL syntax. I basically have a form with a bunch of fields. Some of them are checkboxes (single instance check boxes) and I think that's where the code is breaking, but values of the checkboxes are 'Yes' …

Member Avatar for jkaye
0
294
Member Avatar for Hendo

Hello all, I'm trying to have a multi-colored border for a generated table on my website. The table is a 2 column, 18 row table, and I want the top 6 rows to be bordered in green (or cell shading in green), while the rest of the table uses the …

Member Avatar for Hendo
1
229
Member Avatar for DamzWildfire

I have a drop-down menu with different categories onece a category is selected i have a text box which accepts the type. this text box is an autosuggestion text. so whenever i select a category from the dropdown menu on the things that are within that category should be displayed …

Member Avatar for diafol
0
141
Member Avatar for innovateuk

Though am still a learner, I have developed a small php application and planning to sell the same. Meantime, I would like to protect my script using api or something and srictly not obfuscating or encoding, or using zend frame work? Is there any easy way? using base64decode, I should …

Member Avatar for veedeoo
0
167
Member Avatar for amith_ami

hi all... im getting undefined index errors while running my code in localhost. im using wampserver 2.2... but it works fine with older version of wampserver. here is my example code for products page.... <?php $man_id=$_GET['man_id']; $man_name2=$_GET['manf_name']; $man_name=str_replace('-',' ',$man_name2); $cat_id=$_GET['cat_id']; $cat_name2=$_GET['name']; $cat_name= str_replace('-',' ',$cat_name2); if($cat_id!=""): ?> <span class="pro-head"><?php echo $cat_name;?></span> …

Member Avatar for amith_ami
0
886
Member Avatar for davy_yg

<?php // url nya: abcd.com/jumlahklik.php?idads=[idadsnya] $con = mysql_connect("localhost","root",""); mysql_select_db("freescript", $con); // kalo ada yg click tambahkan jumlah klik $count = 0; if ($_GET['idads']==1) { $count++; $waktu = date('Y-m-d H:i:s'); $idads = 1; $date = date('Y-m-d'); $time = date('H:i:s'); mysql_query("insert into adsmgt (idads,waktu,date,time) values ('$idads', '$waktu', '$date', '$time')"); } //di jumlahklik.php …

Member Avatar for davy_yg
0
177
Member Avatar for Tinnin

Hi all, I'm trying to send emails to various people using a .php file run with a crontab. I'm having some PHP issues though. My code is as follows: <!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>Email</title> </head> <body> <?php # …

Member Avatar for Tinnin
0
204
Member Avatar for shweta patil

hello , I am new in php, and dont know about RSS feed.. I want to fetch news from another site and show it on our webpage. can anybody guide me about the code?? what the code should be??any help is appreciated.. thank you!

Member Avatar for pritaeas
0
33
Member Avatar for ibn_sumal

Hello guys, I'm trying to save/store data from a *form* to a *text file*. The problem is that the information sent from the form does not seem to be storing in the text file as whenever I enter its url the page is just empty. The code is as follows: …

Member Avatar for pritaeas
0
436
Member Avatar for davy_yg

adsmgt.php $result = mysql_query("SELECT COUNT(idads) AS countidads FROM adsmgt") or die(mysql_error()); while($row = mysql_fetch_assoc($result)) { echo "Number of ad clicks: ".$row['countidads']; } $result2 = mysql_query("SELECT waktu, date, time FROM adsmgt") or die(mysql_error()); echo "<br>"; echo "<br>"."Tanggal"." "." Waktu"." Jumlah clicks per hari"; while($row2 = mysql_fetch_array($result2)) { echo "<br>".$row2['date']." ".$row2['time']; } as of now, all …

Member Avatar for davy_yg
0
181
Member Avatar for davy_yg

Hello, I would like to input date validator. How to do so? User must be able only to input date, otherwise is wrong data entry. <tr> <td>Tanggal :</td> <td><input type="date" size="12" maxlength="22" name="Tanggal" value=""></td><br> </tr> Please help. Thanks.

Member Avatar for code739
0
102
Member Avatar for code739

Hi guys, Need an effective suggestions on how to deal with this situation. Im working with php and mysql. Now the system i am creating needs to send emaill notification once a year.

Member Avatar for code739
0
262
Member Avatar for silent lover
Member Avatar for code739

hi, i have a table in database that contains birthday column varchar()- i choose varchar because ecoder could input birthday like 1. 1993-14-03 2. 1993-03-14 3. March 14 4. March 14,1993 5.etc.... Now my problem i want to detect what month is their birthday could some help me?

Member Avatar for code739
0
204
Member Avatar for welshly_2010

basically i have created a selection box which display the files i have got in a certain folder which are xml files, my problem is that i am unsure how to save the content of the file selected as a live variable which changes on different selected which the variable …

Member Avatar for veedeoo
0
118
Member Avatar for jayreis

I have a jquery code below which I am using to try to get a html form that is displaied in a lightbox on a webpage to post to a php page my issue seems to be that when I click the "save" button it is not executing the jquery …

Member Avatar for jayreis
0
253
Member Avatar for matanc244

What are the main things I need to pay attention to them Process of building a strong security system?

Member Avatar for broj1
0
69
Member Avatar for b.wickham

I've been having trouble with an UPDATE statement in the code below. The problem is that each time I submit the form to update an existing record in the products table, the records won't update. When I submit the form there is no error message and it redirects to the …

Member Avatar for b.wickham
0
1K
Member Avatar for Amicallef1991

Hi, I have a mysql database with some student info records. I am trying to Update a record in the db using a html form and a php script however it wont update. It doesnt give me any errors. Can anyone assit me please. Here is the code. **editingRecord.php** <?php …

Member Avatar for Amicallef1991
0
606
Member Avatar for gopi17

Heyy...i'm trying to save the attachment file location in mydb...the thing is it's just saving the file name eg.database.txt i want it to look like this C:/bla/bla/test my codes addtask.php <html> <head> <title>Task Management System</title> <link rel="stylesheet" href="Appcss.css" type="text/css"/> <script src="datetimepicker_css.js"></script> <script type="text/javascript"> // Javascript function which takes care for …

Member Avatar for Biiim
0
327
Member Avatar for redapple12

Hi I was wondering if I might be able to get some help with a Basic Class Calender Editor. I am self employed teacher and I teach classes at various venues. I have a website which displays the classes on for each week.i.e. using the following coding: --------------------------------------------------------------------------------------------------------------- **THIS WEEK'S …

Member Avatar for redapple12
0
127
Member Avatar for brave_demo

<?php //email signup ajax call if($_GET['action'] == 'signup'){ mysql_connect('localhost','root',''); mysql_select_db('newsletter'); //sanitize data $email = mysql_real_escape_string($_POST['signup-email']); //validate email address - check if input was empty if(empty($email)){ $status = "error"; $message = "You did not enter an email address!"; } else if(!preg_match('/^[^\W][a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\@[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\.[a-zA-Z]{2,4}$/', $email)){ //validate email address - check if is a valid …

Member Avatar for brave_demo
0
415
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to access SkyDrive using php i have looked at so many forums and i could not find anything and what i did find was too complicated to understand, what i want is a way to create files or folders, get …

Member Avatar for pritaeas
0
365
Member Avatar for NardCake

Hello! I'm working on a profile page, I already have the first get variable redirect working so it goes from mywebsite.com/u/?u=username to mywebsite.com/u/username, as an example. But I want to pass a second parameter as such: mywebsite.com/u/username/about for example. So I wrote (more like mashed a bunch of scavenged code …

Member Avatar for diafol
0
181
Member Avatar for sagisgirl

Hi guys... I have a trouble with my delete page.. here are my codes.. <?php include("enter.php"); $dbjpu_jenis_jentera=$_GET['jpu_jenis_jentera']; //if(isset($_GET['bil'])){ $dbstaf_bil = $_GET['bil']; } $sql="DELETE FROM jpuma_jkkp2013 WHERE jpu_jenis_jentera='".$dbjpu_jenis_jentera."'"; $result=@mysql_query($sql); if($result){ echo "<center>Please wait a few second.<br>The data was deleted from database...<meta http-equiv='refresh' content='3;url=jpuma_jkkp2013.php'>"; //echo "<p>"; //echo ""; } else { echo …

Member Avatar for sagisgirl
0
510
Member Avatar for perfectionist91

hey guys the checkboxes aren't gettin displayed in the following code and the data isnt gettin stored as well.plz help!!!!!!! <?php session_start(); include ("menu.php"); $UserId=$_SESSION['UserId']; ?><html> <head> <title>Feedback</title> </head> <body> <table> <tr> <td> <form name="f1" method="post" action="Feed2.php"> <table cellspacing="10"> <tr> <td colspan="2"><h1>Feedback Form</h1></td> </tr> <tr> <td> <?php include ("db.php"); $sql="SELECT …

Member Avatar for broj1
0
311
Member Avatar for davy_yg

stock.php <td>Produk :</td><br> <td> <select name="batch" onchange="submit();"> <option value="-1" >-- Select Address --</option> <?php $username='root'; $password=''; $con = mysql_connect('localhost', $username, $password); mysql_select_db('snack', $con); $result = mysql_query("SELECT * FROM po"); while($row = mysql_fetch_array($result)) { } $data = array( '1'=>array('po'=>'1','namn'=>'name 1'), '2'=>array('po'=>'2','namn'=>'name 2'), '3'=>array('po'=>'3','namn'=>'name 3'), '4'=>array('po'=>'4','namn'=>'name 4'), '5'=>array('po'=>'5','namn'=>'name 5') ); foreach($data as …

Member Avatar for radhakrishna.p
0
243
Member Avatar for mmcdonald

Hi all, I have a website that allows users to vote once every hour and I've run into a weird issue. When a user votes for a listing their IP is collected and stored along with the time of the vote. An hour later they are able to vote again. …

Member Avatar for Atli
0
148
Member Avatar for garyjohnson

Hi, I was wondering if I am going to make a social networking site if it was neccesary for me to understand how classes are used? Do i need to use classes or can I just use a series of functions?

Member Avatar for diafol
0
145

The End.