39,326 Topics

Member Avatar for
Member Avatar for دليل تطبيقات
Member Avatar for abhi10kumar

Is it possible to connect USB device in the HTML page? If yes then How I can? I want to integrate Boogie Board into a dynamic page with a question.

Member Avatar for abhi10kumar
0
131
Member Avatar for UK-1991

Hello the valuies are not echoing when I am out side the loop <?php if(isset($_GET["catid"])) { $catid = $_GET["catid"]; $query_cat = mysqli_query($connection, "SELECT * FROM category WHERE cat_name='$catid'"); while($row = mysqli_fetch_assoc($query_cat)) { $h1 = $row["h1"]; $h2 = $row["h2"]; $span = $row["span"]; $catslide = $row["cat_slider"]; $ct_name = $row["cat_name"]; } ?> <div …

Member Avatar for diafol
0
150
Member Avatar for kannasekar

First of all I confess I am very new to PHP programming. Here is my problem. I just wanted to create a registration page for students. In that I need to populate the classes which the students want to enroll in checkboxes from database(because a student can enroll n number …

Member Avatar for kannasekar
0
180
Member Avatar for UK-1991

I created an add to cart function but not working properly on submit i see these errors on the place of product details Notice: Undefined variable: product_id in C:\wamp\www\connectdemo\product_details.php on line 218 etc etc.... product_details.php <?php session_start(); include_once("includes/layout/header.php"); include_once("includes/connection.php"); include_once("includes/functions.php"); if(isset($_POST["addtocart"])) { $pid = $_POST["productid"]; $prod_name = $_POST["productname"]; $prod_price = …

Member Avatar for cereal
0
276
Member Avatar for دليل تطبيقات
Member Avatar for Mark Christian

Hello there.. I am currently working with the referral program and I have a page wherein it displays all the personal information of a person who referred by the user login.. I have 2 functions for displaying the records.. Number 1 is just displaying the records when you go to …

Member Avatar for Mark Christian
0
1K
Member Avatar for Joe_10

I am trying to use pdo to update a database, the code is not returning any errors but the code does not work. Logic is the user would enter in user id and then a new location hit submit and the location would be updated. Here is the form code …

Member Avatar for Joe_10
0
304
Member Avatar for Swati_6

CakePHP has few immense tools for a PHP developer to turn out JavaScript utilities utilizing merely PHP. The JsHelper hold up the example, jquery UI. The Ajax Helper uses the forever-accepted Prototype & script libraries for Ajax process & client side results. [Click Here](http://www.phpandsql.com/how-to-use-ajax-in-cakephp/)

-1
74
Member Avatar for OsaMasw

hello guys, I know you may heard about Telegram bot API, and I want to use their API to send texts and photos, telegram API differs from bots API here is the full document about API https://core.telegram.org/bots/api I want to send photo using curl but its fail always, sending text …

Member Avatar for cereal
1
7K
Member Avatar for Thawdarwin

function Dot2LongIP (IPaddr) if (IPaddr == "") return 0; else $ips = explode(".", IPaddr); return ($ips[3] + $ips[2] * 256 + $ips[1] * 65536 + $ips[0]*16777216);

Member Avatar for diafol
0
114
Member Avatar for davy_yg

Hello, How to fix this error? Array ( [application] => Array ( [nama] => John [sex] => Pria [food] => Array ( [0] => ayam [1] => bebek [2] => nasi ) ) ) Notice: Undefined offset: 3 in C:\xampp\htdocs\latihan2\print4.php on line 44 latihan4.php <html> <br><br> <?php echo "Current php …

Member Avatar for lps
0
154
Member Avatar for Aqeel_1

i have a music site where i used ajax with server side php to load pages dynamically to prevent reload. this function works with different directories that are contains pages and also uses hash to show pages urls but i have one issue and that is my back and forward …

Member Avatar for diafol
0
764
Member Avatar for Anup_2

<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> Product: <select name="s_product"> <option value="">Plz select product</option> <option value="1">TV</option> <option value="2">Fan</option> <option value="3">Light</option> </select><br/><br/><br/> </form> <?php if(isset($_POST['s_product'])) { $product=$_POST['s_product']; $sql = "SELECT * FROM `data` join product on data.p_id=product.p_id WHERE …

Member Avatar for Anup_2
0
473
Member Avatar for davy_yg

Hello, I am trying to connect to sql with pdo. I wonder why it does not work? And anyone has any clue how to fix the error? Current php version : 5.6.8 Fatal error: Undefined class constant 'ERRORMODE_EXCEPTION' in C:\xampp\htdocs\latihan2\latihan4.php on line 16 latihan4.php <?php echo "Current php version : …

Member Avatar for diafol
0
247
Member Avatar for osvaldo_1

Hi there !! i am here seeking for best way to learn php, i enrolled to one course but i am not feeling confortable with the method that the teacher is teaching me. I ma sure that i can learn it by solving problems. Help please.

Member Avatar for Gideon_1
0
276
Member Avatar for nabin634

Hi, i am using setExpirationSeconds() to set the timeout for user. but how to update the timeout timestamp in data base when user session expires automatically due to user inactivity. Regards, Nabin

Member Avatar for moneeshot
0
428
Member Avatar for blueguy777

Unable to execute code, displaying blank page. $q = 'SELECT id,username,email,mobile FROM users WHERE email=:email OR mobile=:mobile'; $query = $dbh->prepare($q); $query->execute(array(':username' => $username, ':email' => $email,':mobile' => $mobile)); if($query->rowCount() == 0){ while($row = $query->fetch(PDO::FETCH_ASSOC)){ if($row[2] == $email) { if($row[3] == $mobile) { echo 'Mobile Number and Email are already registered …

Member Avatar for blueguy777
0
281
Member Avatar for davy_yg

Hello, Can anyone help me fix this error? step_3.php echo '<option value="'.$_SESSION['application']['year'][$i].'"' .if($y = $_SESSION['application']['year'][$i]).{'"selected"; >'}.$y.'</option>'; Parse error: syntax error, unexpected 'if' (T_IF) in C:\xampp\htdocs\pergas-responsive\include\ars_application_submission_step_3.php on line 125

Member Avatar for diafol
0
613
Member Avatar for UK-1991

Hello, Little tricky things I am trying to create want to add more then 1 image in the database admin can create a gallery but for that he can add mor then 1 image as in gallery he can add more then 1 image dont know how to explain but …

Member Avatar for UK-1991
0
228
Member Avatar for blueguy777

the if condition is not executing and unable to print result, there is a blank page. <?php $url = $_SERVER['HTTP_HOST']; $url_length = strlen($url); if(substr($url, 0, 4 ) = 'www.') { $url_length = $url_length - 4; $url = substr($url, 4, $url_length); } echo $url_length.'<br />'.$url; ?>

Member Avatar for diafol
0
123
Member Avatar for anmol.raghuvanshi1

hello,everyone i am making a registration page baesed upon php,codeigniter diificulity i am facing was when i try to make radio button or dropdown it misbehaves radio button's are not in single line but in different line so any one can help???? //my registration page <!DOCTYPE html> <html lang="en"> <head> …

Member Avatar for cereal
0
12K
Member Avatar for Hilal2009

Hey guys, Is there any one who knows how to get a session from access_token? In Facebook PHP SDK v5 I can get access_token, but I don't know how to get a session so as to retrieve feeds. According to Facebook PHP SDK v5 and Graph API v 2.4 documentation([Click …

0
146
Member Avatar for Haridas_1
Member Avatar for ErickShawn
-1
105
Member Avatar for Nguyá»…n_6

I am writing code to upload photos to Picasa, before the code runs well, now new picasa google upgrade. help yourself way up photos on picasa Code old $albumUrl = "https://picasaweb.google.com/data/feed/api/user/$user/albumid/$/albumid"; // XML Upload được cung cấp bởi google $rawImgXml = '<entry xmlns="http://www.w3.org/2005/Atom"> <title>' . $path . '</title> <summary>' . …

0
115
Member Avatar for iamthwee

Hi guys, It gives me great pleasure to announce that I will be collaborating with fellow Daniwebber Veedeo in creating a fully baked, no nonsense CMS in Codeigniter. I will be overseeing the overall look and feel, PHP and jquery. I will need to discuss how the CMS is licensed …

Member Avatar for edbr
7
1K
Member Avatar for Hilal2009

Hi Guys I want to post on my facebook page by using Facebook PHP SDK v5. Here are my codes but after running, I get the following errors *Fatal error: Uncaught exception 'Facebook\Exceptions\FacebookAuthorizationException' with message '(#200) Insufficient permission to post to target on behalf of the viewer' in ................ My …

Member Avatar for cereal
0
1K
Member Avatar for falak_1

its my model <?php class Books_model extends CI_Model{ public function __construct(){ $this->load->database(); } public function get_restaurants() { $sql = "SELECT id, names FROM restaurants "; $query = $this->db->query( $sql ); return $query->result(); } } and controller code is <?php class Booking_Controller extends CI_Controller{ public function __construct(){ parent::__construct(); $this->load->model('Books_model'); } public …

Member Avatar for gabrielcastillo
0
250
Member Avatar for myrtsgrc

Please help me with this. I am not a good in explaining and my grammar is not that good so please bear with me. My client wants a website which auto search a manufacturing part number from a certain website. http://www.digipart.com/ The code for the auto search is working and …

Member Avatar for diafol
0
255
Member Avatar for falak_1

In Codeigniter, how we handle many to many relationship between table....how we handle the pivot table?

Member Avatar for gabrielcastillo
0
113

The End.