39,316 Topics

Member Avatar for
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
504
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
Member Avatar for ravi142

Hello Everyone. I have make Form with use of set_value('Name'); in codeigniter but In Input type Textarea not given value. **Code:** <?php $last_goals = ''; if($this->session->userdata('user_from') == 'log') //After login value come From db { $last_goals = $getdesired[0]->ds_goals; } else { $last_goals = set_value('career_goals'); // without login this value come …

Member Avatar for ravi142
0
3K
Member Avatar for baig772

Hi all, I want to implement a page flip effect on y uploaded pdf file. like [Click Here](http://www.pressmo.com). I am uploading a pdf file and while viewing it, i want a page flip effect in it. Any help will be appriciated

Member Avatar for swan.may.9
0
436
Member Avatar for hriti

hello everyone i have a problem when i upload a song it will not save to a folder if i upload image then its working well but for song upload its working not well my code is: <?php include("include/commonfunction.php"); checkLogin(); $mode=$_REQUEST['mode']; $tableName="songs "; $idFieldName ="id"; $pid=$_GET['pid']; $song_url=$_REQUEST["song_url"]; $thumbnail=$_REQUEST["thumbnail"]; include("include/tophead.php"); include("fckeditor/fckeditor.php"); …

Member Avatar for almostbob
0
220
Member Avatar for stokie-rich

Hi Guys, I'm having a few issues, I have managed yo let users register this works fine. But When the registerd user tries to log into the site I'm getting the following error message Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\xampp\htdocs\login.php on line 16 Warning: mysqli_error() …

Member Avatar for Sammys.Man
0
137

The End.