39,323 Topics

Member Avatar for
Member Avatar for aecha

Anyone can help me with this code? I try to make it upload the photo but its cannot save and get this error.. Warning: fopen(Waterfall.jpg) [function.fopen]: failed to open stream: No such file or directory in C:\AppServ\www\pqs\hra\data_entry.php on line 13 Warning: filesize() [function.filesize]: stat failed for Waterfall.jpg in C:\AppServ\www\pqs\hra\data_entry.php on …

Member Avatar for aecha
0
125
Member Avatar for nexter

please solve my problem Parse error: syntax error, unexpected T_STRING in /home/vhosts/www.changs.tk/index.php on line 8 [CODE]<?php if ($NoTemp) { $CONFIG; Return (1); } $EXTRA_ENGINE="exchange_box.php"; $PAGE_TEMPLATE="index.html"; $PAGE_TEMPLATE="login_page.html"!!session_active()$CONFIG$_GET$CONFIG$CONFIG; $_GET("do_login")$page; $LANG_msg$LANG_msg; $page("LANG",$LANG_msg); $_GET$_GET; Return (1); ?>[/CODE]

Member Avatar for ctaylo21
0
293
Member Avatar for saybabs

I really want someone to tell me on FREE web hosting site that i can upload my project in order to TEST it before i do the final hosting. I appreciate your usual efforts.

Member Avatar for toms ace
0
149
Member Avatar for davy_yg

image_gallery.php [CODE] <?php $i = 0; //while ($data = mysql_fetch_object($result)){ for ($rows = 1; $rows<=3; $rows++){ echo "<tr>"; for ($cols=1; $cols<=4;$cols++){ if ($i >= $numRows) break; echo '<td style="text-align:center;">'; $data = mysql_fetch_object($result); echo '<div style="width:100px;font-family: verdana; font-size: 11px;">',$data->title; echo '<a href="'.$data->path.'" rel="lightbox[roadtrip]">'; echo ' <span style="border:0px;"><img border="0px" class="reflect" src="'.$data->path.'" width="100" …

Member Avatar for davy_yg
0
141
Member Avatar for emailcrombiez

I have a pretty simple question about RewriteRule. I am using the isset($_GET['p']) function to call pages into my index.html so when you click on a page the address in the address bar appears like this: [CODE]http://site.com/?p=contact[/CODE] I would like to get rid of the ?p= in front of the …

Member Avatar for emailcrombiez
0
118
Member Avatar for ghostdog_alex

Hello, I have a newoffer php page wich has a form for inserting new data in a mysql database. When the page newoffer.php is opened, a new record will insert with the values NULL. When the form is completed, the record will update with the new information. But if the …

Member Avatar for ghostdog_alex
0
108
Member Avatar for maxelcat

Hi All I am sure this is easy, but I can't make it work I have two variable $sectionID and $categoryID. There are a whole pile of conditions that these could have but I want to pick out two: when $sectionID==4 and $catergory!=21 and $category is !=27 How do I …

Member Avatar for maxelcat
0
94
Member Avatar for AdriftUniform

Hi all, I am sorry if I have posted this in the incorrect place but I couldn't see an Apache section. I am working on some ReWrites and ReDirects in my htaccess file, my reason for doing this is because I am developing a new design and layout for an …

Member Avatar for AdriftUniform
0
191
Member Avatar for nauman_mirza

I am trying to connect with afilias using php code below. [CODE]$ctx = stream_context_create(); $fp = stream_socket_client('inforfcote1.afilias.net:700', $err, $errstr, 60, STREAM_CLIENT_CONNECT, $ctx); if (!$fp) { print "Failed to connect $err $errstrn"; return; } else { print "Connection OK<br />"; } [/CODE] I get "connection OK" when I execute the script. …

0
51
Member Avatar for jogesh_p

hi i am not clear with the socket connection in php, because before starting a new topic i want to clear with the experts(you all guys), why we use socket connection??

Member Avatar for jogesh_p
0
130
Member Avatar for davy_yg

