38,020 Topics

Member Avatar for
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
675
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
470
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
275
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
425
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
273
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
609
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
122
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
11K
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
145
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
242
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
Member Avatar for solomon_13000

When I access call.php the variable name 'json' is not accessible to param.js as below: init.js $("document").ready(function(){ var data = { "action": "init" }; data = $(this).serialize() + "&" + $.param(data); var json; $.ajax({ type: "POST", dataType: "json", url: "response.php", //Relative or absolute path to response.php file data: data, success: …

Member Avatar for diafol
0
312
Member Avatar for diafol

Hi All, Been messing about as usual and managed to trash my long suffering laptop. Luckily all my data is backed up and it was a simple matter of SugarSyncing everything to the new one - a monster HP Envy - which I love, but it came with Windows 8 …

Member Avatar for rsleventhal
0
641
Member Avatar for UK-1991

Hello, I have tried to create a way though which users can create there own photo gallery but for that i created a code via whihc users can create their own folder but things a i want to do in a litle tricky way. Wank to allow users to create …

Member Avatar for diafol
0
120
Member Avatar for Lau_1

Hello, I want to ask, what going on for this. I try to implement form, user key in the username, it will trigger the function to check the username is existing or not. I tried to figure out the problem, but dont know what's going on... My Js file, jQuery(document).ready(function() …

Member Avatar for diafol
0
247
Member Avatar for rpv_sen

Hi Friends I am facing an issue in update query using PDO Prepare method. Please help me to fix the issue. $consql = "UPDATE $database.$constant_application SET SCYQ64EMAL=:SCYQ64EMAL, SCYQ64EV01=:SCYQ64EV01, SCYQ64EV02=:SCYQ64EV02, SCYQ64EV03=:SCYQ64EV03,SCYQ64EV04=:SCYQ64EV04, SCYQ64EV05=:SCYQ64EV05, SCYQ64EV06=:SCYQ64EV06, SCUSER=:SCUSER, SCJOBN=:SCJOBN, SCPID=:SCPID, SCYQ64AVGP=:SCYQ64AVGP, SCYQ64TZ=:SCYQ64TZ, SCUPMJ=:SCUPMJ, SCUPMT=:SCUPMT where SCYQ64CID=:SCYQ64CID"; $row = $dbh->prepare($consql); $row->bindParam(":SCYQ64EMAL",$SCYQ64EMAL); $row->bindParam(":SCYQ64EV01",$SCYQ64EV01); $row->bindParam(":SCYQ64EV02",$SCYQ64EV02); $row->bindParam(":SCYQ64EV03",$SCYQ64EV03); $row->bindParam(":SCYQ64EV04",$SCYQ64EV04); $row->bindParam(":SCYQ64EV05",$SCYQ64EV05); …

Member Avatar for diafol
0
298
Member Avatar for zeeshan009

Hi All, I am new in PHP and MySQL. As of now i am building a web application , where i have to get the list of all those clients whose date of joining - current date equals to 30. I have a table in database where there is a …

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

Tried to create a user validation process using status . I created a condition like if user status is pending it should pull up a message if user status is deactiavated it should pull up any other message and when user status is active it should login though. I created …

Member Avatar for UK-1991
0
222
Member Avatar for vijiglad

[CODE]<?php if(isset($_POST['upload']) && $_FILES['userfile']['size'] > 0) { $fileName = $_FILES['userfile']['name']; $tmpName = $_FILES['userfile']['tmp_name']; $fileSize = $_FILES['userfile']['size']; $fileType = $_FILES['userfile']['type']; $fp = fopen($tmpName, 'r'); $content = fread($fp, filesize($tmpName)); $content = addslashes($content); fclose($fp); if(!get_magic_quotes_gpc()) { $fileName = addslashes($fileName); } include 'config.php'; include 'opendb.php'; $query = "INSERT INTO upload (name, size, type, content …

Member Avatar for diafol
0
705
Member Avatar for Mushfik

Hi. Below is the code which parse data from mysql into json, but for the name column i want to have <a href="http://example.com">column name</a> instead of jst the column 'name'. is it possible in any ways. <?php $link = mysql_pconnect("localhost", "user", "pass") or die("Could not connect"); mysql_select_db("userdb") or die("Could not …

Member Avatar for diafol
0
355
Member Avatar for janicemurby

hi does anyone know anything about oxwall plugins as ive copied a plugin from there and changed the name along with all the files so it goes with the new plugin name and i have asserted a new key for it and when i finished it and went to install …

Member Avatar for cereal
0
334
Member Avatar for Ventech_IT

Hi guys i have simple captcha that seems to working but the only problem i have seems to be with the callback function on the validation have a look at the captcha: function index() { $this->load->helper('captcha'); $this->load->library('form_validation'); //Input field, Friendly name, Attributes $this->form_validation->set_rules('name', 'Name', 'trim|required'); $this->form_validation->set_rules('email', 'Email Address', 'trim|required|valid_email'); $this->form_validation->set_rules('number', …

Member Avatar for cereal
0
2K
Member Avatar for falak_1

Its my controller code <?php class Booking_Controller extends CI_Controller{ public function __construct(){ parent::__construct(); $this->load->model('Books_model'); } This is my model code <?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(); } …

Member Avatar for cereal
0
1K

The End.