39,323 Topics

Member Avatar for
Member Avatar for lse123

Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 4 in /yyyyyyy/BID-REF-URL-No-account.php on line 21 what is this about , any relation with "index"? I lookup everything but not find the bug?

Member Avatar for pritaeas
0
58
Member Avatar for Usman-Zulifiqar

Assaam-O-Alikum.! I am new Here. I Want to learn PHP and i want to have completely command on C++.

Member Avatar for almostbob
0
57
Member Avatar for pawan768

I want to use a php variable into HTML tag id . For e.g. <?php $temp='123'; ?> Now i want to use $temp as a ID in DIV say <div id="$temp"></div> How i'm able to do this .

Member Avatar for dcdruck
0
89
Member Avatar for daniel36

If i removes error_reporting(0) function it gives error " undefined index tm ".can any one have solution sothat i can use this script without this function. <?php require '../zones/publisher_header.php'; ?> <Script language="JavaScript"> function goto(form) { var index=form.select.selectedIndex if (form.select.options[index].value != "0") { location=form.select.options[index].value;}} //--> </SCRIPT> <h2 style="padding:25px;border:1px solid red; width:90%;">Publisher …

Member Avatar for vibhaJ
0
140
Member Avatar for inni2626

Hello Everyone, Am working on a project with includes php and mysql database.Everything works fine but i fail to make the validation work or i guess don't know how. I got a form and i would like if the user input numeric or less character to submit an error message. …

Member Avatar for sftranna
0
297
Member Avatar for dheerajm

hello i am developing a website and i have a problem. when i enter a keyword in my search tab, it works fine and displays all the products matching with the keyword. when i click on a single product the product page opens fine also. but i want all the …

Member Avatar for senthilvignesh
0
115
Member Avatar for vijayram

