39,320 Topics
| |
Hi, Me again... Just wanted to know, i have this piece of code to enter the data from a registration form of mine into the user db. I want to use the mysql_real_escape_string to help stop those evil people who enjoys hacking from hacking my DB $query = "INSERT INTO … | |
![50e59f3e9c4e5d94efdbea6bc00b2e2c](/attachments/large/4/50e59f3e9c4e5d94efdbea6bc00b2e2c.jpg "50e59f3e9c4e5d94efdbea6bc00b2e2c") I have three tables, and I'm going to show the third table. What I want to know is how to delete each entry from it? As, the first and the second tables ids are fetched and inserted in the third one. As in, I have my model as … | |
Hello All: I am some difficulties getting some database variables from an included file to my mysql connection. Here is what i have: file one Called config.inc.php: session_register("client_id"); $_SESSION['client_id'] = $_SESSION['SESS_ACCT_ID'];// $club_id=$_SESSION['client_id']; ob_start(); include('../../../page_title.php'); ob_end_clean(); include('../../../datalogin.php'); if (!defined('DEFAULT_HOST')) define('DEFAULT_HOST','localhost'); if (!defined('DEFAULT_USER')) define('DEFAULT_USER',$account_user); if (!defined('DEFAULT_PASS')) define('DEFAULT_PASS',$account_pass); if (!defined('DEFAULT_DB')) define('DEFAULT_DB',$account_db); the variables … | |
<?php class contacts { public $name; public $cno; public $clocation; public function __construct($name,$cno,$clocation) { $this->name = trim($name); $this->cno = trim($cno); $this->clocation= trim($clocation); } public function getName() { return $this->name; } public function getNO() { return $this->cno; } public function getLocation() { return $this->clocation; } } class DataBaseAction extends contacts { … | |
Hello everyone. A group of us who are into Battlefield 3 gaming have started a new clan/community to support the game and we are looking for someone to help with designing a basic but professional looking website for the group. We would like to run a vbulletin forum on that … | |
I know how to only log php errors but how can I set the error handling up so that it echos some custom text eg- We're sorry, but something went wrong. Please try again later Thank you | |
Heloo Guyz!! I Uploaded My Html and Php Files To server by using FileZila. And When I google and click my address It shows all the Files i uploaded to server(Shows the directory ). not the home page, how can i show my home page only when i click my … | |
I am changing my web site from static html pages to php pages using includes and a mysql dbse. In the dbse table I store the blog body text and the blog title text, and the blog date. I have written a page I call 'previous_blogs.php' to list all the … | |
Hi All I am running an sql query to obtain the data for $CaseStudyTitle[] = $row['CaseStudyTitle']; located in the while loop and passed as parameters to the fucntion below. Currently I am displaying only one case study title at anytime. The partner can have many case studies titles how can … | |
Hi guys I'm trying to create a login system on my site that uses the login information from my phpBB forum. I'm having trouble retrieving the password hash from the forum database. I'm a bit of a newbie to php so am a bit lost. Thanks in advanced. <?php //include … | |
| File structure: /index.php /source/header.php /manager/login.php /manager/scripts/auth.php login.php: <?php require ("../source/header.php"); ?> <?php if ($_SESSION['check'] == 2) { unset($_SESSION['check']); echo "<p>Incorrect! Please try again.</p>"; } ?> <form action="scripts/auth.php" method="post" name="login-form"> <label>Table ID</label> <br /> <input type="text" size="20" id="ID" name="ID"> <br /><br /> <label>Password</label> <br /> <input type="password" size="20" id="pass" name="pass"> <br … |
Hi i need to create a restrictions for the user i have a column "level" which is if the users level is 5 then echo "admin" else if level is 3 echo "mod" and if level is 1 echo "newbie". How can i do that after they login? | |
hey guys, anyone here know how to format word doc using PHP?, i already got how to create one, but the formatting is my problem, like setting bold letters, btw i tried html markup it works but the problem though is how to set the page width? it's taking up … | |
What does this error mean with the Youtube API v3.0: A client error occurred: Could not create storage directory: /tmp/Google_Client/00 I am using the PHP Youtube API on Google's documentation found [here][1]. [1]: https://developers.google.com/youtube/v3/code_samples/php#search | |
In my codeigniter php login form i'm facing these issues.Password is encrypted in the database.I'm going to decrypt it from the database and allow login.I checked where is the problem.I could find it's in decrypt part.So if anyone can help me i really appreciate that.This is my code. Model function … | |
how to set sliding error messages in join form in dolphin boonex? I want a sliding error messages for each field while hovering other field and submitting the form | |
Is it possible to convert a youtube video to mp3 using ffmpeg but without youtube-dl to first put in on the server? All the examples I've seen involve youtube-dl first to extract the physical video file. | |
Hi i have a friend which he gave a php file that is link to their company website which he work with. but when i view source the company website i cannot find the php location. He said its not visible because they encrpt the php code into the server???? … | |
While i try to access the .htaccess file its saying access forbidden,which is obvious. But the listing of all other files also getting displayed,i.e no restrictions are imposed on those files which are under the same directory as the .htaccess. However i want to restrict everyone but myself from those … | |
this is my contacts class <?php class contacts { private $name; private $cno; private $clocation; public function __construct($name,$cno,$clocation) { $this->name = trim($name); $this->cno =trim($cno); $this->clocation=trim($clocation); } public function getName() { return $this->name; } public function getNO() { return $this->cno; } public function getLocation() { return $this->clocation; } } class DataBaseAction … | |
So I have this query but the error is wrong syntax around '%'$txt2',%' - what would I have to change this too please... thanks What I am looking for in the field is anything that has txt2, with things after it or just txt2 on its own without anything after … | |
Hi im using FIND iN SET in a query like below, but i get an error stating that im using wrong syntax and also Warning: mysql_fetch_array() expects parameter 1 to be resource $result = mysql_query("SELECT * FROM table FIND_IN_SET($txt2, field)") or trigger_error(mysql_error().$sql); Hope someone can help with this, thanks | |
Hello! I have a signup form that is working fine. Here it is a text element for providing the email address: $email = new Zend_Form_Element_Text('email'); $email->setLabel($sessionSettings->tr->translate('email')) ->setValue('') ->setAttribs(array('id' => 'email', 'class' => 'required email')) ->setRequired(true) ->addFilters(array('StripTags','StringTrim','StringToLower')) ->addValidators(array( 'NotEmpty', 'EmailAddress', array('Db_NoRecordExists', true, array('user', 'email_address')) )); $email->getValidator('NotEmpty')->setMessage('Email address field cannot be empty.'); … | |
Hey guys, I am new to programming and doing everything on my own here. I have a website that I am working on, and i want to add things to a list that is on the side of the search page, and then i want to have it be able … | |
I have a problem that includes finding the maximums and minimums of certain variables in sequence. I want to nest the max() and min() functions as follows. $variable5 = min(max(($variable1 - $variable0), 0), $variable3); The PHP manual says/suggests that this type of nesting is possible. However, the code doesn't run … | |
Hello Friends!! I need some help here.... i build a website called E-Maintenance, now i need to make a form that user can choose date and the system will insert into database mysql after the user click submit, im searching on the internet and i found this Javascript calender, this … | |
Dear Friends, As usually I came with a PHP Problem. I've created a form. When user press the Submit button all the data will added to the database. I want to send an email with all data in form to my inbox when the user pressed a submit button. Summary … | |
I have hosted my website in linux platform. for some reasons am shifting it to windows hosting. do i have to make changes to the php code. Will the database be affected? Any help will be appreciated. | |
Hello! So I currently have a class titled Appliciation which contains a method called start. <?php class Application { /* * Application class */ public function __construct($IceTray){ $this->IceTray = $IceTray; } /* Starts application */ public function start(){ /* Confiures error reporting */ $this->IceTray->Error->configure(); $Path = $IceTray->Path; include APPDIR.'/paths.php'; $Path->start(); … | |
I am having some issues with the PHP Crypt Function, which hopefully someone can help me out with. I am designing a website for a sports club as a school project, and they don't want to pay for hosting that has a database. I therefore am having to make use … |
The End.