39,393 Topics

Member Avatar for
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
311
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
114
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
311
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
275
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
276
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
297
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
128
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
106
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
370
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
167
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
369
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
173
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
212
Member Avatar for anony

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.

Member Avatar for iamthwee
0
152
Member Avatar for NardCake

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(); …

Member Avatar for NardCake
0
385
Member Avatar for Octet

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 …

Member Avatar for Atli
1
298
Member Avatar for justdeanna

I am trying to teach myself PHP, im trying to generate a form that validates in php Im having issues with my checkbox value calculations I know i should construct a function Im trying to make it so if the user clicks the mealplan box the appropriate price gets added …

Member Avatar for ryantroop
0
167
Member Avatar for Iggystooge

Hi, This is going to be the least important post you will read, but if anyone can help me, I will still appreciate it. Every fall I have a small weekly football contest with my friends for fun. I have an html file with 20 games on it, players choose …

Member Avatar for iamthwee
0
243
Member Avatar for alismith

Hello I'm want to convert string to array $str = "[cat=[0=php,script=[js]],id=4,foo=bar]"; how to write `preg pattern` for change `$str` to : $str = "[cat=[0=php,script=[js]]_-_id=4_-_foo=bar]"; If convert `,` to `_-_` I can convert this string to array by `foreach`, but i can't convert `,` to `_-_` in this string I'm want …

Member Avatar for iamthwee
0
419
Member Avatar for Abbas Ansari

I'm totally new to php and learning. I have a table name *persons* which has columns * FirstName * LastName * Gender * Subject * Hobbies **The Task:** was to dynamically populate a drop down list with the data of FirstName, display the selected record of the name chosen in …

Member Avatar for Banderson
0
248
Member Avatar for devianleong

Hi, I'm very new to smarty. I would like to learn more about smarty engine. I understand how smarty works like assign and display but how can I implememt something that able to switch template? I mean when I upload few different template with different name and CMS will auto …

Member Avatar for pritaeas
0
195
Member Avatar for fheppell

I have the following file structure. Some files are dynamically added to a zip file and downloaded. uploads ----- 1 ---------- test.jpg ---------- another-test.jpg ----- 2 ---------- yetanotherfile.jpg ----- 3 ---------- evenmorefiles.jpg However, when I unzip the downloaded file it keeps that same structure (only with some files missing) and …

Member Avatar for fheppell
0
282
Member Avatar for eantz

Hi.. I have a blog and one day I post a redirect page tutorial with php script within it. I saw that tutorial from a web and I want to post it to my blog too.. here is the script : [code=php] <?php function redirect($url) { if (!headers_sent()) { header("Location: …

Member Avatar for advertigo.net
0
338
Member Avatar for mattsheets

Hello I am trying to parse a .json file.. it only has 1 set of data I don't think the $.each is the best approach but it's all I can find.... Here is my code: <script type="text/javascript"> function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var …

Member Avatar for mattsheets
0
235
Member Avatar for JRSofty

This class allows for the handling of normal and serialized cookies as well as switching between these types of cookies. Cookie Functions: Write Cookies Read Cookies Delete Cookies Use of this class is fairly simple. Step 1: Include the class source in your php project using the require or include …

Member Avatar for LastMitch
1
334
Member Avatar for amith_ami

hi all pls help me... how to create unique reference id for all users registering in my site...?? tnx in advnc...

Member Avatar for almostbob
0
180
Member Avatar for MMadhavi

I want to show movie trailer by click on movie button. i have done this by using colorbox. i had include .js and .css file in my template.php file. and i prepare following code for this. but i can't able to do this. plz anyone guide me. how can i …

Member Avatar for Nitesh Apte
0
1K
Member Avatar for klemme

Hi, Any tips on how I can make a smarter function? I have recently begun oop, so Im not allways sure if I do things in a "bad way" - both the amount of code, and the performance. Any advice on this piece is appreciated: class get_page_info { public $id; …

Member Avatar for pritaeas
0
228

The End.