39,319 Topics

Member Avatar for
Member Avatar for ngonix

Hi, i'm having a little problem with my php script. Here's the deal. I have 2 tables and I want to assign a post variable to a row in one table and then insert the id value of that table in another table. The script is as follows: clients.php <?php …

Member Avatar for ngonix
0
316
Member Avatar for adishardis

I have a answer table and a attribute table. Answers table: -----token-------question1a1-------question1a2-------question2------........ --aaaBBB324Cc---------Y----------------NULL--------------Y-----........ attribute table: --------token---------attribute_1------.... ------aaaBBB324Cc-----2012-08-13-------..... With higcharts I am trying to display a graph with the total count for each question1(a1-a7) from a month back, with dates from the attribute table (namely the attribute_1 column) this is not …

Member Avatar for adishardis
0
173
Member Avatar for davy_yg

var_dump(explode(".", $data['image'])); $file[0] = explode(".", $data['image']); echo $file[0]; The result: array(2) { [0]=> string(6) "image2" [1]=> string(3) "jpg" } Array I am trying to store "image2" in $file, how? (exclude the jpg)

Member Avatar for radow
0
89
Member Avatar for azgold472

I have a reservation page at [Click Here](http://www.orlandosuvandtowncar.com/reservations/Reservations.php) I get the following error when submitting the form to email Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/orlandos/public_html/reservations/res1.php on line 55 Below is that coding any help would be great. the server is running php 5.2.17. <?php require_once "Mail.php"; // EDIT …

Member Avatar for Webville312
0
277
Member Avatar for hostguy

Here's the image [link](http://postimage.org/image/kee0ndxdv/)! Will this be possible ?? If so let me know how to do it guys. I dont know how to send the response to the browser directly help me guys.. Thanks, HOSTGUY

Member Avatar for hostguy
0
137
Member Avatar for davy_yg

Hello, After uploading picture into a certain folder and record the filename in the database, I would like to print the database and the picture out. Here is the code: <?php $i=0; while($data = mysql_fetch_array($result)){ $result2=($i%2)?'#DFA09D':'white'; echo "<tr bgcolor='$result2'> "; echo "<td>".$data['id']."</td>"; echo "<td>".$data['judul']."</td>"; echo "<td><img src='../photos/".$data['image']."'></td>"; echo "<td><a href='input_image.php?mode=edit&id=".$data['id']."'>Edit …

Member Avatar for davy_yg
0
194
Member Avatar for tuyendoan

The other day my boss noticed that our php pages read, and try to follow, duplicate file extentions. The pages which are displayed carry over a varying amount of the main pages attributes. The files don't exist in our remote, so we've ruled out it being a product of human …

Member Avatar for Squidge
0
272
Member Avatar for unikorndesigns

Hi Everyone, I am having a very hard time to figure this out. I had uploaded my CMS which is developed on the CI framework. I have configured the script with the database but however i try to access the index.php file it shows up an Internal Server Error but …

Member Avatar for broj1
0
287
Member Avatar for eng442

It's been a long time since I don't post here, even forgot my username. Sorry if this is the wrong section. I can't get the $_POST['name'] values sent from an html form on my php file. I've seen lots of similar questions but nothing helped. I have lot's of includes …

Member Avatar for eng442
0
523
Member Avatar for foxwizzy

So i got a color selector from http://www.eyecon.ro/colorpicker/ How do i save the selected color code in a php var so i can insert it in a MySQL db ?

Member Avatar for pritaeas
0
74
Member Avatar for abhi10kumar

It is possible to add font family (Arial, Comic MS Sense, etc) and make image as an anchor tag while creating text on image. <?php header("Content-type: image/png"); $string = "Text on image"; $font = 5; $width = imagefontwidth($font) * strlen($string); $height = imagefontheight($font); $image = imagecreatetruecolor ($width,$height); $white = imagecolorallocate …

Member Avatar for pritaeas
0
158
Member Avatar for abhi10kumar
Member Avatar for abhi10kumar
0
69
Member Avatar for ceeandcee

I have a page on my site where I want to update only certain fields. There is a php form tht captures the data. Currently, when I update one field - it blanks out all the others. I want to be able to only update the one field and if …

Member Avatar for ceeandcee
0
137
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
17K
Member Avatar for shashanknaik1
Member Avatar for Szabi Zsoldos
0
95
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
214
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
631
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
577
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
626
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
251
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

The End.