39,320 Topics

Member Avatar for
Member Avatar for learner001

I have a server script with which i have allowed the user to mark any item as favorite, but i also want another script through which the user can unfavorite the same item if they want and that item should be deleted from their favorite list. I have kept the …

Member Avatar for learner001
0
1,000
Member Avatar for ditty
Member Avatar for rtrethewey
0
123
Member Avatar for sundeep.gurroby

Trying to create a registration page...but i notice that Data is being sent to database on page load. I would like this to happen when the user click on Register button. What am i doing wrong...any solotion please? My database is below and code is also below: <?php require_once('Connections/bankusers.php'); ?> …

Member Avatar for sundeep.gurroby
0
257
Member Avatar for giovannitao_1

Hello, I try to explain my situation. I need to insert multilanguage support in my php site. I used this script called common.php: <?php session_start(); header('Cache-control: private'); // IE 6 FIX if(isSet($_GET['lang'])) { $lang = $_GET['lang']; // register the session and set the cookie $_SESSION['lang'] = $lang; setcookie('lang', $lang, time() …

Member Avatar for giovannitao_1
0
193
Member Avatar for GlenRogers

I have a simple form to search a table for the search term entered into that form. $query = $_GET['term']; $min_length = 1; if(strlen($query) >= $min_length){ $query = htmlspecialchars($query); $query = mysqli_real_escape_string($link, $query); } Here the variable 'query' is the search query posted using the get method from the form. …

Member Avatar for GlenRogers
0
242
Member Avatar for davy_yg

