39,323 Topics

Member Avatar for
Member Avatar for edensigauke

I am happy with sending an email using PHP, i would like to know how to send an attachment also in my email: ` <?php $to = "es@yahoo.com"; $subject = "Sent by portal"; $message = "Get attachment"; $from = "se@gmail.com"; $file = $_POST['ah']; function mail_attachment($to, $subject, $message, $from, $file) { …

Member Avatar for Tinnin
0
514
Member Avatar for nats01282

I want to know if its possible to store php variables in mysql database i currently have a text field which stores the value <div class="row-2"> <div class="titles"> <?=$config['slogan']?> </div> </div> this is the slogan for the website that is in anther table which is got before this - if …

Member Avatar for nats01282
0
1K
Member Avatar for eburlea

I have a login form 'Application_Form_Login' that I call in 'Application_View_Helper_Auth', so that the signin form appears on all pages. If I login from 'index/index', everything is ok, but it doesn't work correctly if I login from 'index/otheraction' or 'othercontroller/index'. The form code starts as follows: class Application_Form_Login extends Zend_Form …

Member Avatar for eburlea
0
389
Member Avatar for genieuk

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 …

Member Avatar for pritaeas
0
280
Member Avatar for kantigniter

![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 …

Member Avatar for kantigniter
0
997
Member Avatar for mbarandao

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 …

Member Avatar for mbarandao
0
426
Member Avatar for kiLLer.zoh_1

<?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 { …

Member Avatar for diafol
0
170
Member Avatar for vngeanceFPS

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 …

Member Avatar for Ancient Dragon
0
229
Member Avatar for fheppell

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

Member Avatar for jkon
0
150
Member Avatar for irfath

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 …

Member Avatar for irfath
0
203
Member Avatar for hikingwithu2

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 …

Member Avatar for hag++
0
243
Member Avatar for davidjennings

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 …

Member Avatar for davidjennings
0
197
Member Avatar for bfitzgerald

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 …

Member Avatar for F-3000
0
470
Member Avatar for Smartflight

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 …

Member Avatar for Smartflight
0
455
Member Avatar for ImZick

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?

Member Avatar for ImZick
0
347
Member Avatar for vaultdweller123

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 …

Member Avatar for joonaroshi
0
309
Member Avatar for JackticalNuke

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

Member Avatar for pritaeas
0
220
Member Avatar for Deep_Coder

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 …

Member Avatar for iamthwee
0
4K
Member Avatar for santhiya.tsb

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

Member Avatar for santhiya.tsb
0
112
Member Avatar for JackticalNuke

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.

Member Avatar for Troy III
0
308
Member Avatar for ImZick

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???? …

Member Avatar for ImZick
0
273
Member Avatar for sash_kp

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 …

Member Avatar for cereal
0
275
Member Avatar for kiLLer.zoh_1

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 …

Member Avatar for kiLLer.zoh_1
0
295
Member Avatar for mpc123

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 …

Member Avatar for mpc123
0
127
Member Avatar for mpc123

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

Member Avatar for mpc123
0
105
Member Avatar for eburlea

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.'); …

Member Avatar for eburlea
0
367
Member Avatar for patk570

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 …

Member Avatar for patk570
0
165
Member Avatar for Nathaniel10

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 …

Member Avatar for Nathaniel10
0
366
Member Avatar for Hazuan Nazri

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 …

Member Avatar for Hazuan Nazri
0
170
Member Avatar for jLamp

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 …

Member Avatar for crescendo
0
208

The End.