39,316 Topics

Member Avatar for
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
671
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
159
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
221
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
223
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
Member Avatar for GeekTool

Hello all you guys, First of all, i am done with Html and CSS as i said in the article title. Now i want to learn a language like PHP, Coldfusion, .Net etc. to make dynamic web sites. According to what i have heard from my friends, php is the …

Member Avatar for veedeoo
0
178
Member Avatar for ramganesht

I am, trying to write a PHP-Mysql code which fetches the important places in a city and displays the results as links, when i click on the city it should display all the details like name, place, address, phone number etc, but in this case results are not being shown. …

Member Avatar for diafol
0
144
Member Avatar for ramganesht

Hi there, I am facing problem in coding PHP for my search results, my search results produce dynamic URLs (clickable texts) but when i click on the url's no results. In my website am trying to display all hotels in a city, and Iam searching with the hotel name and …

Member Avatar for ramganesht
0
189
Member Avatar for manu555

header("Content-type: application/msexcel"); header("Content-type: text/msexcel"); header("Content-Disposition: attachment; filename=bulkUpdate.xls"); $out = ''; $out .='code'; $out .="\t"; $out .='sold'; echo $out; exit; in above code xls file is generated but getting output from second row .i want it from first row

Member Avatar for pritaeas
0
104
Member Avatar for gopi17

Guys, need some guidance here... i have this php codes that copies all the value in a table to another table....some sort of table replication now, the problem is when i tried copying them, keep getting an error Database down **1054: Unknown column '124928F014007570' in 'where clause'...** the codes dataverification.php …

Member Avatar for pritaeas
0
179
Member Avatar for hwoarang69

1st user has to fill this form <form action="upload.php" method='post' enctype = 'multipart/form-data'> ImageName: <input class = "text" type="text" name="imagename" /><br/> Description<textarea name="imagedes"cols="16" rows="4"> </textarea><br/> <input type ="file" name="fileupload" /><br/> <input type="submit" name="submit" value="sumbit" /><br/> <a href="index.php">[BACK]</a> </form> than it run php code. here i am getting image infomation $image_short_name …

Member Avatar for pritaeas
0
126
Member Avatar for Danny159

Hi All, I have a WordPress installation at the following: http://www.domain.com/wordpress/ However I need some help... When a use goes to http://www.domain.com I want it to redirect to http://www.domain.com/wordpress/ however I want to hide the /wordpress/ so the user only sees http://www.domain.com But it still needs to work with links …

Member Avatar for Beattle55
0
242

The End.