39,326 Topics

Member Avatar for
Member Avatar for UI

Guys, Have you seen those viral social network SHARING scripts or viral social network LIKING scripts or viral content locking scripts or viral contest scripts ? You know the ones that force you to LIKE or SHARE a webpage in order for you to unlock the remaining content of the …

Member Avatar for diafol
0
1K
Member Avatar for KaleBeatroot

hello everyone , i have follwoing table structure check_id(pk) | user_id(fk) | check_in_time( timestamp ) | check_out_time( timestamp ) | is_checked_out(0 or 1) | checked_by | family_id now i want to calculate average of all checkIn and checkOut of user per day and then plot these data in graph this …

0
247
Member Avatar for soph2602

Hi, i tried to install php project in localhost using xampp and encounter the error below. Please advise how to solve the issue. Thanks. A PHP Error was encountered Severity: 8192 Message: Function mcrypt_get_iv_size() is deprecated Filename: libraries/Encrypt.php Line Number: 338 A PHP Error was encountered Severity: 8192 Message: Function …

Member Avatar for cereal
0
994
Member Avatar for phphp

Good morning, On my localhost, suddenly all of my php files are looking like this format ![Untitled.png](/attachments/large/4/43b03260e4e4c57683ac54107768784e.png "align-center") What is this? Is it hacker attack? How to stop this action in future. Please help

Member Avatar for Josh Ross
0
404
Member Avatar for soph2602

Hi everyone, tried to send email from localhost using smtp mail function but unable to do so. The error is "Could not instantiate mail function. Mailer Error: Could not instantiate mail function." Appreciate if you could advise how to solve this issue? Thanks. require_once "PHPMailerAutoload.php"; $name = $row['name']; $email=$row['email']; echo …

Member Avatar for cereal
0
6K
Member Avatar for michael.dewitt.716

Hi everyone, i have a page that uses jquery ajax to get json from another page. However, instead of the ajax using sucess, it goes directly to error. I have a debug on the error to see what is the issue and i get "Parsing JSON Request failed." page 1.php …

Member Avatar for diafol
0
491
Member Avatar for UI

Good Weekend Folks! I have a question. I do not understand how php knows how to define this variable $value in the following example since it has not been declared. How does it know what that variable represents since no reference or pointer has been assigned to it ? Strange! …

Member Avatar for diafol
0
307
Member Avatar for patk570

I am using OS Ticket and I have another site for Members Area,I am trying to join the 3 tables that have the information that corresponds to the customer by EMAIL. the first table is:qbcd_ticket: ticket_id | number | user_id | user_email_id | status_id | dept_id | and more... 5 …

Member Avatar for cereal
0
409
Member Avatar for UI

Hi, Imagine there is a tbl called "users" and it has a column called "your blog url". Now, imagine you want to display that blog's url in an iframe on one of your pages. How would you code it ? I did the following but the iframe fails to load …

Member Avatar for diafol
0
2K
Member Avatar for Dani

I have a one day old Macbook Pro. I tried to install PHP Zend Studio (which is what I use to code in). Everytime I try to run it for the first time after dragging and dropping it into the Applications folder, it crashes and this is what I get: …

Member Avatar for Dani
0
385
Member Avatar for phphp