style.css [CODE] #footer { height: 120px; width: 985px; float: left; background: yellow; margin-top: 190px; position: relative; } [/CODE] This is just a part of css code. Basically I am creating a footer underneath my web which consist of many pages. I wonder how to set its footer location since each …

Member Avatar for davy_yg
0
114
Member Avatar for davy_yg

banner_manager.php [CODE] <?php //require("include/header.php"); //if (!$_SESSION['login']){ // echo "Anda tidak berhak mengakses halaman ini."; // exit(); //} include ("includes/koneksi.php"); //$_REQUEST['simpan'] = isset($_POST['simpan']) ? $_POST['simpan'] : ''; //$_REQUEST['link'] = isset($_POST['link']) ? $_POST['link'] : ''; //$_REQUEST['gambar'] = isset($_POST['gambar']) ? $_POST['gambar'] : ''; //$_REQUEST['id'] = isset($_POST['id']) ? $_POST['id'] : ''; //SIMPAN DATA if …

Member Avatar for davy_yg
0
300
Member Avatar for davy_yg

input_berita.php [CODE] //Simpan berita dan konfirmasi kepada subscriber if (isset($_REQUEST['ok'])){ $judul = $_REQUEST['judul']; $news = $_REQUEST['news']; $idKategori = $_REQUEST['kategori']; $tanggal = date('Y-m-d'); if (empty($_REQUEST['id'])) $sqlstr = "INSERT INTO berita(id_kategori, judul, isi_berita, tanggal)VALUES(".$idKategori.",'".$judul."','".$news."','".$tanggal."')"; else $sqlstr = "UPDATE berita SET judul='".$judul."', isi_berita='".$news."' WHERE id=".$_REQUEST['id']; $result = mysql_query($sqlstr) or die(mysql_error()); //Jika mode edit, …

Member Avatar for davy_yg
0
111
Member Avatar for wavyaquaeyes

HELP- I need to view my php files in the browser. I am running Apache server. I know only this much to put in the browser [URL]http://localhost/[/URL] /filename.php thanks

Member Avatar for dineshnbhatia
1
20K
Member Avatar for shrikant_77

