39,320 Topics

Member Avatar for
Member Avatar for ray101

PLEASE HOW DO I ADD EMAIL ADDRESS TO MY PHP TO ALLOW SUBMITTED FORM COME TO MY EMAIL? SEE CODE BELOW... $em = $_POST["em"]; $nm = $_POST["us"]; $cu = $_POST["ps"]; $sch = $_POST["nm"]; $sub = $_POST["sub"]; $CONNECT = mysql_connect ("localhost", "webkoko", "ment1$"); if(!($CONNECT)) {die ("error");}; mysql_select_db("webkoko"); $k2l = "insert into …

Member Avatar for rproffitt
0
113
Member Avatar for Espanhol

[CODE]<? $conn = mysql_connect("localhost", "your_username","your_password") or die(mysql_error()); mysql_select_db('your_database', $conn) or die(mysql_error()); ?> [/CODE] this is the code i have on database.php, when i run register page i get a erro. [QUOTE]Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'your_username'@'localhost' (using password: YES) in /home/a4595523/public_html/database.php on line 2 Access denied for user …

Member Avatar for ray101
0
391
Member Avatar for Prateek_2

I want to set cron job using codeigniter, in godaddy shared hosting i used the following code to execute `movies` controller's `cool` method. /web/cgi-bin/php5 "$HOME/html/MOVIESDOM.COM/index.php" movies cool Problem is it always execute default controller. Pls tell me how to execute `movies` controller's `cool` method

Member Avatar for Arfan_1
0
6K
Member Avatar for SpottyBlue

I've updated the attendance.sql and the attendance form (index.php) by adding the time in and time out of the attendance. The time in and time out values are still blank even it is assigned in the database. (Lines 65 - 66) And when I tried to update the values (e.g. …

Member Avatar for cereal
0
302
Member Avatar for Aeonix

This is essentially a really long question **If I were to create a function without calling it's execution. Does PHP initialize it anyhow or is the entire function ignored entirely without even bothering to read it?** Another way to put it: **Is there any execution difference between code that does …

Member Avatar for ryantroop
0
392
Member Avatar for SpottyBlue

I've updated the attendance.sql and the attendance form (index.php), but when I tried to update the values (e.g. present and late), it cannot work. And also, the checkbox says it's all ticked even the values are different (lines 61 - 63 of index.php) Can help me? Download: https://drive.google.com/open?id=0B07_pOHhTox3bTN1Z21HRlR2TEE Inside there …

Member Avatar for SpottyBlue
0
392
Member Avatar for toxicandy

I have a question regarding user membership of groups in Active directory and grabbing such memberships with PHP. My big question/situation is that I have a site I am making and essentially I am trying to assign administrators based off of groups in Active directory and I know how to …

0
223
Member Avatar for Ivan_11

Help me sir for this error, Connect Error (2002) No connection could be made because the target machine actively refused it. my connection //my database class class Db { // make sure we dont connnect database to every function public $mysql; function __construct(){ $this->mysql = new mysqli('10.100.2.234','sa','P@ssw0rd','PLAZATOYOTA_MSCRM'); if (mysqli_connect_error()) { …

Member Avatar for hericles
0
295
Member Avatar for RudyM

Hi all, I'm using CodeIgniter with MSSQL and works ok for basic queries. But then I do the following: Add a varbinary(max) column to my table (new_col) Change the query in the model: `$this->db->get_where('user_stats_backup',array('new_col' => "0xD9E6762DD1C8EAF6D61B3C6192FC408D4D6D5F1176D0C29169BC24E71C3F274AD27FCD5811B313D681F7E55EC02D73D499C95455B6B5BB503ACF574FBA8FFE85")` When I load the page, it doesn't seem to be returning anything. I created …

Member Avatar for RudyM
0
315
Member Avatar for sahilmohile15

Hello guys i am doing a archived page and i have added option to restore all but after that every newly deleted product doesn't show up here's the script //php to get update data upon click of button <?php if (isset($_GET['all'])) { $allSql = "UPDATE products SET deleted = 0 …

Member Avatar for sahilmohile15
0
162
Member Avatar for shany0786

I have a admin folder where various .html files are there what happening is when i type http://mydomain.com/index.html it opens up a page and various other page but i want to put restrictions that if user is logined then only he can open other pages otherwise not. What i know …

Member Avatar for TexWiller
0
317
Member Avatar for SpottyBlue

Hi, I'm quite new to PHP and MySQL and the attendance form (index.php) is messed up. Can help me? Download the attendance form system in zip file: https://drive.google.com/open?id=0B07_pOHhTox3RnM2bFRNczhOeDA Inside there is the database table called attendance.sql. You need xampp and you must import the table (attendance.spl) in phpmyadmin.

0
117
Member Avatar for karin21

hi there guys! how can i add textbox using button? i know that it can be done using javascript but i was required to use php. Is it possible to do it in php? thanks

Member Avatar for melodangdang
0
712
Member Avatar for RikTelner

I have main PHP file, and dozen of less files, something like modules, they work this way (imaginary file): if ($_GET["action"] == "login") { require_once("login.php"); return login_something($_GET["credit"]); } That `require_once();` and `return function(data);` recur a lot in my code. It looks kinda nasty, is there no way to make this …

