39,316 Topics

Member Avatar for
Member Avatar for raul2329

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

Member Avatar for edbr
0
140
Member Avatar for v1shwa

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

Member Avatar for jkon
0
342
Member Avatar for shashigowda

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

Member Avatar for shashigowda
1
9K
Member Avatar for Stephen_9

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

Member Avatar for lps
0
73
Member Avatar for Pythogeek

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 …

Member Avatar for Pythogeek
0
76
Member Avatar for anmol.raghuvanshi1

<?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 >&nbsp;</th> <th > 9:15 - 10:15 </th> <th …

Member Avatar for lps
0
244
Member Avatar for gangachana

I need to read the span value and insert into database in php <span class="GrandTotal">0.00</span>

Member Avatar for mattster
0
2K
Member Avatar for MarkDbro

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 …

Member Avatar for Szabi Zsoldos
0
985
Member Avatar for janicemurby

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 …

Member Avatar for janicemurby
0
358
Member Avatar for spud91

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

Member Avatar for jj.dcruz
0
261
Member Avatar for bolfescu

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/)

Member Avatar for bolfescu
0
217
Member Avatar for Makara

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"; …

Member Avatar for Makara
0
2K
Member Avatar for AntonyRayan

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%; …

Member Avatar for alisajjad160
0
190
Member Avatar for chaitu11

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') { …

Member Avatar for alisajjad160
0
296
Member Avatar for Venus_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 …

Member Avatar for Venus_1
0
259
Member Avatar for habib rahman
Member Avatar for phoenix254

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 …

Member Avatar for phoenix254
0
528
Member Avatar for R0bb0b

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

Member Avatar for diafol
0
157
Member Avatar for Themby

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?

Member Avatar for diafol
0
99
Member Avatar for uchejava

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 …

Member Avatar for Szabi Zsoldos
0
266
Member Avatar for Heanre

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

Member Avatar for almostbob
1
149
Member Avatar for Nimerion

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

Member Avatar for Nimerion
0
2K
Member Avatar for sam230

http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=4&cid=55505&apiKey=5q4gzx43g6ukcrq798z2hz75&customerSessionId=&locale=en_US&currencyCode=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&currencyCode=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 = …

Member Avatar for Terrymol
0
917
Member Avatar for ramsiva

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.

Member Avatar for DaveAmour
0
155
Member Avatar for uchejava

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

Member Avatar for amith_ami
0
203
Member Avatar for amith_ami

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.

Member Avatar for lps
0
294
Member Avatar for raj-uk

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 …

Member Avatar for diafol
0
251
Member Avatar for uchejava

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

Member Avatar for uchejava
0
119
Member Avatar for ramsiva

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

Member Avatar for ramsiva
0
135
Member Avatar for ramsiva

$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

Member Avatar for ramsiva
0
185

The End.