Sir I have this fiddle [Click Here](https://jsfiddle.net/614ft20d/49/) I need When I enter Rate and Qty then it must display Amount automatically. Add and Remove buttons work fine already. Want to know only calculation method. Please help ![Untitled1.png](/attachments/large/4/4a843885355a413d03ba1992611095ed.png "align-center")

Member Avatar for diafol
1
154
Member Avatar for Christian_10

I need to separate the questions to atleast up to unemployment and after clicking the button it will go to another page and it resume the user from answering the question.. Thanks in advance.. <?php include('connection.php'); ?> <?php session_start(); if(!isset($_SESSION['id']) || $_SESSION['privilege'] != 'user'){ if(session_destroy()) // Destroying All Sessions { …

Member Avatar for diafol
0
316
Member Avatar for Bruce_7

Hello, i'm new in PHP so i dont know much about it so ill need a little help with this "eazy" problem. I need to calculate the total price of the items on selected radio button and checkboxes . here is my code: <!doctype html> <html> <head> <meta charset="utf-8"> <title>Show …

Member Avatar for diafol
0
1K
Member Avatar for Somali_1

I want to make a member login system which every member has its own database, when a user is registered successfully i want to create his special database. please help me the database creation code if you can Thank you Ali-Yare Mohamed

Member Avatar for JamesCherrill
0
113
Member Avatar for kayla_95

so i've been trying to do this multiple times but stil didnt get the answer. i have a column named closed in my database and close button in my view, whenever i click the button close, i want it to update my closed column to '0' if it is closed …

0
100
Member Avatar for Talha_10

I have developed a file and have many errors in my coding will anyone fix those errors here's the file https://cdn.fbsbx.com/v/t59.2708-21/11403769_946631602064937_584779033_n.zip/test-pakbook.zip?oh=d2fb62f971d1a99aa033f4bb493a483f&oe=59076CF0&dl=1 <img src="https://scontent-sin6-2.xx.fbcdn.net/v/t34.0-12/18191282_940175276125453_1215397412_n.png?oh=efc9861bcdda7d3750d68568e8396f5e&oe=59072398"> <img src="https://scontent-sin6-2.xx.fbcdn.net/v/t34.0-12/18197838_940175189458795_1243344037_n.png?oh=2541c18614946d642ed8410b04968ad8&oe=5907706C"> <img src="https://scontent-sin6-2.xx.fbcdn.net/v/t35.0-12/18195672_940175179458796_1503451055_o.png?oh=3c55e6bc68d71e3821e3d60f9afebdb1&oe=5907744B"> like this there are errors in other files you can check them here http://pakbook.comxa.com/ go to any page and you will get some …

Member Avatar for rproffitt
0
225
Member Avatar for Antony Rayan

Hi, I am new to this concept. I donot know how to make certain coulmns to be readonly , but when uploading it into server , I have to access that column value, I used this comment but it is not working. Here $avst is my excel file object. $avst->getActiveSheet()->protectCells('A5:D5', …

Member Avatar for rproffitt
0
216
Member Avatar for UI

Q. On this page: https://www.tutorialspoint.com/php/php_variable_types.htm On section "Interpreting other types as Booleans", it says: **"Don't use double as Booleans".** I do not understand this. Why can't you use a double as a boolean ? Why can't we use the following example ? EXAMPLE 1: $int_var = 100.10; If($int_var != 100.10); …

Member Avatar for Reverend Jim
0
279
Member Avatar for UI

Experts, I do not understand this atall. Here: https://www.tutorialspoint.com/php/php_constants.htm It says: "PHP Magic constants PHP provides a large number of predefined constants to any script which it runs. There are five magical constants that change depending on where they are used. For example, the value of __LINE__ depends on the …

Member Avatar for diafol
0
322
Member Avatar for UI

Hiya, http://www.tizag.com/phpT/php-string-strpos.php On the above link, it is stated: PHP Code: $numberedString = "1234567890"; // 10 numbers from 1 to 0 $fivePos = strpos($numberedString, "5"); echo "The position of 5 in our string was $fivePos"; Display: The position of 5 in our string was 4 Notice that the position is …

Member Avatar for diafol
0
254
Member Avatar for UI

Folks, What does it really mean by "escaping" in a string ? Eg. https://www.tutorialspoint.com/php/php_strings.htm The escape-sequence replacements are − \n is replaced by the newline character \r is replaced by the carriage-return character \t is replaced by the tab character \$ is replaced by the dollar sign itself ($) \" …

Member Avatar for UI
0
383
Member Avatar for UI

It is said on the following link: **Using the strpos() function** **The strpos() function is used to search for a string or character within a string.** **If a match is found in the string, this function will return the position of the first match. If no match is found, it …

Member Avatar for AssertNull
0
212
Member Avatar for Vishal_19

First Input is No. of Kids. How to create Age Group field for each kid. e.g. If 1 is selected create 1 age group field. If 2 is selected create 2 Age group fields. And so on. **First Input** <select name=""> <option selected>No. of Kids</option> <option value="">1</option> <option value="">2</option> <option …

Member Avatar for diafol
0
325
Member Avatar for KagaKuro

Hello. I'am using php codeigniter for my task here. i just have to use it. its all set up at the first. so i kinda not understand the path. I've read some of the explainatiion and try from scratch but when I try to apply it to my task its …

Member Avatar for KagaKuro
0
3K
Member Avatar for patk570

I have a code that is working to show images and description. But I am trying to get it to loop through 3 pictures wide, then loop again. and display them, I am going to add pagination to the script, but before i do that i need it to loop. …

Member Avatar for patk570
0
448
Member Avatar for phphp

Sir, how to make these lines workable echo "<td align='center'><a href='register_edit.php?message=".base64_encode('date='.date('Y-m-d',strtotime($res['date'])).&".base64_encode('vou_no='.$res['vou_no']')> <img src='../images/time.ico' alt='Complet_History' title='Complete_History'></a></td>"; I want to pass two parameters. Please

Member Avatar for diafol
0
215
Member Avatar for Varun_10

<?php error_reporting(0); $msg=$_REQUEST['msg']; include("connection.php"); ?> <html> <head> <link href="css/bootstrap-theme.min.css" rel="stylesheet" /> <link href="css/bootstrap.min.css" rel="stylesheet" /> <link href="css/font-awesome.min.css" rel="stylesheet" /> <link href="css/hover-min.css" rel="stylesheet" /> <link href="css/imagehover.css" rel="stylesheet"/> <link href="css/style.css" rel="stylesheet"/> <script src="js/jquery-2.1.0.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/mislider.min.js"></script> <link href="css/mislider-cameo.css" rel="stylesheet" /> <style> </style> <!--Code for slider--> <!-- Start WOWSlider.com HEAD section --> …

Member Avatar for diafol
-1
334
Member Avatar for davy_yg

Hello, Is anyone here are really good at laravel? I am willing to pay at $8.00 / hour if anyone here can teach me how to work on laravel while working on my project as a sample through skype. Thanks.

Member Avatar for diafol
0
245
Member Avatar for developer707

Hello, Recently I am starting to code my scripts in PDO method to manage the information in a mysql database. In this case I am having an issue how to use the best practice conditions when dealing with a POST **int** value. With the posted values I am making a …

Member Avatar for cereal
0
360
Member Avatar for UI

Pros, Imagine you want to only provide your download link to those who tweet about you. Now, how would you code it ? Let's make it simple for you to understand. Let's say you want to write a php script that checks if a certain html element (eg. name=username) or …

Member Avatar for diafol
0
355

The End.