Hi everybody, i asked many times.but i cannot get expected result.so i asked agian. anybody plz help me. this code,did not display fancy box.the requested content cannot be loaded message display. i created planmate url. $(document).ready(function(){ $(".planbooks").fancybox(); $('#planbook-content').bind('click',function() { $.ajax({ type :"post", catch:false, url : $("#planbook_planmate"), data :{title_name:'title_name',} success:function(data) { …

Member Avatar for pritaeas
0
102
Member Avatar for newbie1234

I am writing html and css to design in php. But when i am opening in ie, chrome and firefox. every where its showing different. Means all dimension going to change. I am using % for body wrapper and em for fonts but its not working. Is here any help?? …

Member Avatar for vjcagay
0
116
Member Avatar for ping0ping

Hi, my jQuery link is not working. Its only work if I'm not using `href` attribute on that link. Currently its only functioning when I put the `URL` into `alt`or `title` attribute for example. When I put the url on `href` attribute it will not run as AJAX. Sorry if …

Member Avatar for ping0ping
0
167
Member Avatar for hwoarang69

my image database: image_id user_id image(long blob-store images) image_name...etc on gallery.php i just want to print all the image of who ever is loged in. here is what i did: first i got username and id of whoever is loged in. $user = $_SESSION['username']; $id = $_SESSION['user_id']; than i select …

Member Avatar for pritaeas
0
685
Member Avatar for jeffadrian

here is my sql data from my search.php page mysql_connect("localhost", "username", "password") or die( mysql_error() ); mysql_select_db("dbname") or die( mysql_error() ); mysql_query("SET NAMES utf8"); $find = strtoupper($find); $find = strip_tags($find); $find = trim ($find); mysql_query("SET NAMES utf8"); $data = mysql_query("SELECT * from database WHERE upper($field) LIKE'%$find%' ORDER BY Catalog ASC"); …

Member Avatar for jeffadrian
0
242
Member Avatar for furqankhyraj

<td><a href="$_SERVER['PHP_SELF'] . '?id=' . $myrow["article_tittle"] ">'.$row["article_tittle"].'</a></td> what's the error in above code, its showing error Parse error: syntax error, unexpected T_STRING in ...../class.article.php on line 64 Please identify

Member Avatar for MarPlo
0
235
Member Avatar for Patiodude

I recently converted all my website's files to .php, including my index.html and 404 page. Everything worked fine until I clicked a dead link, and no 404 page came up. Naturally, I figured I forgot to update the .htaccess file. After doing so and re-uploading it, every page on my …

Member Avatar for |-|x
0
248
Member Avatar for ping0ping

Hi I'm trying to append the content from one of the view file (page.ctp) into another view file (index.ctp). So basically what I'm trying to do is: content from page.ctp ----> index.ctp I managed to get the content of page.ctp using below method. $.get('http://localhost/pages/10', function(data) { console.log(data); }); But based …

Member Avatar for ping0ping
0
160
Member Avatar for hwoarang69

Notice: Undefined index: lastid in C:\xampp\htdocs\login_test\gallery.php on line 29 and broken links $lastid = mysql_insert_id(); <img src='$row[lastid]' width='200' height='200'></img> line 29 : $row[lastid]

Member Avatar for hwoarang69
0
488
Member Avatar for trektrak

Ok.. at first I wanna try to put "include.php" on the php.. but it goes around and around.... this is the case... if ($v_name=="") $query="DELETE FROM key_show WHERE code='$v_name'"; else{ $query="insert into key_show(code) values('$v_name')"; mysql_query($query) or die(mysql_error()); } The problem here..the system keep inserting data...it shouldn't be like that yea..it …

Member Avatar for trektrak
0
120
Member Avatar for hwoarang69

iam using long blob to store my images and it works fine untill user upload huge image like 2000x2000. than i get erros like: Warning: mysql_query() [function.mysql-query]: MySQL server has gone away in C:\xampp\htdocs\login_test\upload.php on line 41 Warning: mysql_query() [function.mysql-query]: Error reading result set's header in C:\xampp\htdocs\login_test\upload.php on line 41 …

Member Avatar for hwoarang69
0
222
Member Avatar for KIP15

Hi, I am receiving emails from my form on my website however, within the email, the files does now give me the actual data, only the filed titles. Can anyone help me resolve this? Thanks in advance <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Untitled Document</title> <style type="text/css"> .back …

Member Avatar for KIP15
0
140
Member Avatar for CoolAtt

hi all, i have 3 php websites , each one requires login (same username+password for all of them) they run on apache virtual hosts on the same machine. i want to centralise login on a single page by adding 3 forms on a page so that when i click on …

Member Avatar for diafol
0
254
Member Avatar for McLaren

Hello, is there a way to be sure that you not missed to test some function? I want to test lets say all posible functions, but it lot of them and you might easily miss. It would be good to get notices or something like that on which functions has …

Member Avatar for McLaren
0
100
Member Avatar for McLaren

Hello, today I am experimenting with unit testing functions, on codeigniter, but that does not matter, the same question is for everything in PHP, or maybe not only in PHP, but general with functions that connect to database. So lets say I have such function: public function turnview_by_franchise_id($franchises_id, $clients_id, $date_from, …

Member Avatar for McLaren
0
222
Member Avatar for veledrom

Hi, I have a XML file and want to put this line it but doesn't work. Is there any way of doing it? Thanks <?php header('location: goback.php'); exit; ?>

Member Avatar for vibhaJ
0
225
Member Avatar for PF2G

Hi, i'm doing a search system where you search the reference of a product and it shows a list of all results, but i have one prolem. Is that i can't do the seperation of the products by its material: $ref=$_GET['q2']; $query_prod="SELECT * FROM produtos WHERE referencia LIKE '%".$ref."%' ORDER …

Member Avatar for PF2G
0
163
Member Avatar for hwoarang69

i though repost this issue. i am trying to display image from database. but broken image shows up. and dont how why. i tried debuging like echo, mysql_error, erron, but there are no errors. get.php <?php include("connect.php"); $user_id = $_SESSION['user_id']; $image = mysql_query("SELECT * FROM image WHERE user_id = $user_id"); …

Member Avatar for SpartakusMd
0
2K
Member Avatar for hwoarang69

i have a upload.php page where user can upload images to database. now i want to create gallery.php. where who ever is loged in can view all his photos from database. here is my struct for my gallery.php file gallery.php ______________________________________ (1)at top there is going to be menu and …

Member Avatar for jeremym001
0
139
Member Avatar for vijayram

Hi, everybody, user post the plancard.click the evryplanbook display popup page with content how can i make it. anybody plz help me. <p><div id="planbook-content" class="float" onclick='<?php echo url_for('@planbook_planmate') ?>' > <div><img src="/uploads/planbook/<?php echo $planbook['photo'] ?>" alt="" /></div> <div> <span class="field-label"> Title: <?php echo $planbook['title_name'] ?></span></div></br> Country: <?php echo $planbook['country_id'] ?></span><br …

Member Avatar for diafol
0
1K
Member Avatar for hwoarang69

i got a wired error below: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Ö£'}€l‘¸â:m™ëînYWñ×KDnšC=¨ŠnÂRoÕö¨ºk„Ý·ÇçÓQ' at line 1problem uploading image $image = file_get_contents($_FILES['fileupload']['tmp_name']); $image_full_name = $_FILES['fileupload']['name']; $image_size = getimagesize($_FILES['fileupload']['tmp_name']); if(!$insert = mysql_query("INSERT INTO …

Member Avatar for hwoarang69
0
324
Member Avatar for ramganesht

Below is the code in which I am creating the list of URL s with the information of hotels in a city, the problem is when click on the URL no values are being displayed. please let me know how should i modify the code. <?php include ('connectdb.php'); $query = …

Member Avatar for |-|x
0
223
Member Avatar for ITech

can anyone tell me whats wrong in the following code. <?php $username="******"; //To test type ure gmail email $password="****"; //type ur gmail passwd $url="https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/&ss=1&scc=1&ltmpl=default&ltmplcache=2"; $cookie="cookie.txt"; $postdata = "Email=".$username."&Passwd=".$password; $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) …

Member Avatar for veedeoo
0
1K
Member Avatar for golfgod04

Hi, I have never had to do this before but I do not know how to make an htaccess file. I currently have a webhost and have a few addon domains to my original website. I just uploaded a new site as an addon domain. However, when I go to …

Member Avatar for golfgod04
0
108

The End.