39,316 Topics
| |
Warning: require_once(EzOptions.php): failed to open stream: No such file or directory in /home/u206897974/public_html/wp-content/plugins/easy-adsense-lite/easy-adsense-lite.php on line 38 Fatal error: require_once(): Failed opening required 'EzOptions.php' (include_path='.:/usr/lib/php') in /home/u206897974/public_html/wp-content/plugins/easy-adsense-lite/easy-adsense-lite.php on line 38 | |
Hi, I don't know if there is some name for this but what I want to create a script in php which runs in the background and capable of sending and receiving messages. This is what I want to do exactly: 1. Listen to a URL http://site1.com through xmpp protocol. … | |
<?php session_start(); <?php session_start(); require('connect.php'); if(isset($_SESSION['username'])) { $dir="image/"; $file_name=$dir.basename($_FILES['uploads']['name']); $fileUpload=1; $imageType=pathinfo($file_name,PATHINFO_EXTENSION); $image= addslashes(file_get_contents($_FILES['uploads']['tmp_name'])); $image_name = addslashes($_FILES['uploads']['name']); $image_size = getimagesize($_FILES['uploads']['tmp_name']); if(move_uploaded_file($_FILES['uploads']['tmp_name'], $file_name)) { echo "uploaded succesfully" ; echo "<img src='$file_name' width='50px' height='50px'>"; $querry="SELECT image FROM users WHERE username='$username'" or die(mysql_error()); $result=mysql_query($querry) or die(mysql_error()); $row=mysql_fetch_assoc($result) or die(mysql_error()); $oldimage=$row['image']; unlink('directory/image/'.$oldimage); /* $deleter = … | |
This is my code $result = msqli_query($this->db,$sql1) or die(mysqli_connect_errno()."Data cannot inserted"); this is the error message Parse error: syntax error, unexpected '$result' (T_VARIABLE) in C:\xampp\htdocs\project\class.user.php on line 25 | |
Hi, I have problem , the same number of comments that appears in all items this is my code : <?php $requete = $bdd->query('SELECT COUNT(c.id_commentaire) AS total FROM commentaire c INNER JOIN pytho_blog a ON a.id = c.id_article '); while($data=$requete->fetch()) { echo $data['total']; } ?> Thank you for your help … | |
| <?php $host = 'localhost'; $user = 'root'; $pass = '******'; $db = 'test'; $error = 'Error Connecting to database'; $error1 = 'Error Selecting to database'; $connect = mysql_connect($host,$user,$pass) or die($error); $select_db = mysql_select_db($db) or die($error1); ?> <table border="1px"> <tr> <div class="differentLine"> <th > </th> <th > 9:15 - 10:15 </th> <th … |
I need to read the span value and insert into database in php <span class="GrandTotal">0.00</span> | |
Hey Im making an online store and cant figure out the section on inserting data into a table (in this case its inserting customer details into a customer table). Its the VALUES line that is displaying the error: mysql_query() expects parameter 1 to be string, resource given. I have looked … | |
Hi im getting this error on inobox.php any ideas please Warning: implode(): Invalid arguments passed in /home/jktempla/public_html/SCRIPTS/DATINGSCRIPT/inbox.php on line 199 <?php // Fetch user random for display on bottom <THIS LINE>$idtopuid = implode(',', $topuid);<THIS LINE> <THIS> $userquery = mysql_query("select * from user where user_id != '".$_SESSION['userid']."' and user_id NOT IN … | |
Hi guys! I have a database which holds a table called users. in there i have a balance column which contains a numeric value. I have the following code and for some reason it doesnt work: <?php session_start(); include_once("config.php"); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Search</title> … | |
hy im using this script but unf cant find the bug related to update the values, its keep telling succesuful update but dsnt update in db...[Click Here](http://www.script-tutorials.com/datatables-data-from-ajax-edit-in-place/) | |
Hello pals. I have a code here that is updating only the last column of my sql database table. how can I upgrade it to work for the rest upper rows please. my code is as follows <?php error_reporting (0); // Connect to server and select databse. $mysql_hostname = "localhost"; … | |
Hi , In a form , I have a field for image , in edit page, i can display that image, when I am clicking update, without modifying image it shows error in image. How to save previous image if its not changed. Sample Code: <span><img src="profile/<?=$rows["upload"]; ?>" id="blah" style="height:25%; … | |
My Model : admin_login_model.php Unable to view them in browser as shown in the image below http://i.stack.imgur.com/fychj.png i am working on CodeIgniter version 3 Can anyone tell me what is the issue if ($email === $admin_email && $password = $password) { echo 'credential match'; $this->load->helper('cookie'); if ($remember_me == '1') { … | |
i have a query that retrieves let's say 10 records. the output should be 10 pdf files. so 1 pdf per records. it can be saved on user's computer. im using fpdf by the way. just wondering if i'm going to develop it through web using PHP will it be … | |
i am trying to create a site, when user create his account then make automatic his directory with his name. when he wants to upload his photos, these photos go automatic in his folder or directory. im my register page i have added these lines: $addtothedb="INSERT INTO login (firstname,lastname,useremail,password,Gender,Dateofbirth) VALUES … | |
Hello. Quick question. I have several thousand emails pulled in from several email boxes throuph php imap and I need to search each subject with an array of search terms which returns a bitmask, one bit for each index of the array. 1 = found, 0 = not found. So, … | |
I have managed to assign privileges to an administrator and customer. My problem now is how to assign another user the privilege of seeing administror's posts? | |
I have a html select list where one can chose an option. <select name='price' id='price'> <option value='' >Select....</option> <option value='0-50,000'>0-50,000</option> <option value='50,000-100,000'>50,000-100,000</option> <option value='100,000-150,000'>100,000-150,000</option> <option value='150,000-200,000'>150,000-200,000</option> <option value='200,000 and above'>200,000 and above</option> <option value='see all'>See All</option> </select> When this list is submitted via a html submit button, this list shows … | |
how to check if the database is empty? my point is that the first person will be the administrator. here is my code $query="SELECT staffID,name,surname,email FROM stafftable"; $do=$con->prepare($query); $do->execute(); $record=$do->rowCount(); if($record>0): is there a much better option for this?. thanks | |
Hey guys, I am trying to use the **Google Calendar API** within a **php webpage** to display personal calendar events for each user. I made it displaying the events, but I'm stuck on displaying the Event Colors for every event. I was looking around the internet for two days now, … | |
http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=4&cid=55505&apiKey=5q4gzx43g6ukcrq798z2hz75&customerSessionId=&locale=en_US¤cyCode=USD&xml=<HotelListRequest><city>new%20delhi</city><RoomGroup><Room><numberOfAdults>2</numberOfAdults><numberOfResults></numberOfResults></Room></RoomGroup></HotelListRequest> when i call api directly to browser i got right data in xml format. but when i call it through curl.. sometime i get data in json format or sometimes no data.. [CODE] $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=4&cid=55505&apiKey=5q4gzx43g6ukcrq798z2hz75&customerSessionId=&locale=en_US¤cyCode=USD&xml=<HotelListRequest><city>new%20delhi</city><RoomGroup><Room><numberOfAdults>2</numberOfAdults><numberOfResults></numberOfResults></Room></RoomGroup></HotelListRequest>"); curl_setopt($ch, CURLOPT_FAILONERROR,1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); $retValue = … | |
my firstvariable is and second variable is $one=07:54:PM; $two=07:55:AM; I am suffering from getting difference in munutes any body help me result in minutes. | |
I am trying to save 2 photos to my MySQL database. I can only see one of the 2 photos in the database (i.e. its name) but I see the 2 photos in the folder I store my photos. ( A picture of how the database looks like is attached.) … | |
I want to view the details of a product in single.php. The product is inserted in a newly added table "products" in the wordpress database and it has no post_type or post_id. | |
Hi All We found many Calendar, which are fine what we need is only show date in season like **25-12-2012 to 15-01-2013** and date we allow to use to select, like if we say available **26-dec and 10-jan** all the can do is select the date fr calender Please help … | |
I am trying to compare IF statements. if ($_POST['price'] =="see all"){ //show okolo } else if ($_POST["accommodation"] =="see all"){ //show chibuzo } This works but as soon as I add: else if ($_POST['price'] =="see all" AND $_POST['accommodation"]=="see all"){ //show henry } This stuff does not work, it now shows "okolo" … | |
I am getting last inserted row in save page when adding dynamically inserting each row. any body help me i want to get all records in save page. my add-remove-row.php is <htmnl> <head> </head> <body> <form action="save.php" method="post" name="assigndate" enctype="multipart/form-data" > <table rules="all" style="background:#fff;"> <tr> <td style="font-size:14px;" >Name</td> <td style="font-size:14px;">Email</td> … | |
$time1=implode(":",$timepick1); $time2=implode(":",$timepick2); Result is 11 : 10 :00 11 : 11 :00 Any body help me to remove white spaces I want result 11:10:00 |
The End.