Hallo, I am trying to create a calendar elearning like this: [schedule](http://www.innovation.web.id/schedule.jpg) Any idea how to? The student and teacher must be able to book the calendar. Any clue how to? Thanks in advance.

Member Avatar for prateeksha
0
105
Member Avatar for lloydsbackyard

i got this code from the internet to export mysql query to excel using php..i just modify it to meet my need. i need some help on this..thanks.. <?php $DB_Server = "localhost"; $DB_Username = "root"; $DB_Password = ""; $DB_DBName = "dcde"; $DB_TBLName = "po"; $filename = "filename"; $sql = "Select …

Member Avatar for prateeksha
0
294
Member Avatar for Chirag_97

Hello.... I want to convert swf to mp4 using ffmpeg in php ? Thare are Any particulre script avaible for this ?

Member Avatar for pewaltersgo
0
7K
Member Avatar for lloydsbackyard

i need to change the - of the date into / in $myDate1 . here is my code but its not working. also i need to insert / in the $myDate2 variable. $myDate1 = "06-20-2014"; $myDate2 = "06202014"; $newDate1 = date("m/d/Y", strtotime($myDate1)); $newDate2 = date("m/d/Y", strtotime($myDate2)); echo $newDate1; echo $newDate2; …

Member Avatar for diafol
0
144
Member Avatar for ms061210

I have this code, where I want to get inclusive dates between two dates. Date1 is the date to day and Date2 is the date after 7 days. I am having problem because the code returns date from the past day, How should I fix it? This is my query. …

Member Avatar for urtrivedi
0
175
Member Avatar for lloydsbackyard

i got the following entry in my dtabase.. field: poNo 001 002 003 004 005 006 007 008 009 0010 0011 0012 0013 if i issue in my php program this sql statement: $query = "SELECT * FROM po ORDER BY poNo ASC"; the result is: 001 0010 0011 0012 …

Member Avatar for lloydsbackyard
0
213
Member Avatar for jaspertan

here is my code foreach($test as $t=>sid) $sid->'name of table' $sid->'name of table' $sid->'name of table' $sid->'name of table' when i use this code i can only retrieve the last inserted data. i want to retrieve all the data on my html table. Thanks in advance.

Member Avatar for Adrian_5
0
85
Member Avatar for davy_yg

studentinfo.php //Simpan berita if (isset($_POST['ok'])){ if (empty($_GET['student_id'])) { $sqlstr = "INSERT INTO `student`(group_id, student_name, student_address, student_telp, student_hp, whatsapp, skype, facebook, twitter) VALUES('".$group_id."','".$student_name."','".$student_address."','".$student_telp."','".$student_hp."','".$whatsapp."','".$skype."','".$facebook."','".$twitter."')"; include('studentinfopic_upload.php'); } else { $sqlstr = "UPDATE `student` SET student_name='".$student_name."', student_address='".$student_address."', student_telp='".$student_telp."', student_hp='".$student_hp."', whatsapp='".$whatsapp."', skype='".$skype."', facebook='".$facebook."', twitter='".$twitter."' WHERE student_id=".$_GET['student_id']; include('studentinfopic_upload.php'); } $result = mysql_query($sqlstr) or die(mysql_error()); //Jika mode …

Member Avatar for nadiam
0
253
Member Avatar for Nikhil_4

This code is to create a simple database to insert records into a table ... but the table appears to be empty with the following errors after entry>> errors: Notice: Undefined index: FirstName in C:\xampp\htdocs\my_php_files\insert.php on line 34 Notice: Undefined index: LastName in C:\xampp\htdocs\my_php_files\insert.php on line 35 Notice: Undefined index: …

Member Avatar for nadiam
0
2K
Member Avatar for Sikander Nasar

I have a question that I want to print out the result that I have calculated using php.not confuse with(print or echo) I am asking for page print.

Member Avatar for nadiam
0
122
Member Avatar for bolfescu

hy i have a php script that its insert my sql db row two values,after i make the request to show that row $row.name. its show like this valueone,valuetwo with , its is possible to show that two values on that row one down to another like valueone, valuetwo ? …

Member Avatar for ryantroop
0
50
Member Avatar for nufftalon

http://lucasstark.com/estore/shop/donation-sample/ Anyone know a cheaper option to add text fields on a woocommerce product page. 99.00 is too steep for my client.

Member Avatar for iamthwee
0
234
Member Avatar for sundeep.gurroby

Please correct the two syntax errors after " exit; " on line 8 and 16. code below: <?php $bad_login_limit = 3; $lockout_time = 600; $first_failed_login = failed_login_count; // retrieve from DB if( ($failed_login_count >= $bad_login_limit) && (time() - ($first_failed_login) < $lockout_time) ) { echo "You are currently locked out." ; …

Member Avatar for almostbob
0
201
Member Avatar for Ventech_IT

Hi, Im having a problem with the following code of mine: <?php require_once 'config.php'; $title = "Home!"; $content = <<<EOF <h3>Current Statistics</h3> Our Home Page! EOF; include 'layout.php'; ?> when i try and render the page i get the follwing error: Parse error: syntax error, unexpected $end, expecting T_VARIABLE or …

Member Avatar for cereal
0
518
Member Avatar for accra

Diafol, anybody pls help. i have this javascript code <script> FB.init({ appId : '00000000000000', frictionlessRequests: true, }); function sendRequestToRecipients() { var user_ids = document.getElementsByName("user_ids")[0].value; FB.ui({method: 'apprequests', message: 'Great App', to: user_ids, }, requestCallback); } function sendRequestViaMultiFriendSelector() { FB.ui({method: 'apprequests', message: 'My Great Request' }, requestCallback); } function requestCallback(response) { console.log(response); …

Member Avatar for accra
0
2K
Member Avatar for hanspeare_1

Good day Admins, I have now variables $learner_id $student_pasword The learner_id and student_password are being used as their log in accounts. While the student_id is being used as their unique id and it is auto-incremented. Here are my codes. Student_login_handler.php <?php session_start(); include 'Connect.php'; $flag = ""; $learner_id = $_POST['learner_id']; …

Member Avatar for hanspeare_1
0
311
Member Avatar for ms061210

Hi everyone. I have this problem, my for each output is incorrect. This is my form, I have a dynamic table. It think the problem is not here, but for the sake of more clear explanations. ![f02560409ffa7053e6601d38d966fc3b](/attachments/large/3/f02560409ffa7053e6601d38d966fc3b.png "f02560409ffa7053e6601d38d966fc3b") I am passing the values of that table to another page, I …

Member Avatar for cereal
0
106
Member Avatar for nadiam

hello. im not sure if this is the right forum because it is about php echo AND js but since it is about echoing i thought this forum will be better. sorry if i asked in the wrong forum. Anyway, so i want to know if echoing a js script …

Member Avatar for DJBirdi
0
9K
Member Avatar for jKidz

Hi Friends, I am developing a Music download system. I thought to have two database tables. One for songs and other one is for artists because some songs have two or more artists. Then I created two tables call `songs` and `songartists`. Following are the structures of that tables. `songs` …

Member Avatar for ms061210
0
219
Member Avatar for bolfescu
Member Avatar for ravi142

Hello I want to import combination of csv that look like bellow attach image. ![aa52fba6db0049c40f21ad6daaa65a98](/attachments/large/4/aa52fba6db0049c40f21ad6daaa65a98.png "aa52fba6db0049c40f21ad6daaa65a98") OR look like *Combination:* **Attributes:** Color - Metal, Disk space - Optional 64GB solid-state drive, ICU - 1.60GHz Intel Core 2 Duo Any One can suggest me how i can format my csv.. Thank …

0
95
Member Avatar for jasmine_1234

Hi all, I hope this is the right place to ask I've been searching high and low for a script that I cannot seem to find. I'm looking for a script that will allow me to make a list of items with about 6 columns for each item (sortable by …

Member Avatar for DJBirdi
0
162
Member Avatar for developer707

Hello to everyone, I am trying to create a .php file that delete database rows with a popup window that confirmates the action. I know that are a dozen of examples, but after meany tries do to that I was not able do that, because I haven't knowledge about javacript. …

Member Avatar for almostbob
0
2K
Member Avatar for abhishek_planet

Any one can help me, i have to create a webservice in PHP with help of SOAP or REST for anoriod.

Member Avatar for pritaeas
0
52
Member Avatar for SimonIoa

Does anyone sees any error in this? I tried everything, google it and still getting the same results, even when i replace the $uid with the number of the id still the same. I have two columns friend_one and friend_two and i want to show results where neither column has …

Member Avatar for SimonIoa
0
311

The End.