View Full Version : Importing MySQL questions
toby379423
05-19-2009, 12:57 AM
Now that I've figured out how to do the left nav, I've got another question.
I have about 2700 items to put into a MySQL database that I want to import from an Excel file but got kind of stuck as to how I would go about linking up all of the images.
I've exported a CSV file from phpMyAdmin and started to add the info to the necessary columns/rows, but how would link up the images? I could do it manually in the admin area but that would take FOREVER...
Any thoughts/suggestions?
Ray Borduin
05-19-2009, 06:16 AM
You could create a column for the image name in the excel spreadsheet and enter the image name in excel and upate the images with ftp to a single directory (or include the directory with the file name in the spreadsheet). Then you can import the image names to the database with the rest of the data.
toby379423
05-19-2009, 10:51 AM
Sounds good. I was hoping that was the case.
Looks like I need to add a column for the small image & the large ones correct?
The other question that I had was, I noticed that there are a few columns that have the following in them:
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Geneva; color: #333333">Size : 20 x 20 </p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Geneva; color: #333333">Item Type : Print on canvas </p>
<p><span class="\"Apple-style-span\"" style="\"font-family:">Size:<span class="\"Apple-tab-span\"" style="\"white-space:"> </span> 19 3/4 x 19 3/4</span> <br /><span class="\"Apple-style-span\"" style="\"font-family:">Type: Print on canvas</span> </p>
<p><span class="\"Apple-style-span\"" style="\"font-family:">Size:<span class="\"Apple-tab-span\"" style="\"white-space:"> </span> 19 3/4 x 19 3/4</span> <br /><span class="\"Apple-style-span\"" style="\"font-family:">Type: Print on canvas</span> </p>
Is this something I'll have to add manually in html before updating my database as well? Or can I just go ahead & add to the columns & put in the descriptions without the html?
Ray Borduin
05-19-2009, 10:54 AM
You can put them in without html.
toby379423
05-19-2009, 04:22 PM
Will do.
Now on to another question....
I had the site set up & working at http://tobyhernandez.com/awas just fine, but now when I moved everything over to http://awallartstore.com, it seems that the category links aren't working...
I downloaded the existing database (titled db284823284) and imported it into a new one (titled awas) to a new database at awallartstore.com using phpMyAdmin but can't seem to figure out what I'm doing wrong. I'm sure there's something I'm missing here, could you point me in the right direction?
Ray Borduin
05-19-2009, 05:19 PM
Probably the local or remote root directory settings in the WA_Globals file.
toby379423
05-20-2009, 09:50 AM
I looked at the WA_Globals.php file and everything seems to be correct.
Here's what I have:
$WAGLOBAL_Root_URL = "https://awallartstore.com/" ;
$WAGLOBAL_Site_Name = "A Wall Art Store" ;
$WAGLOBAL_Address = "149 Standard";
$WAGLOBAL_City = "El Segundo";
$WAGLOBAL_State = "CA";
$WAGLOBAL_Zip = "90245";
$WAGLOBAL_Country = "USA";
$WAGLOBAL_GoogleAPIKey = "ABQIAAAA9kH9PD4z9WFvSN_DvnrvtxTeRESP1zCc9oQO_6arlM gopXBV5hRQ3DBvjVqDJQOu1OYzyGA5XM-l3g";
$WAGLOBAL_localRoot = "/";
$WAGLOBAL_remoteRoot = "/";
Could it possibly be something in the menu.php or intermediate.php files? I'm really drawing a blank here...
Ray Borduin
05-20-2009, 09:51 AM
Maybe if you edited the menus with menu writer it may have overwritten the globals reference.
toby379423
05-20-2009, 09:59 AM
The only changes I made were to the localhost.php file and the WA_Globals.php file.
Ray Borduin
05-20-2009, 10:10 AM
I'm not sure then. What is wrong with the link exactly?
toby379423
05-20-2009, 11:21 AM
on the left nav, when i click on any of the links like "abstract" for example, it goes to a blank page:
https://awallartstore.com/index.php
On the testing site that I used. the links work fine:
http://tobyhernandez.com/awas/index.php
The top nav items work (home, about us, galleries, etc.) but for some reason the categories don't.
Ray Borduin
05-20-2009, 12:13 PM
A blank page is usually a problem with the page. My best guess is that your database information is wrong... maybe?
I would try to turn on error debugging on your server so you can see the error that causes the blank page.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.