39,316 Topics

Member Avatar for
Member Avatar for andyy121

in database i have added the random and activated with boolean type and the defaul was set to As defined with 0 value.when i click log in it must desplay this: your accoun si not activate.Please check your email. but i show you are in click here to click here …

Member Avatar for andyy121
0
191
Member Avatar for diafol

Hi all. AM having a little issue with regex. Not one of my strongest skills! I'm trying to produce a simple translation system that doesn't require arrays, gettext etc. It basically has this structure: $content=<<<CONTENT <p>{{Dyma destun||Here's some text}}</p> ... CONTENT; So the page content is held in a var …

Member Avatar for diafol
0
310
Member Avatar for davy_yg

After I press edit on the previous page, it will carries me to this page: http://localhost/RustoleumCustomCMS/administrator/input_berita_static.php?id=2 //Load berita if (!empty($_GET['id'])){ $result = mysql_query("SELECT * FROM static_page WHERE id =".$_GET['id']) or die(mysql_error()); $data = mysql_fetch_array($result); $id = $data['id']; $page = $data['page']; $judul = $data['judul']; $news = $data['isi_berita']; echo "variable"; echo $id; …

Member Avatar for davy_yg
0
68
Member Avatar for davy_yg

Hello, I am trying to print the thumbnail out how? I still have error on the thumbnail. Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\RustoleumCustomCMS\administrator\image_gallery.php on line 147 <table id="admintable" border="1" cellpadding="2" cellspacing="0"> <tr> <th>Image</th><th>Path</th><th>thumbnail</th><th>Action</th> </tr> <?php $i=0; while ($data = mysql_fetch_array($result)){ $result2=($i%2)?'#DFA09D':'white'; echo "<tr bgcolor='$result2'>"; echo '<td>'.$data['image'].'</td>'; echo '<td>'.$data['path'].'</td>'; …

Member Avatar for davy_yg
0
84
Member Avatar for andyy121

i have added the $random in line 53 and '$random' ,'0' in 57 line inside the (),in the database i have added random and activated with boolean value which is 0 or 1,and when i click the previu/debug in browser button it show me this: Warning: mysql_num_rows() expects parameter 1 …

Member Avatar for Atli
0
435
Member Avatar for hbmarar

Hi , I googled a lot and couldnt derive a proper picture. 1. How is sendmail, SMTP related? 2. Is it required to have SMTP relay configured for sendmail to function? 3. Would sendmail have a standalone existence irrespective of OS flavor? Please suggest me on the above and it …

Member Avatar for sellccvus
0
192
Member Avatar for louie540

I have a URL shortner script which works fine until I submit a link containing "http://", which gives me a 403 error. I'm new to PHP so you're going to have to go easy on me. My site is http://newurl.us First I tried using str_replace() to stop people from submitting …

Member Avatar for JorgeM
0
195
Member Avatar for bjoy21

This is my code on html. I don't know to to process in my html code in PHP. Can anyone help me?Thanks in advance. <div align="right"> <form action="search2.php" method="POST"> <table> <table border="0"> <h2 align="right" style="Verdana"> Statistic Survey Search </h2> <tr><td>Select Statistic:</td><td><select name="stat"> <option>--Select One--</option> <option value="Yes">Yes</option> <option value="No">No</option> <option value="Undecided">Undecided</option> …

Member Avatar for coreyavis
0
116
Member Avatar for raistie_1

I have a shell script which mcrypts for me echo "Preparing..." mcrypt -F -c ./.mcrypt $ORIG echo "Moving..." mv "$ORIG.nc" $CRYPTED echo "Done" the php file calls it $COMMAND = './crypt.sh '.$CNAME; if ($_POST['cname']) { $output=shell_exec($COMMAND); echo $output; } i can see Preparing... Moving... Done but the file is not …

Member Avatar for DarkMonarch
0
123
Member Avatar for pblanton56

What I am trying to do is: I have my database in phpMyAdmin constructed, with pages coming into Content Mangement system. What I would like to do is link a page directly to a website page by creating a direct link in phpMyAdmin. Can someone explain how I can do …

Member Avatar for DarkMonarch
0
120
Member Avatar for hakeemtunde

guys i wil be glad if someone can explain how i can go about handling binary data, like parsing an image to be dispaly on a browser.

Member Avatar for DarkMonarch
0
100
Member Avatar for rotten69

Hi there, Just wondering if there is a way of inserting tuples into a table without specifying the primary key id. insert into myTable (username, password) values (value1, value2); Ok. When I use the above mentioned statement, it complains about duplicate keys. Anyone know why? shouldn't the key be generated …

Member Avatar for diafol
0
113
Member Avatar for geekcoder

I have a html table with CSS style supported with javascript that sorts the list of products in the table. What I want is a PHP code that allows me to add new column online. There will be an add button but only visible to the admin.

Member Avatar for diafol
0
131
Member Avatar for davy_yg

This suppose to load my existing data to the form for editing. Yet, this is not the case, I still see the form empty why is it? The present url: http://localhost/RustoleumCustomCMS/administrator/input_berita_static.php?id=0 //Load berita if (!empty($_REQUEST['id'])){ $result = mysql_query("SELECT * FROM static_page WHERE id =".$_REQUEST['id']) or die(mysql_error()); $data = mysql_fetch_array($result); $id …

Member Avatar for davy_yg
0
214
Member Avatar for davy_yg

Notice: Undefined variable: confirmation in C:\xampp\htdocs\RustoleumCustomCMS\administrator\admin.php on line 126 if (!empty($_REQUEST['id']) && !empty($_REQUEST['mode'])){ if ($_REQUEST['mode'] == "delete"){ $id = $_REQUEST['id']; $result = mysql_query("DELETE FROM static_page WHERE id =".$id) or die(mysql_error()); $confirmation = ($result) ? "Data telah terhapus." : "Gagal menghapus data."; } } ?> <div align="center"> <div style="width:700px;text-align:left;padding-top:5px;"> <?php echo …

Member Avatar for davy_yg
0
265
Member Avatar for Aardwolf

I have this rewrite setting: RewriteRule ^([a-zA-Z0-9_'-]+)$ /index.php?action=$1 but now I need for example to return an error to a register page by $_GET /?action=register&error=1 but with the rewrite rule I can't get a PHP script to work with this URL: /register&error=1 What rewrite rule do I need to make …

Member Avatar for coreyavis
0
294
Member Avatar for davy_yg

Hello, Cek this out: [webpage](http://www.rustoleum-indonesia.com/aerosol-produk.php) It's a static image gallery. I am trying to convert it to CMS and trying to create a CMS for the image gallery. I do not know how to. I have all the images and thumbnail in one folder. Any clue how to? The front …

Member Avatar for davy_yg
0
187
Member Avatar for subratabanerjee

I'm trying to do a php-mysql project that can make phone calls from the computer. The concept is - My call list is stored in a mysql database and when a tele-caller login in to their account. The call list is displayed and a call button is placed beside every …

Member Avatar for DarkMonarch
0
142
Member Avatar for broj1

Hi folks. I have a strange thing happening here. I have a loop where counter gets incrememnted by 0.1 starting from 0 and up to 1. In each iterration I use the counter in an expression with modulo operator. I get incorrect result when the counter has values of 0.8 …

Member Avatar for DarkMonarch
3
392
Member Avatar for vinay7868

starting to develop a new website on online examination system..in php...so please provide any guide lines that waht to include and what should happen overall in ur way...pls.....rply......

Member Avatar for diafol
-1
190
Member Avatar for dyingatmidnight

Hi there, I'm currently rewriting my dynamic urls using mod_rewrite which is working fine. I'm just wondering how best to handle pages that don't exist. Right now it works by getting the page id and displaying the content, if the pageid doesn't exist it displays a custom 404 message. What …

Member Avatar for dyingatmidnight
0
177
Member Avatar for bops

Hi there. I use Virtual Hosts on Apache to host multiple sites on one web server and I was wondering if there is some kind of failsafe/default mechanism available. Basically, say for example I have one website set up as a Virtual Host like <Virtual Host *:80> ServerAdmin foo@bar.com ServerName …

Member Avatar for bops
0
143
Member Avatar for asaidi

Hi Experts i have a result from database that create a pdf with bullzip when i click on print the result is displaying in the browser first then when i clcik on print button the result is send to pdf via bullzip my problem is how to save this result …

Member Avatar for Citytech.tester
0
46
Member Avatar for daniel36

I have written a mysql query- SELECT questions.id,questions.date,questions.title,users.user_name,subjects.subject FROM questions INNER JOIN topics ON questions.topic_id=topics.id INNER JOIN subjects topics.subject_id=subjects.id INNER JOIN users ON subjects.id=users.sub1 OR subjects.id=users.sub2 WHERE users.id=8; which is giving error- #1066 - Not unique table/alias: 'topics' .i am unable to understand the problem.

Member Avatar for yamahaszr660
0
163
Member Avatar for ak47carbon

when i send email from php mial funtion it working best in yahoo and gmail acounts but images and background images is not showing in outlook 2007,tell me what is solution and better way to show image in oulook <?php // multiple recipients (note the commas) $to = "zohaib@sikone.com, "; …

Member Avatar for Citytech.tester
0
2K
Member Avatar for Awah Mohamed

hi guys, i am making a new app in cakephp (and i am new to the framework.. learned how to use it last night).. and i am supposed to make a signup system and login system but i am stuck in the signup. i Worte the models and controllers and …

Member Avatar for Citytech.tester
0
150
Member Avatar for Buppy

Hi, I want to set up pagination in CakePHP 2.0. The base page url is routed to be like this - '/mypage'.However, the paginator sets links to this - '/controller/mypage/page:2'. How do I configure this so the controller name isn't added in the beginning? I prefer URLs like these - …

Member Avatar for Citytech.tester
0
103
Member Avatar for johndohmen1963

i have the folowing code <?php $datumeind = date("Y-m-d");// current date $datumverleden = strtotime(date("Y-m-d", strtotime($datumeind)) . " -99 year");//current date -99 years $datumbegin = date('Y-m-d', $datumverleden); if(isset($_POST['zenden'])) { if($geboorte_datum <= $datumbegin && $inleven_dood == 'In leven' ){ ?> <script type="text/javascript"> <!-- var r=confirm("Klik ok als In Leven."); if (r==true) ("<?php …

Member Avatar for Citytech.tester
0
202
Member Avatar for dourvas

hallo there i read an excel file using excel_reader library. The excel file contains greek characters. i get the data and store it into arrays (it is a common xls file that contains names, lastnames and fathersnames) using characters set utf-8. the code works fine //i uploaded the xls file …

Member Avatar for blocblue
0
128
Member Avatar for chandbasha

Hi All, I have hosed my site on Amazon and my IP is 175.41.140.91 and domain name is 100bestbuy.com But when i am typing in browser its not giving any response But is pinging and connecting through fillezilla and putty. Please can any one help me. C:\Users\chand>ping 100bestbuy.com Pinging 100bestbuy.com …

Member Avatar for c-tech
0
313

The End.