38,020 Topics

Member Avatar for
Member Avatar for riahc3

I want to use a localStorage variable in a PHP page. Very simple but "strange". AJAX comes to mind. Whats the best form to do this? Thanks

Member Avatar for pritaeas
0
16K
Member Avatar for shashanknaik1
Member Avatar for Szabi Zsoldos
0
94
Member Avatar for ehpratah

Hi to all i just cant get the grasp of what im trying to do basically i'm making a script that will higlight a certain **data(Date /time)** in my table if data < 3 min of current time.. ex $data="March 12, 2013, 16:18"; $current_time="March 12, 2013, 16:20" if($data< 3min of …

Member Avatar for ehpratah
0
211
Member Avatar for josh.hetherington4

Hello, I am trying to create a a transaction, and to do this I need to parse in my Session data into my Database. My function looks as follows function createTransaction(){ // Insert into the transactions table $query1 = mysql_query("INSERT INTO transactions (mem_id, OrderDate, Ship_Phone, Ship_Address, Ship_City, Ship_County, Ship_PostCode, Ship_Country) …

Member Avatar for armie340
0
204
Member Avatar for OsaMasw

Hello guys I mentioned earlier that I have installed mod_security module first everything was works fine until I've tried to upload large files my chmod for upload dirctory was 777 and when uploading file its ends with Internal Server Error I've changed the chmod of upload folder to 755 and …

Member Avatar for OsaMasw
0
2K
Member Avatar for Tko_1

Okay so i have this script that will upload and remane the file to image.png which works perfect. what i am trying to get is when uploaded number the image in order image1.png image2.png image3.png if (isset($_POST['submit'])) { $newext = '.png'; $filename = $_FILES["file"]["name"]; $file_basename = substr($filename, 0, strripos($filename, '.')); …

Member Avatar for Tko_1
0
161
Member Avatar for Motifaithed

Hi Guys, Can you give me an idea how to secure a login page after logout wherein when I click the back button of the browser it will not redirect the page in the last page viewed, I read a lot of thread and saying that its all about session, …

Member Avatar for Motifaithed
0
332
Member Avatar for davy_yg

Cek the following codes. It suppose to copy and paste the pictures - to folder photos/ . Yet, I haven't seen the message: "sucess copy file to photos" appears. only, "Data telah tersimpan" or "Successfully saving data to database". //Save Picture if (isset($_REQUEST['ok'])){ if (empty($_REQUEST['id'])) { $sqlstr = "INSERT INTO …

Member Avatar for davy_yg
0
621
Member Avatar for joshl_1995

Hello Community, I need help using the ftp_nlist command, what i'm trying to do is look in a directory but the directory is two separate string (eg. "New folder") and it is saying there is nothing in there but there is i'm sure the problem is because the two separate …

Member Avatar for joshl_1995
0
576
Member Avatar for diether.silverious

hi Guys Good day.. i have this two array that i want to combine: 1st array: when using print_r($productItems) Here is the result: Array ( [0] => Array ( [item_id] => 13 [quantity] => 4 ) [1] => Array ( [item_id] => 15 [quantity] => 1 ) [2] => Array …

Member Avatar for broj1
0
107
Member Avatar for capton

Hello i have index.php file in root directory redirecting to a page. It's working perfect on my localhost but not the webserver. Also link to the root folder on the webserver lists files excluding the index.php Please i need help with this

Member Avatar for capton
0
621
Member Avatar for OsaMasw

hello guys, unfortunly my website got hacked few hours ago, and after investigations I found the was a c99.php file on my server so i deleted it and stopped any upload proccess and change back my chmod to default I want to ask how to prevent php files from being …

Member Avatar for naphets
0
2K
Member Avatar for ngonix

Hi i'm having a slight issue with loading variable into another page without refreshing first page. So here's the deal. I have two windows(pages), when i click a button(agents) in the parent window a child window opens with a list of agents from mysql database. Here are the parent and …

Member Avatar for ngonix
0
3K
Member Avatar for kingkong142

Hi, I want to make this field "Hidden" and want to select by default last option "Both". ho w i can do this? <input id="memberRoleIntlSeller" value="supplier" name="userrole" style="border: 0px none ;" onclick="document.getElementById('userrole-error').style.display='none';changesubmitbtnname('yes');" type="radio" <? if($_REQUEST['userrole']=="supplier"){?>checked="checked"<? }else{echo "";} ?> /> <font class="normal"> <?=$suppliers_title?> </font></div> <div class="buyOrSellBox"> <input id="memberRoleIntlBuyer" value="buyer" onclick="document.getElementById('userrole-error').style.display='none';changesubmitbtnname('yes');" name="userrole" …

Member Avatar for kingkong142
0
160
Member Avatar for hostguy

i wanna send a username and password securely from php page(Apache server) to the Java api (Tomcat server). That api should verify them and open the api in the browser. How can i achieve it guys??? I tried to use webservice but the response from the api is sent to …

Member Avatar for Webville312
0
248
Member Avatar for joni20

html body mysql result: <? $sqlcomments = "SELECT * from sellercomments where Status=1 and SellerID=".$_REQUEST['SellerID']. " order by AddedDate desc"; $resultcomments= mysql_query($sqlcomments); if (@mysql_num_rows($resultcomments)!=0){ ?> <br> <? while($row_comments = @mysql_fetch_array($resultcomments)) { ?> <div align="right"><img src="../<?=$row_sellerdetails['AboutUsImage']?>" width="40" height="40" border="0"></div> <?=$row_comments['CommentBy']?>] to <a href="index.php?SellerID=<?=$_REQUEST['SellerID']?>"> <?=$row_sellerdetails['idName']?></a> <span style="color:#000000"><?=$row_comments['Comment']?></span> <br> <? } } ?> …

Member Avatar for Szabi Zsoldos
0
248
Member Avatar for davy_yg

I am trying delete data from table, the form method is post. The url http://localhost/RustoleumCustomCMS2/administrator/input_image.php?mode=delete&id=0 (passing mode = delete and id = 0). I wonder why nothing happen. It suppose to delete a row in the database. include('../includes/koneksi.php'); $id = isset($_POST['id']) ? $_POST['id'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] …

Member Avatar for broj1
0
163
Member Avatar for diether.silverious

Hi guys Good day, this codes works perfectly for me. <?php // This block grabs the whole list for viewing $product_list = ""; $sql = mysql_query("SELECT * FROM product ORDER BY date_added DESC"); $productCount = mysql_num_rows($sql); // count the output amount if ($productCount > 0) { while($row = mysql_fetch_array($sql)){ $id …

Member Avatar for diether.silverious
0
195
Member Avatar for sToXiC

Hi, I am trying to export my Joomla 1.5.23 mysql database. I have no phpmyadmin. I used several ways like this (http://faq.1and1.com/web_space__access/mysql/13.html) but I get an error message saying: There was an error during export. Please check your values: MySQL Database Name: HIDDEN MySQL User Name: HIDDEN MySQL Password: NOTSHOWN …

Member Avatar for LastMitch
0
628
Member Avatar for sri.

i am using php 5.4.3 I have this code: <?php $handle = printer_open(); printer_write($handle, "Text to print"); printer_close($handle); ?> when i run get below error message : Fatal error: Call to undefined function: printer_open()... What could be wrong?

Member Avatar for akgreen
0
6K
Member Avatar for bernic.ion

Hi, I have a problem whith my multisite wordpress website. On my local server is all ok but on the server i have an 400 bad request error. I think that this is a problem problem with my Web server. Here are some code snippets of my .htacces file. # …

Member Avatar for LastMitch
0
199
Member Avatar for adishardis

Hi, I have a 'persons' table, an 'answer' table and a 'token' table. The token table contains matching unique identifiers from the persons table and the answers table. In my query I want to join the persons table with the answers but I don't know how to proceed since they …

Member Avatar for adishardis
0
136
Member Avatar for winbala5

hi all, am trying to add google chart to my application. i want a graph like the one attached. Below is the code which i am using to generate the GRAPH. i am able to generate for only 1 graph My question is how to pass value dynamically and to …

Member Avatar for pritaeas
0
240
Member Avatar for davy_yg

Hello all, Cek this page: [image gallery](http://www.rustoleum-indonesia.com/aerosol-produk.php) That's static image gallery - and I am trying to create backend for it. If I upload new pictures to edit the existing pictures, they will have random name, then how does the computer now where to place each random name ? (since …

Member Avatar for pixelsoul
0
223
Member Avatar for hostguy

Actually i've a page named(vehicle.php) inside apache server and Java api page (someheader://someip:someport/track/Track?page=map.fleet) inside tomcat server. I created a Restful Webservice in PHP using this link "http://viralpatel.net/blogs/restful-web-service-tutorial-introduction-rest-restful/" And then i sent a username and password from apache server to the java api through webservice, it sends the request correctly and …

Member Avatar for pritaeas
0
183
Member Avatar for George_91

I'm creating a website which requires a Login. When it logs in the system it creates a Session. But I don't know how to validate my next page. Because if the user types the name of the second page in the browser, it enters without problem. What I want is …

Member Avatar for Webville312
1
23K
Member Avatar for nevek

I have for example an objec room which has an atribute floor which is text. Let's say that `$room->floor = "hi i'm a floor"` my querry statement would be `"UPDATE room SET floor=$room->floor where id=room->id"` when I insert it with php into a mysql db it gives an error because …

Member Avatar for broj1
0
194
Member Avatar for deepak.fugo

Hi All, We have website on Shared hosting. I am a newbie. i have installed PHPUnit testing framework on the server. When i try to run a test case in command mode(phpunit --help), i am getting error as attached screenshot. Kindly help me in executing PHPUnit. Regards,

Member Avatar for ahmedhamdy
0
256
Member Avatar for dinhunzvi

i have the following tables in my database: CREATE TABLE `tblbrands` ( `brandid` tinyint(2) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(25) NOT NULL, PRIMARY KEY (`brandid`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; CREATE TABLE `tblcars` ( `carid` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `brandid` tinyint(2) unsigned NOT NULL, `typeid` …

Member Avatar for pritaeas
0
2K
Member Avatar for janskey15

<?php include "dbConfig.php"; $sql_query = mysql_query("SELECT SubjectID, SubjectDesc, FROM tbl_subject"); ?> <select name="X" value="X"> <option value="Choose">Choose</option> <?php while($fetch = mysql_fetch_array($sql_query)) { ; ?> <option value="<?php $fetch['SubjectID'];?>" selected="selected"><?php echo $fetch['SubjectID']; ?></option> <?php } ?> </select> INSERT code <?php include "dbConfig.php"; $Y = $_POST["Y"]; $query="INSERT into tbl_subjectsenrolled(SubjectID) values('".mysql_real_escape_string($Y)."')"; ?> But I cannot …

Member Avatar for janskey15
0
228

The End.