Member Avatar for cereal
0
458
Member Avatar for sahilmohile15

Hello Friends I am having issue with sizes option on my page this is the form of sizes <!-- Sizes And Quantity [Onclick Modal]--> <div class="form-group col-md-3"> <label>Sizes & Quntity<span class="required">*</span>:</label> <button class="btn btn-default form-control btn-info" onclick="jQuery('#sizesModal').modal('toggle'); return false;">Sizes & Quantity</button> </div> <!-- Sizes & Quantity Preview --> <div class="form-group …

Member Avatar for cereal
0
973
Member Avatar for Marco_4

Hello, I ask information to you that you are much more experienced than me that I am learning. I would like to create an administrative panel with the only possibility to be logged in to the admin. Your wisest thing which is to carry out safely login? Let me explain, …

Member Avatar for Marco_4
0
287
Member Avatar for rahulmukati

Hello there, I am trying to add more than 2 foreach statements. Please help me. My statement - foreach (array_combine($image, $name) as $pic => $title) { } It cant be like - foreach (array_combine($image, $page, $name) as $pic => $id => $title) { }

Member Avatar for cereal
0
150
Member Avatar for SpottyBlue

Hi, Before i do the attendance form system, I have to do the student registration form. But there is one problem. I tested the student registration form (register.php) and tried to register myself to the database, but my data did not register to the database. I've done the coding correctly …

Member Avatar for hericles
0
290
Member Avatar for iveto89

Hello! I'm making cURL request to neteller API and it returns 401 not authorized. My IP is whitelisted in neteller test account. I have the following code: $url = 'https://test.api.neteller.com/v1/oauth2/token; $clientId = NETELLER_CLIENT_ID; $clientSecret = NETELLER_CLIENT_SECRET; $grantType = 'grant_type=client_credentials'; $curl = curl_init($url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_USERPWD, …

Member Avatar for iveto89
0
1K
Member Avatar for dlmagers

I am trying to display scores by what the user is requesting either 'Average','Total',or 'Both'. The following is my code for the loop_tester.php and below that is the code for my index.php. I am trying to add a switch statement to the index.php file that will sets values for only …

Member Avatar for cereal
0
358
Member Avatar for AntonyRayan
Member Avatar for broj1
0
140
Member Avatar for Suresh_13

I want Multilevel Marketing with binary tree (can be modified accordingly to be used for n Tree) same like link: http://www.codeproject.com/Articles/124276/Data-Structure-Implementation-to-Query-Binary-Tree which complete run but this is on .net and mysql server. i want i php mysql. plzz help

0
99
Member Avatar for Niels_1

Hello guys, i'm trying to show the full name of my user what is logged in. I am new to writing in oop. Im getting a undifined index fullname error. Can anyone help me? /*** for showing the username or fullname ***/ public function get_fullname($userid) { $stmt = $this->db->prepare("SELECT fullname …

Member Avatar for AndrisP
0
140
Member Avatar for Niels_1

Hello guys i wrote an public function to create a project, but i need to call it in my javascript file. How can i do this. this is the public function i want to use. the public funtion is in data.php public function create($projectid,$projectnaam,$startdatum,$einddatum,$omschrijving) { try { $stmt = $this->db->prepare("INSERT …

Member Avatar for broj1
0
320
Member Avatar for ramsiva

Below is my array i need help for getting ans store this array into ---> array( "0" => array ("ex1" => ff,"ex2" => 3)); Array ( [0] => Array ( [0] => Array ( [ex1] => ff [ex2] => 3 ) ) [1] => Array ( [0] => Array ( …

0
115
Member Avatar for masimies

Hello, I try to limit query results and fetched items in same time. But, with my script, that is not functioning together. Selected item is not staying as variable in query. Something is badly ordered in this script. <?php if (!isset($_GET['startrow']) or !is_numeric($_GET['startrow'])) { $startrow = 0; } else { …

Member Avatar for masimies
0
233
Member Avatar for Niels_1

I'm trying to convert my php code into OOP. I'm using Datatables with jquery en ajax + JSON to load projects into a table. But i want to convert this code into OOP, but i always get a invalid json response. Im new into writing OOP, so could anyone help …

Member Avatar for TexWiller
0
264
Member Avatar for FarrisFahad

I have searched Google and Youtube for Facebook log in toturials but couldn't find something useful. Do you know any good articles or website or even a Youtube toturial that covers the facebook log in system? How did you learn it?

Member Avatar for AleMonteiro
0
180
Member Avatar for Sourav_5

Hi guys, this is my first post here. I built Fb app around 2010 and then it was much easy to get started. But after 6 years I am starting again to develop my 1st app after tha gap. But now it's been hard, as I need HTTPS for the …

0
145
Member Avatar for RudyM

Hi all, I've been wrestling with CodeIgniter to work with MSSQL. Turned out to be a whole ordeal with changing the functions to use the newly updated sqlsrv functions. After all that, I still seem to have issues with it. While I'm working this out, I wonder if anyone has …

Member Avatar for RudyM
0
161

The End.