39,393 Topics
![]() | |
Hey guys, I'm having difficulties with a problem. I iterate over an array of data with X rows And i have the positions of each row incremented, i would like that when i found an exception i shift all the position id's so after each exception the next ID has … | |
Hi i did an application for an office and i have copied all my source php files to their server of course i installed apache and mysql how i can compile them or corrupt my files that people in office cannot change them.. thx | |
Hi, I am using html Mime Mail5 class to send emails from my system and I want the attachment files to be send as encrypted in smime format. Is there any way I can send the email with attachment made in smime encrypted format through the htmlmimemail5 class. Thanks in … | |
I'm working on a project where I've to display whether a certain domain name is available or not. If the domain name is unavailable, user may choose to view `WhoIs` information, which I've to show. How can I do this in PHP? | |
Hi hope someone can help me with the folowing i have a string with a few words i want to delete some words before the string and uppercase the first letter from the string that over. $achternaam = "van der hurk"; $common_words = array("van", "der", "de"); $achternaam = str_replace($common_words, "", … | |
Hi all, How to check file exists in remote server. I am try to check in http path whether image is avaliable or not but not able to get.Please help me. http://www.domain.com/images/logo.jpg I need to check this path image is avaliable or not? | |
I need to store stock market data and stock graph datas for my site . so i am selecting two db's mongo and cassandra and i finalize cassandra db, i am using windows 7 , Xampp and i need to use this in yii. i am installing data stack it … | |
Hi, I want a script that can automatically based on a schedule, run cPanel backup tool and backup cPanel and all directories on a server, hopefully one exists ? | |
I am trying to create a table that I can customize completely with php. I will admit, i have forgotten some of the materials due to lack of practice and "accidentally" deleting my original files that "should" answer my question. Well anyways, how do you create a table that (by … | |
I am hoping someone can help me fix the issue I am having with a php script that sends a email with a attachement. The script does generate a email that goes out. However when I recieve it the email has a attachment correctly named but when I open it, … ![]() | |
csolution.php public function netsolution(){ $data = array( 'networklarge' => base_url().'assets/images/network-large.jpg', 'productcss' => base_url().'assets/images/product.css ); $this->load->view('netsolution', $data); } public function systemsolution(){ $data = array( 'systemsolution'=>'Type your connection content here', 'productcss' => base_url().'assets/images/product.css ); $this->load->view('systemsolution', $data); } Hi, I receive error in this line: Parse error: syntax error, unexpected 'netsolution' (T_STRING), expecting … ![]() | |
hi all, how to do multiplication matrix with iteration and stop iteration if value >= 5? $data = array( array(1,-0.52836), array(-0.52836,1,), ); for ($i=0;$i<count($data);$i++) { for ($j=0;$j<count($data[$i]);$j++) { $R2[$i][$j] = (($data[$i][0]*$data[0][$j])+($data[$i][1]*$data[1][$j])); } } echo "<pre>"; print_r($R2); echo "</pre>"; result: 1.279164732 -1.056721269 -1.056721269 1.318545629 how to do nested loop from process … ![]() | |
I am trying to display a list of the book which category but is not running. this is a piece of my code: <?php require_once('auth.php'); $con=mysqli_connect("localhost","mag_install","mag123","mag_rocket"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con,"SELECT * FROM category"); ?> <!DOCTYPE … | |
$userEmail = $db->query("SELECT email FROM users WHERE email='$email'"); $userPsswd = $db->query("SELECT password FROM users WHERE email='$email'"); Can someone tell me what I've done wrong in teh two lines above? I'm getting the following errors. PHP Warning: SQLite3::query(): Unable to prepare statement: 1, near "@hotmail": syntax error in /var/www/ET/password/accounts.php on line … | |
Hi all, the following PHP MysSQLi query works in XAMPP but not in WAMP: <?php include('../../inc/config.php'); $mysqli = mysqli_connect($config['host'], $config['user'], $config['pass'], $config['db']); $responseQuery = "SELECT tr.id as trid,tr.topicid,tr.usersid,DATE_FORMAT(tr.date_added,'%b %d, %Y %H:%i') AS format_date_added,tr.date_added,tr.response,tr.status, t.id, t.usersid as creatorid, u.id, u.authuser, u.memtype, u.fn,u.ln,u.avatar FROM topic_response tr LEFT OUTER JOIN topic t ON … | |
Hello everyone, I am trying to update a database as well as insert information into the database and this is what I created to do so. Only, I am getting the email and its not updateding the database...any ideas? <?php if ($_POST['submit']) //if the Submit button pressed { $con = … | |
Hello, How can I pass a root directory to variables? I am working between two servers (dev, and live) and would like an dynamic solution. I tried several flavors of this (below), but keep getting errors (unexpected T_VAR...). class myClass { var $currentDir = __DIR__; var $my_xml_file = $currentDir."data/my.xml"; . … ![]() | |
Dear friends, I am using Wordpress 3.6 for my current development . But my client need a system which has independent layers i.e 3 layers such as * Service Layer * DB Layer * View Layer from my analysis I can found that Wordpress has a **Theme ---- View+DB layer … | |
PHP Parse error: syntax error, unexpected end of file in /var/www/ET/password/changepassword.php on line 27 Can someone please tell me what I'm doing wrong in the following code to get the error above? <?php $db = new SQLite3('./users.db', SQLITE3_OPEN_READWRITE); if(!$db) { echo "Could not open/access DB"; } else { $userPsswd1 = … | |
Ever feel the default session handling is insecure? Or do you just want some originality to show off? Well, here you are. A custom, MySQL-based session handler. It supports base64_encoding and MySQL storage. Note: I haven't tested this thing in months so I don't know how well it'll work : … | |
Hey hey! I'm about 70% into completing a web application that will allow our clients to white label our service. They can then in turn resell the service to their audiences without any involvement from me or my colleagues. Now, something I need to figure out is how to allow … | |
Dear pals, I am using the tutorial code of "xmlrpc in wordpress" in URL [Click Here](http://wp.tutsplus.com/tutorials/creative-coding/xml-rpc-in-wordpress/) , but it shows result as blank in my local wamp but it work fine on another local pc. I attach the code and preview of the problem. Please check and help me. code … | |
Howdy All, I have a wordpress website where the featured image is being used as a thumbnail on the front index page. Here is the code I'm using: <?php the_post_thumbnail( array(100,75), array('class' => 'alignleft' ) ); ?> It works fine on a specified category post where I'm using the same … | |
can any one show the complete code for uploading video files in php. | |
Hello, I have done code for scheduling the event in php. As I schedule it, it goes to user's calender as an invitation. If I reschedule it, then new invitation goes with same matter with new values. But I found it is not overwriting the previous one. How can I … | |
0 down vote favorite i want radio buttons remain selected across all pagination. For taht I have collected the checked value in pagination at the top of page. But it is not working well. What is wrong with this code ? This is how i get selected value of radio … | |
Please help, i get this error when i run my script on my testing server Notice: Undefined index: id in index.php on line 5 Notice: Undefined offset: 1 in index.php on line 8 but on my actual website, it displays a blank page, with the background colour, how do i … | |
Is the error i get trying to connect to my db. Warning: mysqli_connect() [function.mysqli-connect]: (HY000/2005): Unknown MySQL server host 'http://www.fleethabari.com/' (1) in /home/www/fleethabari.com/inc/config.php on line 2 Unable to select database: Unknown MySQL server host 'http://www.fleethabari.com/' (1) Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in /home/www/fleethabari.com/inc/config.php on line … | |
How to covert ppt to html using PHP | |
hello fiend i need help i have create a lot of pages with same methode and work fine on local but never work online i want know if oder way exist when i have data in form and i clic on submit data insert into table and users directly navigate … |
The End.