39,316 Topics

Member Avatar for
Member Avatar for Benjamin Alexander

Hello everyone. I am fairly new to PHP. Because of this I try and learn as much as I can with each problem that I encounter. In this particular case I have been left high and dry by the developer of a simple CMS that I had developed for me …

Member Avatar for Benjamin Alexander
0
571
Member Avatar for scarcella

Hey guys i need to get the database column into a 1 mentionable array. Here is my code. [CODE] $spreadsql = "SELECT `categories_id` FROM `".$TABLES['CATEGORIES_SPREAD']."` WHERE `products_id` = '".$_REQUEST['pid']."'"; $spreadquery = mysql_query($spreadsql, $connection) or die ('Could not execute SQL query:<br />'.$sql.'<br /><strong>'.mysql_error().'</strong>'); $spread = mysql_fetch_assoc($spreadquery); $array = array(); foreach ($spread …

Member Avatar for jkon
0
226
Member Avatar for michael.onyenma

I have issue with a php script i tried to use for file upload (ref: sitepoint 2015) ===index.html======== <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>form upload</title> </head> <body> <form action="control.php" method="post" enctype="multipart/form-data"> <p><label id="upload">Select file to upload: <input type="hidden" name="MAX_FILE_SIZE" …

Member Avatar for pritaeas
0
299
Member Avatar for SirMahlon

page with form open in laravel 4.2 is not working. it throws this error Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException

Member Avatar for SirMahlon
0
299
Member Avatar for lewashby

Linux Mint I logged into phpmyadmin and set the password option to 'no password' and now I can't log in. If I enter the password I was using I get this error -> `#1045 Cannot log in to the MySQL server` and if I don't user a password at all …

Member Avatar for cereal
0
4K
Member Avatar for masterjiraya

<?php $array['key1']['key2']=array(); array_push($array,$array['key1']=>'one',$array['key2']=>'two') print_r($array['key1']['key2']); ?> can someone tell me if this is possible for multidimensional arrays? revise the code if I am wrong actually I am creating a site for billboards reservation

Member Avatar for diafol
0
71K
Member Avatar for BrickZ28

Hello, I am a little stumped here. I have a few tables I am trying to display data with. The first is tbl_pilot which holds data such as ID numbers that come from other tables. So my issue is tbl_pilot there are 3 airframe choices tblPilotAirframeChoiceID1FK,tblPilotAirframeChoiceID2FK,tblPilotAirframeChoiceID3FK. I am trying to …

Member Avatar for BrickZ28
0
192
Member Avatar for network18

I have a Premium SEO Pack – Wordpress Plugin installed and with its Facebook planner, we are supposed to authorize app after providing the initial settings. I have provided all the settings correctly. Provided app id, app secret, app domain, site url (through add platform), settings->advanced->enabled browser OAuth login, provided …

Member Avatar for network18
0
415
Member Avatar for janicemurby

hi i have a script that was made up for me a while ago it was working full but now its stopped can anyone see whats going off as the infprmation from the form is not echoing through to another page although its going to database heres database string to …

Member Avatar for cereal
0
210
Member Avatar for tissam

In MySQL I have "users" table and one user for password and username exist. i need to change this password using basic HTML form. But when press the "Update Password" button every time given print out "The username you entered does not existThe new password and confirm new password fields …

Member Avatar for diafol
0
6K
Member Avatar for pilucho

Hello everyone you can create a pager, in this code Answer search found nothing Please can you help me with this <form action="Search.php" method="post"> <input type="text" name="Words" /> <button type="submit">Search</button></p> </form> <? $consulta = $_POST['Words']; if ($consulta == "") { } else { mysql_connect($dbhost,$dbuser,$dbpass) or die(mysql_error()); mysql_select_db($dbdatabase) or die(mysql_error()); $SQL …

Member Avatar for diafol
0
110
Member Avatar for Liang_1

Dear All, I am facing a weird problem, similar codings give different result. Why is this happening? I am saving both files as .php file. Please guide me. I really having headache with this form. Code 1: Working Fine (Non-bootstrap) <html> <head> TestPage <link rel="stylesheet" href="http://gsmtecharena.com/Testing/bootstrap/3.3.5/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://http://gsmtecharena.com/Testing/bootstrap/3.3.5/js/bootstrap.min.js"></script> …

Member Avatar for Satish_7
0
818
Member Avatar for Ventech_IT

I am trying to make my bootstrap carousel dynamic in codeiginter here is what i have so far Model Fucntion function get_all_images(){ $query = $this->db->query("SELECT * FROM property AS p INNER JOIN property_images AS pi ON p.ID = pi.image_id GROUP BY p.ID ORDER BY p.ID"); return $query->result_array(); } My Controller: …

Member Avatar for mangel.murti
0
5K
Member Avatar for Hue_1

Hi all. I am having some trouble implementing my add-data.php as explained in this [tutorial](http://www.codingcage.com/2015/06/multiple-insert-update-delete-crud.html) My situation is that I should be able to do CRUD of data but from/to multiple tables. Following the tutorial, so far I have done the display/index.php, generate.php and the form part of add-data.php. Now, …

0
740
Member Avatar for programmer12

HI , I am creating a social media site, but getting stumped on updating the status comment boxes. Currently, when a user post a comment to a status it updates in REAL-TIME (ajax) on their page, however, it does not on the clients side. How can I build a comment …

Member Avatar for ryantroop
0
164
Member Avatar for vikasmca2k11

There is a lot of people who thinking that one day PHP will die then Why Maximum web development is going in PHP ?

Member Avatar for invisal
0
183
Member Avatar for amith_ami

How to disable forwarding credential contents from email.? ie. if a mail send to a user from my website, don't allow the user to forward the credential contents to another mail.

Member Avatar for rproffitt
0
105
Member Avatar for Jiby_1

1) i fetch data from database suppose $data contains all the data of table A from $data first two goes to below div <div> //bgcolor green echo $data['a']; echo $data['a']; </div> next 2 data to below div <div>//bgcolor yellow echo $data['a']; echo $data['a']; </div> again next two data to <div> …

Member Avatar for diafol
0
134
Member Avatar for rpv_sen

Hi I want to stop direct download of videos file from my webiste folder. .htaccess is not working in godaddy windows server Please help me. eg: http://www.domain.com/folder/video.mp4 If paste the URL in the browser. it should not download the file from the server.

Member Avatar for rpv_sen
0
809
Member Avatar for UK-1991

Helo, I have a confussion and I need to get it solved in core php we used to create a url parameter through which we would be able to get values from the url so hwo this could be happend in codigniter for example <a href="index.php?add=1">Add page</a> //setting up a …

Member Avatar for UK-1991
0
283
Member Avatar for solomon_13000

I am attemping to calculate the cost by issuing the query below however it always return no value: //Re-calculate the cost price $f15 = "SELECT sum(cost) FROM ingredients WHERE item_id_fk = :targetID"; $e16 = $this->l1->prepare($f15); $e16->bindParam(':targetID', $g4); $e16->execute(); $g5 = $e16->fetch(PDO::FETCH_NUM); error_log(print_r($g5[0], TRUE)); Did I miss out something? Your help …

Member Avatar for diafol
0
3K
Member Avatar for brispea

Hiya all, I really need your help with understanding. But first, please avoid offering wordpress or so as a solution. I have a couple of templates (more to come) done from scratch to meet a specific business type (very specific). My problem if a customer selects one template, how do …

Member Avatar for brispea
0
127
Member Avatar for AntonyRayan

HI, I am trying to do questions generation system in PHP. I need some idea form all of you, how to shuffle questions and answers from table based on standard, section, subject,difficulty of question (Easy, Medium, High),No of module (Like, choose the best anser, true or false, Explanation ), and …

Member Avatar for parvez alam
0
990
Member Avatar for Jiby_1

Below shown code after fetching data from database not listing the result? <?php $answer = $listcareer['bigcontent']; $bigcontent = substr($answer,0,10); print_r($bigcontent); exit(); ?>

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

Hello, I have created a quiz system where I tried to create a condition which is just simple one if time is up then correct answer will be shown up and the button would be disabled but I am confused and unable to make some logic about I need you …

Member Avatar for UK-1991
0
244
Member Avatar for mrhankey

hi guys, i have a site which is protected using php and stored username and passwords in mysql database. is there a script which will protect a directory and run off the mysql database username and password as opposed to just a standard htaccess file? help urgently need for this …

Member Avatar for Renu_5
0
5K
Member Avatar for AntonyRayan

Hi, I am new to this concept. I have data in my table in different languages like, English, French, Chineese, Serbian....) I want to display that languages in MPDF, how they are in table,. How to do that in MPDF? Which PDF format is best? FPDF or MPDF or TCPDF …

Member Avatar for diafol
0
105
Member Avatar for Deep_4

So, I've some free time in December and want to make a web-app that lets people login, put books they've read, review the books they've read etc. But, I'm not sure how and where to start? What Languages/Frameworks to use? Any help would be appreciated. Thanks!

Member Avatar for diafol
0
328
Member Avatar for salbic

I have an issue with the code I am working on and realised I need some help with it as I can not find out what I am doing wrong. The following code is just at part of a bigger code (that works fine) and I would be thankful if …

Member Avatar for salbic
0
201
Member Avatar for janicemurby

hi can someone check this section up for me as im getting a error from it after converting to mysqli Fatal error: Call to a member function query() on a non-object in /home/matureco/public_html/config/db_connect.php on line 67 // find total message per user if(! function_exists(unReadMsgCount) ) { function unReadMsgCount($id) { return …

Member Avatar for diafol
0
228

The End.