[CODE]if(isset($_POST['listingType'])) { ini_set('magic_quotes_gpc', false); // magic quotes will only confuse things like escaping apostrophe //Get the item entered $listingType = $_POST['listingType']; $primaryCategory = $_POST['primaryCategory']; $itemTitle = $_POST['itemTitle']; if(get_magic_quotes_gpc()) { // print "stripslashes!!! <br>\n"; $itemDescription = stripslashes($_POST['itemDescription']); } else { $itemDescription = $_POST['itemDescription']; } $itemDescription = $_POST['itemDescription']; $listingDuration = $_POST['listingDuration']; $startPrice …

0
161
Member Avatar for aecha

Hi.. I have problem with my system which is the bar code image cannot been display after the bar code generate from the database. can anyone show me the correct way to call the data from database to generate and display in my system? when user click view card in …

Member Avatar for rpv_sen
0
2K
Member Avatar for NoviceCoder37

I keep on getting this error "Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in" from both of my while loop conditions. Can anyone review my code and let me know what I'm doing wrong? [code] <html> <head> <title>Task # 4 - Test Page</title> </head> <body> <?php $link …

Member Avatar for cbemerine
0
332
Member Avatar for atalkingfish

I have a page full of user-submitted updates and stuff. Basically the basic stuff. I am taking it out of a database. I have this so far: [CODE]$getnews = mysql_query("SELECT * FROM news ORDER BY $order LIMIT 50"); [/CODE] and $order is determined by a drop down menu on the …

Member Avatar for atalkingfish
0
1K
Member Avatar for atalkingfish

I have a website where you can log in with a session or with cookies (remember me) and I can't seem to get the logout to work. I have a code that goes on top of most pages (all pages that require one to be logged in) and it goes …

Member Avatar for atalkingfish
0
81
Member Avatar for sungkono

Hii All, i'm newbie in this forum and in php i got a problems, i was developing simple website i had 3 tables in there table request, table upload, and table feedback which in id_request is foreign key in table upload and table feedback 1. how to update the id_request …

Member Avatar for diafol
0
130
Member Avatar for BenzZz

Hi, Basically I'm creating and implementing a dynamic website as part of my uni final year project but i am a beginner in php so need some help. First, I'm not entirely sure about how i should go about creating the database, tables and inserting data. I don't mean in …

Member Avatar for BenzZz
0
110
Member Avatar for wonderlhily

[code=php] <?php $conn = mysql_connect("localhost", "root", "dotherz"); //connecting to database if($conn) //testing if the connection was stablished { mysql_select_db("orders", $conn); //selecting database from your localhost $qry = "SELECT * FROM customer WHERE customerId = 1"; //the query to get the first user $result = mysql_query($qry); //executing the qry and passing …

Member Avatar for diafol
0
160
Member Avatar for kaizokupuffball

Hi! I can't say im familiar with the .htaccess file. I need to create a htaccess file that will redirect the user if he manually tries to open a .txt file on the server, or tries to download it (example if the user tries to navigate to [url]www.domain.com/users/username/bio.txt[/url], then he …

Member Avatar for diafol
0
119
Member Avatar for bwls

Questions: Can I use a wildcard in unlink - ie: $myfile = '../pdf/'.$tnum .'*.pdf'; This results in an error: Warning: unlink(../pdf/36818*.pdf) [function.unlink]: No error in \purgepdf.inc.php on line 29 Any help would be greatly appreciated. Thanks, Bill

Member Avatar for bwls
0
111
Member Avatar for jacob21

I have a form having validation given below in java script. The problem is when i am inserting form data in a database,if there is any validation error,still added in database. please give me suggestion where to use PHP code I am using this code for insertion [CODE]<?php if(isset($_POST['submit'])) { …

Member Avatar for cereal
0
156
Member Avatar for davy_yg

banner.php [CODE] <link href="../style.css" rel="stylesheet" type="text/css" /> <style type="text/css"> </style> <div id="banner"> <div class="headerStyle"> <div style="padding:4px 0px;">&nbsp;Banner</div> </div> <?php include('koneksi.php'); $result = mysql_query("SELECT gambar FROM banner"); while ($data = mysql_fetch_array($result)){ echo "<img src="$data['gambar']">".'<br>'; } ?> </div> [/CODE] Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in C:\xampp\htdocs\php_template2\includes\banner.php on …

Member Avatar for cereal
0
4K
Member Avatar for cgull

Hello, I know this question was answered many times, and I looked at the answers but still can't find a solution. I have an index file that includes a contact form. The contact form action is itself, and if the form succeeds it should redirect to index.php?content=thankyou Althought the form …

Member Avatar for cgull
0
192
Member Avatar for vitaquous

I have no idea if I am doing this correctly. Eight years ago I was a C++ programmer, then I left the industry. I am lost and have been reading heaps on the web but do not know where to begin. I wrote a MySQL DB, I have populated the …

Member Avatar for vitaquous
0
234
Member Avatar for divyakrishnan

Hi... I want to move an uploaded file to another machine.I had given the file path to move_uploded_file() function including IP address .The folder is a shared folder.My code shown below. [ICODE]<?php if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: …

Member Avatar for emiola
0
115
Member Avatar for davy_yg

banner_manager.php [CODE] <?php include ("includes/koneksi.php"); //$_REQUEST['simpan'] = isset($_POST['simpan']) ? $_POST['simpan'] : ''; //$_REQUEST['link'] = isset($_POST['link']) ? $_POST['link'] : ''; //$_REQUEST['gambar'] = isset($_POST['gambar']) ? $_POST['gambar'] : ''; //$_REQUEST['id'] = isset($_POST['id']) ? $_POST['id'] : ''; //SIMPAN DATA if (isset($_REQUEST['simpan'])){ $id = $_REQUEST['id']; $link = mysql_real_escape_string($_REQUEST['link']); $gambar = $_REQUEST['gambar']; } //Cek apakah ada …

Member Avatar for davy_yg
0
218

The End.