39,323 Topics
| |
I have resorted to everything I can think of and I can't get a PHP variable to go into a form that is onclicked with a Javascript Function... Here is my attempts thus far: 1. Give the div that contains the onclick function the php variable as an id, and … | |
I would like to split a txt file that i use as a log in a comment system after each 10 comments how can i do that? Here is my code, Sorry for the bad indentation: <?php $act = $_POST['act']; if ($act == "post") { $name = $_POST['name']; $area = … | |
hello, im tyring to change script from another page. i would like to change (a > true) to false and back if need be. As a dropdown or radio selection, maybe using variables but everything i have tried i have no luck. <?php if (a > true ) print "a … | |
Rather than write a huge list of properties used by a class I want to know if I can dynamically generate them when needed. I have looked and __set and __get but I am not sure how (or if) I use them with what I am trying to do. The … | |
Hello, I made a first version of a comment system which can be viewed here: http://t-s.bugs3.com/index.php . Could I have some suggestions too inprove it and to know if theres anyway to hack it? If people like it i will make a site where you can download it. By the … | |
How can i reload `$file` with ajax or javascript each 5 seconds? <?php if ('' == file_get_contents($file)) { echo '<div id="shadow">Nobody has commented yet. Be the first? </div>'; } else { include($file); } ?> | |
*by the name of Allah, .... only when you don't know how to compelete , just you have to ask others how shall i do ??? i really don't know ho to do or with the right words by what ??? books , or videos .. tutorials or training at … | |
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 … | |
| 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 … |
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; … | |
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>'; … | |
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 … | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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. | |
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 … | |
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. | |
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 … | |
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 … | |
| 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 … |
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 … | |
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 … | |
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 … | |
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...... | |
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 … | |
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 … | |
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 … |
The End.