Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #27.9K
Ranked #3K
~5K People Reached
Favorite Forums
Favorite Tags
Member Avatar for shany0786

i have following code first insert is working properly and data in to database but second insert query which depends on last_insert_id() fails.I have tried to find out mistake but failed to do so? <?php namespace Solutions\File; class AddUserData { function __construct($DB_con) { $this->db = $DB_con; } public function insert_detail($productDetails){ …

Member Avatar for cereal
0
2K
Member Avatar for dawbin

Trying what I thought was a simple way to extract html tags. In this example I'm expecting an array with 4 elements but I get only one... am I missing something? var htm="<a></a><b></b>"; var patt = /<.*?>/gim; var a = patt.exec(htm); alert(JSON.stringify(a)); Expected: ["<a>","</a>","<b>","</b>"] But I get: ["<a>"]

Member Avatar for Johnny1
0
135
Member Avatar for janicemurby

HI im getting the following error Warning: Invalid argument supplied for foreach() in /home/jktempla/public_html/includes/class-query.php on line 106 in the following bit of coding can anyone see whats happening public function do_user_directory() { $users = $this->load_all_user_objects(); foreach ( $users as $user ) { ?> <div class="directory_item"> <h3><a href="/social/profile-view.php?uid=<?php echo $user->ID; ?>"><?php …

Member Avatar for Johnny1
0
465
Member Avatar for Sophia_1

Hi everyone, am trying to display report based on quarter ie Quarter1,Quarter2 etc. However,after keying in record for Quarter2, the report below does not display Quarter2 record but still Quarter1 record. Please advise how to make the report display Quarter2 record if the current month is Jun etc. Thanks a …

Member Avatar for Sophia_1
0
270
Member Avatar for vivosmith

<html> <head> <title>Zachs Page</title> </head> <body> <form enctype="multipart/form-data" action="upload_image.php" method="post"> <input type="hidden" name="MAX_SIZE" size="524288"> <p> File:<input type="file" name="upload"/></p> <input type="submit" name="submit" value="submit"/> <input type="hidden" name="submitted" value="TRUE"/> </form> <?php if(isset($_POST['submitted'])) { if(isset($_FILES['upload'])) { $allowed= array('image/pjpeg', 'image/jpeg', 'image/jpeg', 'image/JPG', 'image/X-PNG', 'image/PNG', 'image/png', 'image/x-png'); if(in_array($_FILES['upload']['type'],$allowed)) { if(move_uploaded_file($_FILES['upload']['tmp_name'] , "/MyFiles/{$_FILES['upload']['name'] }")) { echo "The …

Member Avatar for diafol
0
2K
Member Avatar for Sophia_1

Hi everyone, I have this issue, currently am able to save the attachment name in mysql database. However, after saving it doesn't display the attachment name in the form and so unable to open the attachment. Below is the coding. Please advise how to display the attachment name and open …

Member Avatar for Johnny1
0
406